Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Attribute Uniqueness in the Directory, 4 of 5
This section contains these topics:
Attribute uniqueness constraint entries are stored under cn=unique,cn=Common,cn=Products,cn=OracleContext
.
You can use Oracle Directory Manager to create, modify, and delete attribute uniqueness constraint entries.
In the New Constraint dialog box, enter values for the fields. These are described in Table C-6.
To modify an attribute uniqueness constraint entry:
To delete an attribute uniqueness constraint policy:
This section contains these topics:
You can enable or disable attribute uniqueness for an existing attribute uniqueness constraint entry.
To enable attribute uniqueness for an existing attribute uniqueness constraint entry:
orcluniqueenable
attribute to 1
by using ldapmodify.
To disable attribute uniqueness:
orcluniqueenable
attribute to 0
by using ldapmodify.
To enable attribute uniqueness, specify an attribute uniqueness constraint entry with the attributes listed in Table 8-1.
To create an instance of attribute uniqueness across an entire directory, specify an attribute name for which you want to enforce value uniqueness.
For example, to make employee identifiers unique for all US employees at MyCompany, you would follow these steps.
dn: cn=constraint1, cn=unique, cn=common, cn=products, cn=oraclecontext objectclass: orclUniqueConfig orcluniqueattrname: employeenumber orcluniquesubtree: o=MyCompany, c=US orcleuniqueobjectclass: person
ldapadd -h host -p port -D DN -w password -f constraint1.dat
To create an instance of attribute uniqueness across one or more subtrees, specify:
For example, suppose that MyCompany hosts the directories for SubscriberCompany1 and SubscriberCompany2, and you want to enforce the uniqueness of the employee identifier attribute in SubscriberCompany1 only. When you add an entry such as uid=dlin,ou=people,o=SubscriberCompany1,dc=MyCompany,
, you must enforce uniqueness only in the
dc=como=SubscriberCompany1,dc=MyCompany,dc=com
subtree. Do this by listing the DN of the subtree explicitly in the attribute uniqueness constraint configuration.
In this case, the LDIF file would look like this:
dn: cn=constraint1, cn=unique, cn=common, cn=products, cn=oraclecontext objectclass: orclUniqueConfig orcluniqueattrname: employeenumber orcluniquesubtree: o=SubscriberCompany1,dc=MyCompany, dc=com
To create an instance of attribute uniqueness across one object class, specify:
In this case, the LDIF file would look like this:
dn: cn=constraint1, cn=unique, cn=common, cn=products, cn=oraclecontext objectclass: orclUniqueConfig orcluniqueattrname: employeenumber orcleuniqueobjectclass: person
To modify an attribute uniqueness entry, use create an LDIF file for the entry, then use ldapmodify to upload it into the directory.
For example, suppose there is an existing attribute uniqueness constraint entry:
dn: cn=constraint1, cn=unique, cn=common, cn=products, cn=oraclecontext objectclass: orclUniqueConfig orcluniqueattrname: employeenumber orcluniquesubtree: o=MyCompany, c=US orcleuniqueobjectclass: person
To enforce the constraint against c=US
, instead of o=MyCompany
, you would perform these steps:
orcluniquenesssubtree
:
dn: cn=constraint1, cn=unique, cn=common, cn=products, cn=oraclecontext changetype: modify replace: orcluniquesubtree orcluniquesubtree: o=Oracle Corporation, c=US
ldapmodify -p port -D user -w password -f file_name
Use the ldapdelete
command-line tool to delete an attribute uniqueness constraint policy.
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|