summaryrefslogtreecommitdiffstats
path: root/src/plugins/kdb/ldap
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-01-08 15:20:45 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-09 15:35:43 -0500
commit0780e46fc13dbafa177525164997cd204cc50b51 (patch)
treeeacb2400a78bfab43bbc95cb8ab3055498da881b /src/plugins/kdb/ldap
parent090f561c631db7e4970b71cbe1426d636c39c77a (diff)
downloadkrb5-0780e46fc13dbafa177525164997cd204cc50b51.tar.gz
krb5-0780e46fc13dbafa177525164997cd204cc50b51.tar.xz
krb5-0780e46fc13dbafa177525164997cd204cc50b51.zip
Allow principals to refer to nonexistent policies
Stop using and maintaining the policy_refcnt field, and do not try to prevent deletion of a policy which is still referenced by principals. Instead, allow principals to refer to policy names which do not exist as policy objects; treat those principals as having no associated policy. In the kadmin client, warn if addprinc or modprinc tries to reference a policy which doesn't exist, since the server will no longer error out in this case. ticket: 7385
Diffstat (limited to 'src/plugins/kdb/ldap')
-rw-r--r--src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
index e955f8e40..011b2a04e 100644
--- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c
@@ -384,13 +384,6 @@ krb5_ldap_delete_password_policy(krb5_context context, char *policy)
if (st != 0)
goto cleanup;
- st = krb5_ldap_get_reference_count(context, policy_dn,
- "krbPwdPolicyReference", &refcount, ld);
- if (st == 0 && refcount != 0)
- st = KRB5_KDB_POLICY_REF;
- if (st != 0)
- goto cleanup;
-
/* Ensure that the object is a password policy */
if ((st=checkattributevalue(ld, policy_dn, "objectclass", class, &mask)) != 0)
goto cleanup;