When I try to import users and groups to LDAP I get this error: ** *# ldapadd -x -D 'cn=administrador,dc=homolog,dc=com,dc=br' -W -f users.ldif Enter LDAP Password: adding new entry "uid=root,ou=People,dc=homolog,dc=com,dc=br" ldap_add: No such object (32) matched DN: dc=homolog,dc=com,dc=br* I already readed the FAQ and applied some modfications but it's still not importing...
*here comes part of my users.ldif:* *dn: uid=root,ou=People,dc=homolog,dc=com,dc=br uid: root cn: root objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount userPassword: {crypt}$1$/8NOCC5o$qtKfYeX8NJc7zNpGkYpWy/ shadowLastChange: 13599 shadowMax: 99999 shadowWarning: 7 loginShell: /bin/bash uidNumber: 0 gidNumber: 0 homeDirectory: /root gecos: root*
*and the base.ldif:* *dn: dc=homolog,dc=com,dc=br objectclass: dcObject objectclass: organization objectClass: top o: Medlynx dc: homolog* * *
*dn: cn=administrador,dc=homolog,dc=com,dc=br objectclass: organizationalRole cn: administrador*
On Fri, Jun 29, 2007 at 09:33:41AM -0300, Timeu wrote:
When I try to import users and groups to LDAP I get this error: ** *# ldapadd -x -D 'cn=administrador,dc=homolog,dc=com,dc=br' -W -f users.ldif Enter LDAP Password: adding new entry "uid=root,ou=People,dc=homolog,dc=com,dc=br" ldap_add: No such object (32) matched DN: dc=homolog,dc=com,dc=br* I already readed the FAQ and applied some modfications but it's still not importing...
*here comes part of my users.ldif:*
The order is important. It's like running "mkdir /foo/bar/dir" when neither /foo nor /foo/bar exist yet: it will fail. So, first create dc=homolog,dc=com,dc=br then create ou=people,dc=homolog,dc=com,dc=br and then create your user under ou=people,dc=homolog,dc=com,dc=br
openldap-software@openldap.org