LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldap RHEL 5 bad configuration, phpldapadmin? (https://www.linuxquestions.org/questions/linux-software-2/ldap-rhel-5-bad-configuration-phpldapadmin-867285/)

thllgo 03-08-2011 02:48 PM

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. :banghead:
Please help

quanta 03-08-2011 10:34 PM

Import the initial ldif and try again.

thllgo 03-09-2011 11:10 AM

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)

quanta 03-09-2011 09:07 PM

- Please post the content of test.ldif file?
- Did you specify the rootpw in slapd.conf?

thllgo 03-10-2011 02:45 PM

I finally got the problem fixed. :D
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


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