Chapter 7. Managing User Accounts and Passwords
216
objectclass: cosSuperDefinition
objectclass: cosPointerDefinition
cosTemplateDn: cn="cn=nsPwTemplateEntry,ou=people,dc=example,dc=com",
cn=nsPwPolicyContainer,ou=people,dc=example,dc=com
cosAttribute: pwdpolicysubentry default operational
For a user (for example,
uid=jdoe, ou=people, dc=example, dc=com
), the following
entries are added:
• A container entry (
nsPwPolicyContainer
) at the parent level for holding various password
policy related entries for the user and all its children. For example:
dn: cn=nsPwPolicyContainer, ou=people, dc=example, dc=com
objectClass: top
objectClass: nsContainer
cn: nsPwPolicyContainer
• The actual password policy specification entry (
nsPwPolicyEntry
) for holding the password
policy attributes that are specific to the user. For example:
dn: cn="cn=nsPwPolicyEntry,uid=jdoe,ou=people,dc=example,dc=com",
cn=nsPwPolicyContainer,ou=people,dc=example,dc=com
objectclass: top
objectclass: extensibleObject
objectclass: ldapsubentry
objectclass: passwordpolicy
3. Assign the value of the above entry DN to the
pwdpolicysubentry
attribute of the target entry.
For example, this assigns the password policy to the user entry:
dn: uid=jdoe,ou=people,dc=example,dc=com
changetype: modify
replace: pwdpolicysubentry
pwdpolicysubentry: "cn=nsPwPolicyEntry,uid=jdoe,ou=people,dc=example,dc=com",
cn=nsPwPolicyContainer,ou=people,dc=example,dc=com
4. Set the password policy attributes of subtree or user entry with the appropriate values.
Table 7.1, “Password Policy Attributes”
describes the attributes available to configure the
password policy. The
ldapmodify
utility can be used to change these attributes in the
cn=config
entry.
NOTE
The
nsslapd-pwpolicy-local
attribute of the
cn=config
entry controls the type
of password policy the server enforces. By default, this attribute is disabled (
off
).
When the attribute is disabled, the server only checks for and enforces the global
password policy; the subtree and user level password policies are ignored. When
the
ns-newpwpolicy.pl
script runs, it first checks for the specified subtree and
user entries and, if they exist, modifies them. After updating the entries successfully,
the script sets the
nsslapd-pwpolicy-local
configuration parameter to on. If
the subtree and user level password policy should not be enabled, be sure to set
nsslapd-pwpolicy-local
to
off
after running the script.
Содержание 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 ...