[Date Prev][Date Next]
Re: structuralObjectClass: no user modification allowed
You can parse it with sed pretty easily.
sed '^structuralObjectclass:/d' ldiffile > newldiffile
On Mon, 11 Apr 2005, [ISO-8859-1] Fernando Ramírez Sánchez wrote:
> Ok, but I would like to create the ldif file without the
> structuralObjectClass line. Is it posible?
> The ldif file is created with slapcat
> François Beretti wrote:
> > Fernando Ramírez Sánchez wrote:
> >> Hi all,
> > Hi Fernando,
> >> I did a ldif file backup from OpenLDAP server using slapcat.
> >> I restored this file with ldapadd. I get the following error
> >> ldap_add: Constraint violation (19)
> >> additional info: structuralObjectClass: no user modification
> >> allowed
> >> [.....]
> >> if I erase structualObjectClass line it works.
> > As the error said, you don't have the right to write the value of this
> > attribute. This is an internal attribute, handled by slapd. Moreover,
> > you don't need it to create the entry, as it gives (I believe) the
> > lower objectClass in the structural objectClasses inheritence chain of
> > the entry. I don't see the benefit of writing it. So remove it from
> > your LDIF file.
> > François
> >> Any configuration need in LDAP Server or in backup and restore tools?
> >> Thanks.
> >> [