Back
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
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
31k questions
32.8k answers
501 comments
693 users