Websitetemplate.org

Welcome > LDAP > Removing Attributes from Schema

Removing Attributes from Schema

With Oracle Directory Server and Red Hat Directory Server/389DS), attributes can be added to the schema and then an auxiliary class created to allow all object classess access to the attributes.

Delete auxilary object class:

$ 
ldapmodify -h localhost -p 389 -D "cn=Directory Manager" -w secret -f new-obj-remove.ldif 
 

Contents of new-obj-remove.ldif

dn: cn=schema
changetype: modify
delete: objectclasses objectClasses: ( NAME 'appAccount' ) 

Delete attributes:

$ 
ldapmodify -h localhost -p 389 -D "cn=Directory Manager" -w secret -f new-attr-remove.ldif 

Contents of new-attr-remove.ldif:

dn: cn=schema 
changetype: modify
delete: attributetypes
attributeTypes: ( 1.3.6.1.4.1.100.200.1.250 NAME 'appAuthZDescription' )
-
delete: attributetypes
attributeTypes: ( 1.3.6.1.4.1.100.200.1.248 NAME 'appOwner' ) 

Content Copyright 2003-2014 George Toft