[Date Prev][Date Next]
Re: (ITS#7446) slapadd OBSOLETE object class fails
> Full_Name: Michael Ströder
> Version: HEAD
> Submission from: (NULL) (18.104.22.168)
> Importing an LDIF file with slapadd which contains entries with an object
> marked as OBSOLETE in the schema fails.
> Importing entries with OBSOLETE attribute types seems to work just fine.
> If object classes are marked as OBSOLETE it's clear that it should be
> to add new entries via LDAP based on such an object class. But it should
> be possible to restore old entries from backup.
Currently, slap_tool_entry_check() sets "manage" to 0 when calling
entry_schema_check(); setting it to !0 would allow loading of OBSOLETE
objectClasses. Maybe "manage" should be passed to
slap_tool_entry_check(), and write tools (slapadd, slapmodify) could have
an explicit '-o manage' option to enable handling of these cases.
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano