Following are sample LDIFs that can be used to populate the schema attributes and the object classes::
1) To define custom attributes ::
dn: cn=subSchemaSubentry
changetype: modify
add: attributetypes
attributetypes: ( 1.1.1.1.1.1.1000.0.0.1 NAME 'Attribute1' DESC 'This is Attrib1' EQUALITY 'caseIgnoreMatch' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' X-ORIGIN 'user defined' )
attributetypes: ( 1.1.1.1.1.1.1000.0.0.2 NAME 'Attribute2' DESC 'This is Attrib2' EQUALITY 'caseIgnoreMatch' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' X-ORIGIN 'user defined' )
2) Add the defined attributes to the catalog to make them searchable if required::
dn: cn=catalogs
changetype: modify
add: orclindexedattribute
orclindexedattribute: Attribute1
dn: cn=catalogs
changetype: modify
add: orclindexedattribute
orclindexedattribute: Attribute2
3) Adding Object Classes ::
dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 1.1.1.1.1.1.1001.0.0.1 NAME 'class1' DESC 'This is Object class' SUP top AUXILIARY MAY ( Attribute1 $ Attribute2 ) )
objectclasses: ( 1.1.1.1.1.1.1001.0.0.1 NAME 'class2' DESC 'This is another Object class' SUP top AUXILIARY MAY ( Attribute1 $ Attribute2 ) )
4) Once all the ldif files are created, use the Ldapmodify command to execute the ldifs
ldapmodify -h OIDHostname -p 3060 -D cn=orcladmin -w passwod -f LdifFile.ldif
1) To define custom attributes ::
dn: cn=subSchemaSubentry
changetype: modify
add: attributetypes
attributetypes: ( 1.1.1.1.1.1.1000.0.0.1 NAME 'Attribute1' DESC 'This is Attrib1' EQUALITY 'caseIgnoreMatch' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' X-ORIGIN 'user defined' )
attributetypes: ( 1.1.1.1.1.1.1000.0.0.2 NAME 'Attribute2' DESC 'This is Attrib2' EQUALITY 'caseIgnoreMatch' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' X-ORIGIN 'user defined' )
2) Add the defined attributes to the catalog to make them searchable if required::
dn: cn=catalogs
changetype: modify
add: orclindexedattribute
orclindexedattribute: Attribute1
dn: cn=catalogs
changetype: modify
add: orclindexedattribute
orclindexedattribute: Attribute2
3) Adding Object Classes ::
dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 1.1.1.1.1.1.1001.0.0.1 NAME 'class1' DESC 'This is Object class' SUP top AUXILIARY MAY ( Attribute1 $ Attribute2 ) )
objectclasses: ( 1.1.1.1.1.1.1001.0.0.1 NAME 'class2' DESC 'This is another Object class' SUP top AUXILIARY MAY ( Attribute1 $ Attribute2 ) )
4) Once all the ldif files are created, use the Ldapmodify command to execute the ldifs
ldapmodify -h OIDHostname -p 3060 -D cn=orcladmin -w passwod -f LdifFile.ldif
No comments:
Post a Comment