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

Re: ldapadd not working ?



On Mon, 2003-10-20 at 09:18, ldap@linuxpro.co.za wrote:
> ##################################################################
> my test.ldif
> I've removed all uncessary spaces ....
> ##################################################################
> dn:cn=Manager,o=domain-name
> objectClass: top
> objectClass: dcObject
> objectClass: organization
> dc: domain-name
> o: domain-name
> description: Full Company Name Domain
> dn: o=domain-name
> objectClass: top
> objectClass: organization
> o: domain-name
> description: Full Company Name
> dn: cn=AdminManager,o=domain-name
> objectClass: organizationalRole
> cn: AdminManager
> description: LDAP Directory Administrator
> dn: ou=MemberGroupA,o=domain-name
> ou: MemberGroupA
> objectClass: top
> objectClass: organizationalUnit
> description: Members of MemberGroupA
> dn: ou=MemberGroupB,o=domain-name
> ou: MemberGroupB
> objectClass: top
> objectClass: organizationalUnit
> description: Members of MemberGroupB
> dn: cn=Larry Anderson,ou=MemberGroupA,o=domain-name
> cn: Larry Andersone
> obje

I assume you mean you have removed the blank lines that separate each
entry? Be sure they are in your LDIF file. Other than that, I see your
first record has a 'cn' attribute, but none of your ObjectClass allow
for this attribute, perhaps use the 'o' attribute or add an ObjectClass
that allows use of the 'cn' attribute.

-- 
Robert