opendj - Removing objectsClasses and attributeTypes from ldap using ObjectID only -
i have been trying remove objectsclasses, , attributetypes local opendj instance via script. goal create set of scripts destroy , recreate server, when changes occur each developer/instance can have scripts ran , ready go. have been successful @ removing objests , attributes using full definition, when try use objectid unable find objects/attributes. "entry cn=schema cannot modified because attempt update objectclasses have removed 1 or more values attribute not present: (1.1.2.2.2) "
working ldif:
dn: cn=schema changetype: modify delete: objectclasses objectclasses: ( 1.1.2.2.2 name 'tstperson' desc 'person object' sup inetorgperson structural must ( name ) may ( unit ) ) dn: cn=schema changetype:modify delete:attributetypes attributetypes: (2.16.3.1.1 name 'unit' desc 'identifies unit or units person has been assigned' equality caseignorematch substr caseignoresubstringsmatch syntax 1.3.6.1.4.1.1466.115.121.1.15 )
shortened non working:
dn: cn=schema changetype: modify delete: objectclasses objectclasses: ( 1.1.2.2.2 ) dn: cn=schema changetype:modify delete:attributetypes attributetypes: ( 2.16.3.1.1 )
the question is, in order delete objectclass or attribute, full definition of objectclass or attribute need provided, or there way identify objectclass or attribute name or oid?
just checked , works oid , name.
$ ldapmodify -d cn=directory\ manager -w secret12 -p 1389 dn: cn=schema changetype: modify delete: attributetypes attributetypes: (2.16.3.1.1 name 'unit') processing modify request cn=schema modify operation successful dn cn=schema
i need verify why oid not sufficient, should moving forward
Comments
Post a Comment