I am about to enter people into ldap directory, but get this error:
# ldapadd -x -W -a -D "cn=admin,dc=test,dc=example,dc=net" -f joe.ldif Enter LDAP Password: ldapadd: no DN specified
Can someone please try to identify what I manage to .... or where the dn is missing.
--- error from phpldapadmin Error Could not bind to the LDAP server.
LDAP said: No such attribute Error number: 0x10 (LDAP_NO_SUCH_ATTRIBUTE) Description: That entry does not contain the attribute specified.
--- # slapcat dn: dc=test,dc=example,dc=net objectClass: top objectClass: dcObject objectClass: organization o:: U2FuZHNlbmdlbiA= dc: test structuralObjectClass: organization entryUUID: 7e30d0ea-1e5c-102a-8a41-fe12d5744b3f creatorsName: cn=admin,dc=test,dc=example,dc=net modifiersName: cn=admin,dc=test,dc=example,dc=net createTimestamp: 20060120235909Z modifyTimestamp: 20060120235909Z entryCSN: 20060120235909Z#000001#00#000000
dn: cn=admin,dc=test,dc=example,dc=net objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator userPassword:: e1NTSEF9bEZuVVQyZ1I0bi9jWTd1Q3U2em9qZkkwb1YveVp5STYg structuralObjectClass: organizationalRole entryUUID: 7e441dbc-1e5c-102a-8a42-fe12d5744b3f creatorsName: cn=admin,dc=test,dc=example,dc=net modifiersName: cn=admin,dc=test,dc=example,dc=net createTimestamp: 20060120235910Z modifyTimestamp: 20060120235910Z entryCSN: 20060120235910Z#000001#00#000000
dn: cn=nss,dc=test,dc=example,dc=net objectClass: organizationalRole objectClass: simpleSecurityObject cn: nss description: LDAP NSS user for user-lookups userPassword:: 0NSWVBUfXh4eHh4eHh4eHg== structuralObjectClass: organizationalRole entryUUID: 92594c00-238e-102a-893e-b098b051ae18 creatorsName: cn=admin,dc=test,dc=example,dc=net createTimestamp: 20060127144014Z entryCSN: 20060127144014Z#000001#00#000000 modifiersName: cn=admin,dc=test,dc=example,dc=net modifyTimestamp: 20060127144014Z
dn: ou=People,dc=test,dc=example,dc=net objectClass: organizationalUnit objectClass: top ou: People structuralObjectClass: organizationalUnit entryUUID: 925a7184-238e-102a-893f-b098b051ae18 creatorsName: cn=admin,dc=test,dc=example,dc=net createTimestamp: 20060127144014Z entryCSN: 20060127144014Z#000002#00#000000 modifiersName: cn=admin,dc=test,dc=example,dc=net modifyTimestamp: 20060127144014Z
dn: ou=Group,dc=test,dc=example,dc=net objectClass: top objectClass: organizationalUnit ou: Group structuralObjectClass: organizationalUnit entryUUID: 925f42cc-238e-102a-8940-b098b051ae18 creatorsName: cn=admin,dc=test,dc=example,dc=net createTimestamp: 20060127144014Z entryCSN: 20060127144014Z#000003#00#000000 modifiersName: cn=admin,dc=test,dc=example,dc=net modifyTimestamp: 20060127144014Z
Am So, den 29.01.2006 schrieb Kai Sandsengen um 14:53:
I am about to enter people into ldap directory, but get this error:
# ldapadd -x -W -a -D "cn=admin,dc=test,dc=example,dc=net" -f joe.ldif Enter LDAP Password: ldapadd: no DN specified
Can someone please try to identify what I manage to .... or where the dn is missing.
Inside your "joe.ldif" I suspect.
error from phpldapadmin Error Could not bind to the LDAP server.
LDAP said: No such attribute Error number: 0x10 (LDAP_NO_SUCH_ATTRIBUTE) Description: That entry does not contain the attribute specified.
The attribute that you want to modify (add, replace, or delete) does not exist.
Alexander
Alexander Dalloz wrote:
Inside your "joe.ldif" I suspect. The attribute that you want to modify (add, replace, or delete) does not exist.
Alexander
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'));
then i get:
Error Congratulations! You found a bug in phpLDAPadmin.
Error: Unknown modifier 'v' Level: E_WARNING File: server_functions.php Line: 2775 Caller: tree.php PLA Version: 0.9.8 PHP Version: 4.3.9 PHP SAPI: apache2handler Web server: Apache/2.0.52 (CentOS)
Please report this bug by clicking below!
--
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
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
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
---- 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