OID – Custom Schema

# Add attribute – llcSecretAttr :

cat > ~/add_attr1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: attributetypes
attributetypes: ( 99.99.99.99.98 NAME ‘llcSecretAttr’ EQUALITY caseIgnoreMatch SYNTAX ‘1.3.6.1.4.1.1466.115.121.1.44’ )

$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_attr1_to_schema.ldif
# Add attribute to an objectclass

cat > ~/add_obj1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 99.99.99.99.99 NAME ‘llcTestObj’ SUP top STRUCTURAL MAY llcSecretAttr )
$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_obj1_to_schema.ldif

Advertisements