LDAP

From MyWiki
Jump to: navigation, search

https://help.ubuntu.com/10.04/serverguide/openldap-server.html
Examples
ldapsearch -h rhubarb -xLLL -b "ou=people,dc=gold,dc=ac,dc=uk" uid=css01gt sn givenName cn
Possibly for AD, may need to drop the port number
ldapsearch -LLL -H ldap://activedirectory.example.com:389 -b 'dc=example,dc=com' -D 'DOMAIN\Joe.Bloggs' -w 'p@ssw0rd' '(sAMAccountName=joe.bloggs)'