LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-29-2013, 10:26 AM   #1
fbobraga
Member
 
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:

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

Code:
# 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
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,168
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
http://bethecoder.com/applications/t...dap-entry.html may help.
 
Old 01-30-2013, 08:22 AM   #3
fbobraga
Member
 
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:

Code:
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
shivaa
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.
 
  


Reply


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


All times are GMT -5. The time now is 12:33 PM.

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