ldapadd - phpldapadmin error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 2006-01-29 at 19:08 +0100, Alexander Dalloz wrote:
> 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/
> 
----
he's not going to get anywhere on that list - as soon as he asks a
question and states that he's using openldap-2.2.13 he's going to be
told that it is obsolete and that he needs to update to 2.3.18 (or
whatever version is current these days).

> objectClass: orginizationalPerson

typo?          ^^^^^^^^^^^^^^^^^^^^

s/b            organizationalPerson

Craig


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux