Managing CoS from the Command-Line
131
CoS Type
CoS definition
objectclass: cosIndirectDefinition
cosIndirectSpecifier:
attribute_name
cosAttribute:
list_of_attributes qualifier
Classic CoS
objectclass: top
objectclass: cosSuperDefinition
objectclass: cosClassicDefinition
cosTemplateDn:
DN_string
cosSpecifier:
attribute_name
cosAttribute:
list_of_attributes qualifier
Table 5.4. CoS Definitions
CoS definition entries are
operational
entries and are not returned by default with regular searches.
This means that if a CoS is defined under
ou=People,dc=example,dc=com
, for example, the
following
ldapsearch
command will not return them:
ldapsearch -s sub -b ou=People,dc=example,dc=com “(objectclass=*)”
To return the CoS definition entries, add the
ldapSubEntry
object class to the CoS definition entries.
For example:
dn: cn=pointerCoS,ou=People,dc=example,dc=com
objectclass: top
objectclass: cosSuperDefinition
objectclass: cosPointerDefinition
objectclass: ldapSubEntry
cosTemplateDn: cn=exampleUS,ou=data,dc=example,dc=com
cosAttribute: postalCode override
Then use a special search filter,
(objectclass=ldapSubEntry)
, with the search. This filter can be
added to any other search filter using OR (|):
ldapsearch -s sub -b ou=People,dc=example,dc=com “(|(objectclass=*)
(objectclass=ldapSubEntry))”
This search returns all regular entries in addition to CoS definition entries in the
ou=People,dc=example,dc=com
subtree.
NOTE
The Console automatically shows CoS entries.
5.2.3.2. Creating the CoS Template Entry from the Command-Line
Each template entry is an instance of the
cosTemplate
object class.
NOTE
Consider adding the
LDAPsubentry
object class to a new template entry. Making the
CoS template entry an instance of the
LDAPsubentry
object classes allows ordinary
searches to be performed unhindered by the configuration entries. However, if the
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...