a313bb82760015c65c143ca1d89665a745091369
[krb5.git] / doc / rst_source / krb_admins / database / db_policies / mod_pol.rst
1 Adding, modifying and deleting policies
2 =======================================
3
4 To add a new policy, use the kadmin **add_policy** command.
5
6 To modify attributes of a principal, use the kadmin **modify_policy**
7 command.
8
9 To delete a policy, use the kadmin **delete_policy** command.
10
11 .. include:: ../../admin_commands/kadmin_local.rst
12    :start-after:  _add_policy:
13    :end-before: _add_policy_end:
14
15 .. note:: The policies are created under **realm** container in the
16           LDAP database.
17
18 .. include:: ../../admin_commands/kadmin_local.rst
19    :start-after:  _modify_policy:
20    :end-before: _modify_policy_end:
21
22 .. include:: ../../admin_commands/kadmin_local.rst
23    :start-after:  _delete_policy:
24    :end-before: _delete_policy_end:
25
26 .. note:: You must cancel the policy from *all* principals before
27           deleting it.  The *delete_policy* command will fail if it is
28           in use by any principals.
29
30
31 Feedback
32 --------
33
34 Please, provide your feedback at
35 krb5-bugs@mit.edu?subject=Documentation___db_policies