[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Trouble with ldapadd

--On Tuesday, July 12, 2005 3:36 PM +0200 zyacoubi@free.fr wrote:


I've successfully installed OpenLDAP, got it running, add customised
schema, and had slapd start fine with the schema I've added.

At the begining, I've put LDAP Public Key schema via include directive in
slapd.conf. The content of this schema is:

attributetype ( NAME 'sshPublicKey'
	DESC 'MANDATORY: OpenSSH Public key'

# printableString SYNTAX yes|no
objectclass ( NAME 'ldapPublicKey' SUP top
	DESC 'MANDATORY: OpenSSH LPK objectclass'
	MUST ( sshPublicKey $ uid )

But when I try to add the value of attribute by doing:

ldapadd -D "cn=Manager,dc=Mydomain,dc=com" -w secret -f ./users.ldif   -x

I get the following error:

adding new entry "uid=test,ou=users,dc=orange,dc=com"
ldap_add: No such object
        additional info: parent does not exist

ldif_record() = 32

the content of the users.ldif is

dn: uid=test,ou=users,dc=Mydomain,dc=com

Looks like you are missing the entries for:

dn: dc=Mydomain,dc=com


dn: ou=users,dc=Mydomain,dc=com

Although I see from your error message that your domain is really orange.com, so you need the appropriate entries for that.


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin