Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
I want to know querying the Active Directory server using ldapsearch, ldapadd, ldapdelete, etc. utilities are possible or not?

1 Answer

0 votes
by (36.8k points)
edited by

The short answer is "yes". The sample ldapsearch command a query the Active Directory server:

ldapsearch \

    -x -h ldapserver.mydomain.com \

    -D "[email protected]" \

    -W \

    -b "cn=users,dc=mydomain,dc=com" \

    -s sub "(cn=*)" cn mail sn

This will connect to the AD server at hostname named ldapserver.mydomain.com as user [email protected], prompt for this password on the command line and show name and email details for users in the cn=users,dc=mydomain,dc=com subtree.

To know about Linux join the Linux training

Do check out the video below

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...