Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-29-2013, 10:26 AM   #1
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
How to query a LDAP server

After a command like:

$ ldapsearch -x -w PASSWORD \(CN=*Felipe*\)
... I get:

# extended LDIF
# LDAPv3
# base <dc=serpro,dc=gov,dc=br> (default) with scope subtree
# filter: (CN=*Felipe*)
# requesting: ALL

# search result
search: 2
result: 0 Success

# numResponses: 1
How can I see the result?
Old 01-29-2013, 03:03 PM   #2
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled may help.
Old 01-30-2013, 08:22 AM   #3
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Original Poster
Rep: Reputation: 41
thanks for the answer, but I can't figure out why aways, in the answer, " got:

result: 0 Success
I will try to find a Java app to do that, and see if the result changes - need a simple method to query LDAP here...
Old 01-30-2013, 10:33 AM   #4
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Which directory server (and version)?

You can also download (here) and try LDAP Browser/Editor by Jarek Gawor.

Last edited by shivaa; 01-30-2013 at 10:35 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
id command seems to query entire ldap server using RHEL6.3 and sssd shingquak Linux - Software 3 08-03-2012 08:26 AM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 09:17 AM
query on ldap server imhere Linux - Newbie 8 08-13-2010 04:25 PM
LDAP Query cjagdish69 Linux - Server 0 11-18-2006 02:16 AM
How can I manually query a ldap server from terminal? randomx Linux - General 2 10-07-2003 02:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration