Lines Matching refs:policy

37 /* Ticket policy object management */
40 * create the Ticket policy object in Directory.
43 krb5_ldap_create_policy(context, policy, mask)
45 krb5_ldap_policy_params *policy;
57 if (policy == NULL || policy->policy == NULL) {
66 if ((st = krb5_ldap_name_to_policydn (context, policy->policy, &policy_dn)) != 0)
70 strval[0] = policy->policy;
82 policy->maxtktlife)) != 0)
88 policy->maxrenewlife)) != 0)
94 policy->tktflags)) != 0)
115 * modify the Ticket policy object in Directory.
119 krb5_ldap_modify_policy(context, policy, mask)
121 krb5_ldap_policy_params *policy;
135 if (policy == NULL || policy->policy==NULL) {
144 if ((st = krb5_ldap_name_to_policydn (context, policy->policy, &policy_dn)) != 0)
149 CHECK_CLASS_VALIDITY(st, objectmask, "ticket policy object: ");
160 policy->maxtktlife)) != 0)
166 policy->maxrenewlife)) != 0)
172 policy->tktflags)) != 0)
192 * Read the policy object from the Directory and populate the krb5_ldap_policy_params
197 krb5_ldap_read_policy(context, policyname, policy, omask)
200 krb5_ldap_policy_params **policy;
215 if (policyname == NULL || policy == NULL) {
229 CHECK_CLASS_VALIDITY(st, objectmask, "ticket policy object: ");
231 /* Initialize ticket policy structure */
236 if ((lpolicy->policy = strdup (policyname)) == NULL) {
264 *policy = lpolicy;
269 *policy = NULL;
277 * Function to delete ticket policy object from the directory. Before
280 * i.e., if the object to be is anything other than the ticket policy
285 * references to the policy object to be deleted. This situation is
287 * the deleted policy object is read, to ignore a return status of
317 /* Checking for policy count for 0 and will not permit delete if
345 * list policy objects from Directory
349 krb5_ldap_list_policy(context, containerdn, policy)
352 char ***policy;
373 *policy = (char **) calloc ((unsigned) count + 1, sizeof(char *));
374 if (*policy == NULL) {
381 ret = krb5_ldap_policydn_to_name (context, list[i], &(*policy)[i]);
391 * Function to free the ticket policy object structure.
392 * Note: this function assumes that memory of the policy structure is dynamically allocated and hence the whole
397 krb5_ldap_free_policy(context, policy)
399 krb5_ldap_policy_params *policy;
404 if (policy == NULL)
407 if (policy->policy)
408 free (policy->policy);
410 if (policy->tl_data) {
411 if (policy->tl_data->tl_data_contents)
412 free (policy->tl_data->tl_data_contents);
413 free (policy->tl_data);
415 free (policy);
422 * used for ticket policy object listing.