Novell is now a part of Micro Focus

How to Extend the NDS eDirectory Schema

Articles and Tips: tip

Arun Singh
Novell, Inc.

01 Oct 2000


In order to extend NDS eDirectory schema, you need the LDIF (RFC 2252) format file and the ldapmodify LDAP SDK tool. The following procedure is applicable to all supported eDirectory platforms.

If you are trying to import schema from other directory formats (such as Netscape or Microsoft Active Directory), you will also need the SCHMIG tool that is available from http://developer.novell.com/ndk. This tool will take the schema from other directory formats and generate an LDIF format file. However, you should review this file before extending the server's schema. NDS follows referential integrity, which means that attributes should exist before the class can be created.

Command to Extend the Schema

The command to extend the schema is as follows:

ldapmodify b o=novell -h <IP_Address> -D "Admin Context" -w password < <LDIF File>

Command to Verify the Schema Extension

The command to verify the schema extension is as follows:

ldapsearch -b cn=schema -s base -h IP_Address -T -D
cn=admin,o=novell -w password -l 100
(objectclass=subschema) objectclasses attributetypes

Sample Attributes and Class Information

Here is a list of sample attributes and class information:

dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.2.840.113556.1.4.4000.1 NAME
accessMode123' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetypes: ( 1.2.840.113556.1.4.4000.2 NAME
'CAccess123' SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE )

dn: cn=schema
changetype: modify
add: objectclasses
objectclasses: ( 1.2.840.113556.1.4.4000.3 NAME
'aclProfileAux' AUXILIARY
MAY ( 1.2.840.113556.1.4.4000.1 $ 1.2.840.113556.1.4.4000.2
) )

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates