curl -X POST -d @filename.txt -u usernamehere:passwordhere https://server.company.com/session/sync.jspThe content of filename.txt is pairs of name=value separated by &. E.g.
id=1&options=doit&field3=Submit
curl -X POST -d @filename.txt -u usernamehere:passwordhere https://server.company.com/session/sync.jspThe content of filename.txt is pairs of name=value separated by &. E.g.
id=1&options=doit&field3=Submit
< pre >
< / pre >
# The puppetmaster server PUPPET_SERVER=puppetmaster # If you wish to specify the port to connect to do so here #PUPPET_PORT=8140 # Where to log to. Specify syslog to send log messages to the system log. PUPPET_LOG=/var/log/puppet/puppet.log # You may specify other parameters to the puppet client here #PUPPET_EXTRA_OPTS=--waitforcert=500
#!/bin/bash
# Generate random new password 24 characters long
newpass=`mkpasswd -l 30 -d 3 -C 5 -s 3`
# Get old password from oldpass file
oldpass=`cat oldpass.txt`
echo Old: $oldpass
echo New: $newpass
# ssh to server and reset password
for server in `cat list.txt`
do
echo "Changing $server"
ssh -t $server 'passwd <<EOF
'$oldpass'
'$newpass'
'$newpass'
EOF'
done
#!/bin/bash
awk 'BEGIN {A = 1};//{A=0; print "\t\t\n\t\t\t\
mem1.atl.company.com:11212 mem2.atl.company:11212 mem3.atl.company.com:11212 mem4.atl.company.com:11212 mem5.atl.company.com:11212 mem6.atl.company:11212 mem148.atl.company.com:11212 mem149.atl.company.com:11212 mem150.atl.company.com:11212\
\n\t\t "};/.*/ { if ( A == 1) print $0};/<\/property>/{A=1}; ' $1
yum -y install openldap-clients openldap-devel
Comment everything from /etc/openldap/ldap.conf except the following line:
TLS_REQCERT never
Make sure that you can run a simple LDAP query against domaincontroller.yourdomain.com
ldapsearch -x -LLL -D 'Igor Grinkin' -H ldaps://domaincontroller.yourdomain.com -W -b "CN=Domain Admins,CN=Users,DC=corp,DC=yourdomain,DC=com" -L cn=*
<Directory "/usr/share/icinga/">
Options None
AllowOverride All
Order allow,deny
Allow from all
AuthName "Please enter your Corp AD credentials"
AuthType Basic
AuthLDAPURL "ldap://domaincontroller.yourdomain.com:389/OU=YourDomain,DC=corp,DC=domaincontroller,DC=com?samAccountName?sub?(objectCategory=person)"
AuthLDAPBindDN "cn=joinaccount,CN=Users,DC=corp,DC=yourdomain,DC=com"
AuthLDAPBindPassword "joinaccount password"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
Require valid-user
</Directory>
# Start portmap or rpcbind
service "port" do
case node["platform_version"]
when "5.8"
service_name "portmap"
when "6.4"
service_name "rpcbind"
end
action [ :start, :enable ]
end