Lines Matching refs:policy_dn
65 char **rdns=NULL, *strval[2]={NULL}, *policy_dn;
77 st = krb5_ldap_name_to_policydn (context, policy->name, &policy_dn);
82 rdns = ldap_explode_dn(policy_dn, 1);
116 if ((st=ldap_add_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) {
125 if (policy_dn != NULL)
126 free (policy_dn);
139 char *policy_dn;
157 st = krb5_ldap_name_to_policydn (context, policy->name, &policy_dn);
181 * This will fail if the 'policy_dn' is anywhere other than under the realm
185 if ((st=ldap_modify_ext_s(ld, policy_dn, mods, NULL, NULL)) != LDAP_SUCCESS) {
191 if (policy_dn != NULL)
192 free (policy_dn);
319 char *policy_dn = NULL;
330 st = krb5_ldap_name_to_policydn(context, name, &policy_dn);
334 st = krb5_ldap_get_password_policy_from_dn(context, name, policy_dn, policy, cnt);
337 if (policy_dn != NULL)
338 free (policy_dn);
346 char *policy_dn = NULL, *class[] = {"krbpwdpolicy", NULL};
363 st = krb5_ldap_name_to_policydn (context, policy, &policy_dn);
368 if ((st=checkattributevalue(ld, policy_dn, "objectclass", class, &mask)) != 0)
376 if ((st=ldap_delete_ext_s(ld, policy_dn, NULL, NULL)) != LDAP_SUCCESS) {
383 if (policy_dn != NULL)
384 free (policy_dn);