LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-07-2003, 12:59 PM   #1
randomx
Member
 
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?

server: ldap.mydomain.net

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

Thanx.

Randomx
PS: If it helps, I'm running kernel 2.4.22 on RedHat 9.0.
 
Old 10-07-2003, 01:03 PM   #2
d3funct
Member
 
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 'o=mydomain.com,c=us' cn="*"

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

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

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

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


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 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 02:02 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 04:49 AM
QUERY: suse vs. linux terminal server kevingpo Suse/Novell 3 11-07-2005 03:32 PM
QUERY: mandrake vs. linux terminal server kevingpo Mandriva 1 11-07-2005 01:26 PM
How to manually start apache web server (SUSE9.2) Mic Q Suse/Novell 4 07-10-2005 09:08 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration