Novell Home

Mutual containment with NDS eDirectory

Novell Cool Solutions: Tip

Digg This - Slashdot This

Posted: 16 May 2001
 

In many ldap servers, all objects are containers. In NDS eDirectory, the concept of a leaf object is preserved. Leaf and container objects may be contained by (instantiated within) containers. How do you define two container objects, both of which may contain the other?

If using an LDIF file, define the first container without containment rule. Then define the second container with containment to the first. Then edit the first container to provide containment by the second. This feature to edit containment property is only available in eDirectory 8.5 and higher.

The ldif file would be similar to the following. Note that the default for X-NDS_NOT_CONTAINER is false, but this is listed for clarity:

# create first class
dn: cn=schema
changetype: modify
add: objectClasses
objectClasses: ( 2.16.840.1.113719.4.1.6.10 NAME 'test1Replace' DESC 'Standard O
bjectClass' SUP top STRUCTURAL MUST (accountBalance $ cn ) MAY acl X-NDS_NAM
ING 'cn' X-NDS_CONTAINMENT ('country' 'locality' 'organization' 'organizatio
nalUnit' 'domain' ) X-NDS_NOT_CONTAINER '0')

# create second class (include containment by # first class )
dn: cn=schema
changetype: modify
add: objectClasses
objectClasses: ( 2.16.840.1.113719.4.1.6.11 NAME 'test2Replace' DESC 'Standard O
bjectClass' SUP top STRUCTURAL MUST (accountBalance $ cn ) MAY acl X-NDS_NAM
ING 'cn' X-NDS_CONTAINMENT ('country' 'locality' 'organization' 'organizatio
nalUnit' 'domain' 'test1Replace' ) X-NDS_NOT_CONTAINER '0')

# modify first class to add containment by # second class
dn: cn=schema
changetype: modify
delete: objectClasses
objectClasses: ( 2.16.840.1.113719.4.1.6.10 NAME 'test1Replace' )
-
add: objectClasses
objectClasses: ( 2.16.840.1.113719.4.1.6.10 NAME 'test1Replace' DESC 'Standard O
bjectClass' SUP top STRUCTURAL MUST ( accountBalance $ cn ) MAY acl X-NDS_NAM
ING 'cn' X-NDS_CONTAINMENT ('country' 'locality' 'organization' 'organizatio
nalUnit' 'domain' 'test2Replace' ) X-NDS_NOT_CONTAINER '0')


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell