LinuxQuestions.org
Register a domain and help support LQ
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 11-25-2006, 08:56 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 824

Rep: Reputation: 30
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.
 
Old 11-25-2006, 10:10 AM   #2
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
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?
 
Old 11-25-2006, 04:14 PM   #3
uugdave
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
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.
 
Old 11-26-2006, 02:44 AM   #4
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
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?
 
Old 12-04-2006, 06:04 AM   #5
keithweddell
LQ Newbie
 
Registered: May 2006
Posts: 9

Rep: Reputation: 1
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
 
Old 12-04-2006, 09:38 AM   #6
climbingmerlin
Member
 
Registered: Mar 2004
Location: UK
Distribution: Fedora, OpenSuse
Posts: 91

Rep: Reputation: 15
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...
 
Old 12-13-2006, 09:20 AM   #7
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
climbingmerlin,

Yes. This is a new install phpldapadmin. Tried what you wrote and worked. Thanks man.
 
Old 12-13-2006, 10:12 AM   #8
climbingmerlin
Member
 
Registered: Mar 2004
Location: UK
Distribution: Fedora, OpenSuse
Posts: 91

Rep: Reputation: 15
No Dramas glad that I could help.
 
  


Reply

Tags
phpldapadmin


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
phpldapadmin error depam Linux - Software 5 08-31-2006 01:27 PM
phpldapadmin doesn't process tree.php pasmen Linux - Software 1 08-14-2006 04:53 PM
Phpldapadmin problem leiw Linux - General 2 07-25-2006 02:18 AM
Unable to get the ldaptree in phpLDAPadmin Uday123 General 0 11-15-2005 05:42 AM
upgrade breaks phpldapadmin gdsword Debian 2 11-04-2005 03:41 AM


All times are GMT -5. The time now is 07:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration