[CentOS] ldapadd - phpldapadmin error

Alexander Dalloz ad+lists at uni-x.org
Sun Jan 29 18:08:15 UTC 2006


Am So, den 29.01.2006 schrieb Kai Sandsengen um 18:09:
>  
> I edited the config.php and manage to log on phpldapadmin, but get this 
> message:
> --
> 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
> --
> I guess this is where the base is located so I edit the config.php array 
> to be
> $ldapservers->SetValue($i,'server','base',array('/var/lib/ldap'));

No, that is completely wrong.

$ldapservers->SetValue($i,'server','host','ldap:///');

would be correct for accessing an LDAP server on localhost.

Reading the error message you may want to set something like this

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

> trying to import the same joe.ldif before bug via phpldapadmin gives me:
> 
> Error
> Could not add object: uid=joe,ou=People,dc=test,dc=example,dc=net
> 
> LDAP said: Invalid syntax
> Error number: 0x15 (LDAP_INVALID_SYNTAX)
> Description: An invalid attribute value was specified.
> 
> As you say there must be something wrong with my ldif file, but I cant see.
> 
> dn: uid=joe,ou=People,dc=test,dc=example,dc=net
> uid: joe
> sn: User
> cn: Joe User
> objectClass: person
> objectClass: orginizationalPerson
> objectClass: inetOrgPerson
> objectClass: top
> loginShell: /bin/bash
> uidNumber: 610
> gidNumber: 610
> homeDirectory: /home/joe

I guess you missed to include a schema in slapd.conf.

I feel you better ask your specific questions about OpenLDAP issues or
lack of understanding on the OpenLDAP-Software mailing list

http://www.openldap.org/lists/

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 18:59:55 up 55 days, 23:37, load average: 0.24, 0.17, 0.10 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.centos.org/pipermail/centos/attachments/20060129/a9fc2763/attachment.sig>


More information about the CentOS mailing list