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

Re: ldap_add: Object class violation



You might have schemacheck on in slapd.conf.  If that's the case,
the person objectclass (see slapd.oc.conf) requires an sn
attribute.

second.dif:
dn: cn=john, dc=uibe, dc=com
objectClass: person
cn: john wang
sn: wang
mail: john@uibe.edu.cn

	Hope this helps,
	Mike

On Thu, Feb 24, 2000 at 12:32:59AM +0800, Missing Wang wrote:
> Hi,
> I am newer of Openldap.
> I add a initial entry like that 
> 
> ldapadd -D "cn=root, dc=uibe, dc=com" -W </usr/local/etc/openldap/myldif
> the myldif like this
> 
> dn: dc=uibe, dc=com
> dc: uibe
> o: mycompany
> objectclass: organization
> objectclass: dcObject
> dn: cn=root, dc=uibe, dc=com
> cn: root
> sn: root
> objectclass: person 
> 
> then it succeed.
> then I want to add the second entry 
> 
> ldapadd -f second.dif
> 
> the screen output like that:
> ldap_add: Object class violation
> 
> second.dif:
> dn: cn=john, dc=uibe, dc=com
> objectClass: person
> cn: john wang
> mail: john@uibe.edu.cn
> 
> Please help me.