Difference between revisions of "LDAP"

From MyWiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
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''', 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)'<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)'