Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-22-2006, 05:01 AM   #1
LQ Newbie
Registered: Sep 2005
Location: Rajpura(INDIA)
Posts: 7

Rep: Reputation: 0
Problem in LDAP configuration

Hi Everyone.

I'm Configuring LDAP server on RHEL4.
I have some problem... Pls. Help me to solve these problems if somebody can....

Entries in My Slapd.conf file :

#ldbm and/or dbd database definitions
database bdb
suffix "dc=lserv,dc=com"
rootdn "cn=root,dc=lserv,dc=com"
rootpw secret

step2: slappasswd
step3 after this i have started slapd.conf
Step 4: ldapsearch -x -b ' '-s base '(objectclass=*)'
But when i'm executing ldapsearch command it shows:--
#Search result
Search: 2
result: 34 Invalid DN syntax
text: invalid DN

step4:When i'm executing :
ldapadd -x -D "cn=root,dc=lserv,dc=com" -W -f /tmp/top.ldif(i have entries in top.ldif).

it prompt me for LDAP password:
i entered password(i have already set a passwd with "slappasswd " command)

it shows the result:
ldap_bind: invalid credential(49)

Can anyone Help me to solve these problems..
Old 02-22-2006, 10:24 AM   #2
Registered: Mar 2005
Location: LAX
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Welp you forgot the base dn in your search (the -b switch) try....
ldapsearch -x -b "dc=lserv,dc=com" ''-s base '(objectclass=*)'
tho more than likely this will not find anything untill you add the basic ldif stuff..

AFA the ldapadd try the rootpw you setup in the config to connect when doing the ldapadd.
Old 07-18-2006, 01:48 AM   #3
Registered: Dec 2005
Posts: 53

Rep: Reputation: 15
Configuring LDAP on RHEL 4

Hi All,

Hope you r fine.

Currently I have to setup RHEL 4.0 as LDAP server for ubuntu linux and windows XP clients.

PLS help me setting up all this.

I am anxiously waiting for ur response.


Aamer Javaid


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
ldap configuration linuxlastslonge Linux - Software 1 06-17-2005 08:04 AM
LDAP client configuration help omart Linux - Software 1 11-22-2004 02:06 AM
LDAP Configuration on Redhat 9 akumar_net Linux - Software 1 07-05-2004 08:02 AM
Re ldap configuration problem ravi_sambaji Linux - Networking 1 06-28-2003 11:43 AM
ldap configuration ravi_sambaji Linux - Networking 1 06-27-2003 08:26 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:11 AM.

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
Open Source Consulting | Domain Registration