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. |
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? |
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. |
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?
|
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 |
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... |
climbingmerlin,
Yes. This is a new install phpldapadmin. Tried what you wrote and worked. Thanks man. |
No Dramas glad that I could help.
|
All times are GMT -5. The time now is 06:37 AM. |