OpenLDAP
[Modify]
ldapmodify -x -D cn=manager,dc=bluecentre,dc=net -w secret -f passwd.ldif
[Import]
ldapadd -x -D cn=manager,dc=bluecentre,dc=net -w secret -f passwd.ldif
[Query]
ldapsearch -D cn=Manager,dc=bluecentre,dc=net [-x] -w secret -p 389 -h bluecentre.net -s sub -b “dc=bluecentre,dc=net” “objectclass=*”
[Troubleshooting]
openssl s_client -connect pocketcl1.skyynoc.com:636 -showcerts -CAfile slapd.pem
openssl s_client -connect pocketcl1.skyynoc.com:636 -cert /etc/openldap/ca.crt -key /etc/openldap/ca.key
ldapsearch -d5 -H ldaps://pocketcl1.skyynoc.com -b “dc=skyynoc,dc=com”
ldapsearch -x uid=luser
[Tips & Tricks]
Gets the largest uidNumber
ldapsearch -x uid=* | grep uidNumber | sed -e 's/uidNumber: //' | sort -n
[References]
http://www.gentoo.org/doc/en/ldap-howto.xml
https://help.ubuntu.com/9.04/serverguide/C/openldap-server.html
http://www.padl.com/OSS/MigrationTools.html
http://www.openldap.org/doc/admin22/