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

Hello,

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.

Thanks,
Charlie_MelegaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Charlie_MelegaAuthor Commented:
Thank You
0
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.