• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

is it possible to query a windows ldap server from a linux machine?


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.

  • 2
1 Solution
Charlie_MelegaAuthor Commented:
Thank You
Kiran ChCommented:
Hi gerwinjansen,

Thank you for your comment, i understood it..
Basically I use that commandlinefu.com website a lot and I pasted that output for one of the example which I thought will help answering the question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now