Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-07-2003, 01:59 PM   #1
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 16
Thumbs up How can I manually query a ldap server from terminal?

How can I manually query a ldap server from terminal? What commands are involved?


I'm trying to find: John Doe on the database.


PS: If it helps, I'm running kernel 2.4.22 on RedHat 9.0.
Old 10-07-2003, 02:03 PM   #2
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Here are some One-liners I've found:

ldapsearch syntax
ldapsearch -h mainldap -b ',c=us' cn="*"

ldapmodify syntax
ldapmodify -h masterldap -D 'cn=Directory Manager,,c=US' -r -f /tmp/user.ldif -w

ldapadd syntax
ldapadd -f user.ldif -D 'cn=Directory Manager,,c=US' -w "password"

ldapdelete syntax
ldapdelete -f user.ldif -D "cn=Directory Manager,,c=US" -w "password"
Old 10-07-2003, 02:04 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You can use the "ldapsearch" command:
man ldapsearch


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 03:02 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 05:49 AM
QUERY: suse vs. linux terminal server kevingpo SUSE / openSUSE 3 11-07-2005 04:32 PM
QUERY: mandrake vs. linux terminal server kevingpo Mandriva 1 11-07-2005 02:26 PM
How to manually start apache web server (SUSE9.2) Mic Q SUSE / openSUSE 4 07-10-2005 10:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:47 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