Difference between revisions of "LDAP"
From MyWiki
Line 3: | Line 3: | ||
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''', may need to drop the port number<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)'<br> |
Latest revision as of 15:57, 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)'