Can anyone let me know if querying Active Directory server using ldapsearch, ldapadd, ldapdelete, etc. utilities is possible or not?
相关问题
- Active Directory on-prem Manager
- PrincipalContext LDAPS Self-Signed Certificate
- System.DirectoryServices vs system.directoryservic
- Get all attributes from Active Directory using Spr
- Filter ldapsearch with awk/bash
相关文章
- getting user details from AD is slow
- Can't get deleted items from OpenLDAP Server u
- Is it possible to send LDAP “requests” via telnet?
- GetNamedSecurityInfo returns ERROR_ACCESS_DENIED(5
- GWT JDBC LDAP connection fails
- Getting the user's Full Name from Active Direc
- Set Access to dropdownlist items based on the User
- dsmod or other command to edit AD user attributes
The short answer is "yes". A sample
ldapsearch
command to query an Active Directory server is:This would connect to an AD server at hostname
ldapserver.mydomain.com
as usermywindowsuser@domain.com
, prompt for the password on the command line and show name and email details for users in thecn=users,dc=mydomain,dc=com
subtree.See Managing LDAP from the Command Line on Linux for more samples. See LDAP Query Basics for Microsoft Exchange documentation for samples using LDAP queries with Active Directory.
You could query an LDAP server from the command line with ldap-utils: ldapsearch, ldapadd, ldapmodify
Yes we can query active directory using ldap utilities. Also we can query AD using java api's jndi as well.