LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with phpldapadmin (https://www.linuxquestions.org/questions/linux-software-2/problem-with-phpldapadmin-504734/)

depam 11-25-2006 08:56 AM

Problem with phpldapadmin
 
Hi!

I've configured slapd and installed phpldapadmin. I can login in phpldapadmin but on the left side corner, I see "This base entry does not exist.Create it?". I clicked it and entered RDN, container and choose ObjectClass. But after that, I get another error: The container you specified (dc=example,dc=com,dc=ph) does not exist. Please try again.

depam 11-25-2006 10:10 AM

Another problem, I get the following :

Could not determine the root of your LDAP tree.
It appears that the LDAP server has been configured to not reveal its root.
Please specify it in config.php

What should I change in the config.php of phpldapadmin?

uugdave 11-25-2006 04:14 PM

You should have left the container field blank, and specified "dc=example,dc=com,dc=ph" as the RDN, since it has no container (it's the base of the tree). That ought to work.

If not, and you want to tell phpLDAPadmin what the base DN of your LDAP tree is, do this in config.php

$ldapservers->SetValue($i,'server','base',array('dc=example,dc=com,dc=ph'));

Good luck.

depam 11-26-2006 02:44 AM

No, you got me wrong. I only typed in "dc=example, dc=com, dc=ph" as an example above. I didn't post my domain to protect our organization. Any help?

keithweddell 12-04-2006 06:04 AM

This might be an access problem. Check your slapd.conf and make sure that the user you are connecting with through phpldapadmin actually has access to read the base.

Keith

climbingmerlin 12-04-2006 09:38 AM

Is it a new LDAP installation? If so you need to create the base RDN using a ldiff file.

So create a file call new.ldiff and place the following entries in it:

dn: dc=example,dc=com,dc=ph
objectclass: dcObject
objectclass: organization
o: LDAP Server
dc: example

dn: cn=Manager,dc=example,dc=com,dc=ph
objectclass: organizationalRole
cn: Manager

dn: ou=People,dc=example,dc=com,dc=ph
ou: People
objectClass: top
objectClass: organizationalUnit

dn: ou=addressbook,dc=example,dc=com,dc=ph
ou: addressbook
objectClass: top
objectClass: organizationalUnit


Then run the following ldapadd -f <path>/new.ldiff and that should create all the object in the LDAP database. All you need to do is to make sure that all the slapd.conf and ldap.conf files all have the right dn and that you have a manager /root account enabled, which phpldapadmin uses.

Hope this helps...

depam 12-13-2006 09:20 AM

climbingmerlin,

Yes. This is a new install phpldapadmin. Tried what you wrote and worked. Thanks man.

climbingmerlin 12-13-2006 10:12 AM

No Dramas glad that I could help.


All times are GMT -5. The time now is 06:37 AM.