LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2011, 03:48 PM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
ldap RHEL 5 bad configuration, phpldapadmin?


Hello,

I have RHEL 5. I have installed ldap and phpldapadmin.
My configuration looks like
/etc/ldap.conf I added the lines
Quote:
base dc=devnet,dc=gd,dc=com
uri ldap://10.10.1.51/
/etc/openldap/ldap.conf
Quote:
BASE dc=devnet,dc=gd,dc=com
URI ldap://10.10.1.51
/etc/openldap/slapd.conf
Quote:
suffix "dc=devnet,dc=gd,dc=com"
rootdn "cn=admin,dc=devnet,dc=gd,dc=com"
When I run the following command
Quote:
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
according to the documentation I'm reading I should get
Quote:
dn:
namingContexts: dc=devnet,dc=gd,dc=com
I don't. I get
Quote:
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#

# search result
search: 2
result: 0 Success

# numResponses: 1
Under phpldapadmin I get
Quote:
This base entry does not exist.Create it?
I'm new to ldap and at a total loss. I was hoping to install it and phpldapadmin then start putting in data. Not to happen. Everything I've read says what I'm doing should work.
Please help
 
Old 03-08-2011, 11:34 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Import the initial ldif and try again.
 
Old 03-09-2011, 12:10 PM   #3
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Original Poster
Rep: Reputation: 32
I tried to import my ldif from another server using the command

Quote:
ldapadd -x -D "cn=admin,dc=devnet,dc=gd,dc=com" -f ./test.ldif -W
but I get the following error

Quote:
ldap_bind: Invalid credentials (49)
 
Old 03-09-2011, 10:07 PM   #4
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
- Please post the content of test.ldif file?
- Did you specify the rootpw in slapd.conf?
 
Old 03-10-2011, 03:45 PM   #5
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Original Poster
Rep: Reputation: 32
I finally got the problem fixed.
I wiped the box and started from scratch. I figured I'd made so many changes from the initial install and some of the first documentation I used was for Ubuntu that I was so far off, I might as well start over. The new install was up and running within about 1 1/2 hours. The differences between the first documentation I used and the last was tremendous. I simply followed the "Quick-Start Guide" on the openldap web page. My server lives.

I'm much happier today.
Thank you
 
  


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
LDAP configuration error, can't connect to LDAP server (-1) rdanielz Linux - Networking 3 06-01-2010 10:15 AM
[SOLVED] phpldapadmin (classes of objects from XML does not support by LDAP-server) NoPos Linux - Newbie 1 05-03-2010 08:15 PM
Can't create LDAP entries with phpldapadmin dlublink Linux - Networking 6 12-12-2007 04:41 AM
TLS in phpLDAPadmin can not connect to LDAP server. nui Linux - Software 0 12-28-2006 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 AM.

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