Perl Scripts
286 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
ns-newpwpolicy.pl (Add attributes for fine-grained
password policy)
Adds entries required for implementing the user- and subtree-level password
policy. For an overview of user- and subtree-level password policy, check the Red
Hat Directory Server Deployment Guide. For instructions to enable this feature,
check the Red Hat Directory Server Administrator’s Guide.
Syntax
Options
Perl script:
ns-newpwdpolicy.pl [-D rootdn] { -w password | -w -
| -j filename } [-p port] [-h host] -U userDN -S
suffixDN
Optio
n
Parameter Description
-D rootdn Specifies the Directory Server user DN with root
permissions, such as Directory Manager.
The default value is cn=directory manager.
-w password Specifies the password associated with the user DN.
-w Prompts for the password associated with the user DN.
-j filename Specifies the path, including the filename, to the file that
contains the password associated with the user DN.
-p port Specifies the Directory Server’s port. The default value is 389
or the LDAP port of Directory Server specified at installation
time.
-h host Specifies the hostname of the Directory Server. The default
value is localhost or the full hostname of the machine where
Directory Server is installed.
-U userDN Specifies the DN of the user entry that needs to be updated
with user-level password policy attributes.
-S suffixDN Specifies the DN of the suffix entry that needs to be updated
with subtree-level password policy attributes.