Difference between revisions of "LDAP"
From MyWiki
Line 2: | Line 2: | ||
'''Examples'''<br> | '''Examples'''<br> | ||
ldapsearch -h rhubarb -xLLL -b "ou=people,dc=gold,dc=ac,dc=uk" uid=css01gt sn givenName cn<BR> | ldapsearch -h rhubarb -xLLL -b "ou=people,dc=gold,dc=ac,dc=uk" uid=css01gt sn givenName cn<BR> | ||
− | '''Possibly for AD'''<BR> | + | '''Possibly for AD''', may need to drop the port number<BR> |
ldapsearch -LLL -H ldap://activedirectory.example.com:389 -b 'dc=example,dc=com' -D 'DOMAIN\Joe.Bloggs' -w 'p@ssw0rd' '(sAMAccountName=joe.bloggs)' | ldapsearch -LLL -H ldap://activedirectory.example.com:389 -b 'dc=example,dc=com' -D 'DOMAIN\Joe.Bloggs' -w 'p@ssw0rd' '(sAMAccountName=joe.bloggs)' |
Revision as of 15:42, 17 June 2014
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)'