I am attempting to query a Windows LDAP server from a CentOS 5.8 machine. Is this something that can be done? Specifically, I attempt to query the LDAP server using 'ldapsearch'. Here is the query:
ldapsearch -V -h ldapserver.host.name -b 'YourADDN' -x -s base -z 1 -l 1 '(&(objectCategory=Person)(objectClass=user)(sAMAccountName=username))' @inetOrgPerson
Based on my results, I am not even sure if a connection from a Linux client to a Windows LDAP server is possible. If anyone can verify this, I'd be most appreciative. All I want to do is run the LDAP query (&(objectCategory=Person)(objectClass=user)(sAMAccountName=username)) from a Linux machine to the LDAP server and return results to the Linux server screen. I thought this would be easy but pulling my hair out.