Lines Matching refs:ldap_context

154     krb5_ldap_context           *ldap_context=NULL;
158 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
160 /* copy the conf_section into ldap_context for later use */
162 ldap_context->conf_section = strdup (conf_section);
163 if (ldap_context->conf_section == NULL) {
173 if (k5_mutex_init(&(ldap_context->hndl_lock)) != 0) {
188 if (ldap_context->max_server_conns == 0) {
192 &ldap_context->max_server_conns);
197 if (ldap_context->max_server_conns < 2) {
210 if (ldap_context->bind_dn == NULL) {
221 &ldap_context->bind_dn);
232 if (ldap_context->service_password_file == NULL) {
235 &ldap_context->service_password_file);
240 if (ldap_context->service_password_file == NULL) {
245 &ldap_context->service_password_file);
265 if (ldap_context->root_certificate_file == NULL) {
268 &ldap_context->root_certificate_file);
279 if (ldap_context->server_info_list == NULL) {
282 server_info = &(ldap_context->server_info_list);
342 krb5_ldap_free_server_context_params(krb5_ldap_context *ldap_context)
347 if (ldap_context == NULL)
352 if (ldap_context->server_info_list) {
353 while (ldap_context->server_info_list[i]) {
354 if (ldap_context->server_info_list[i]->server_name) {
355 free (ldap_context->server_info_list[i]->server_name);
358 if (ldap_context->server_info_list[i]->root_certificate_file) {
359 free (ldap_context->server_info_list[i]->root_certificate_file);
362 if (ldap_context->server_info_list[i]->ldap_server_handles) {
363 ldap_server_handle = ldap_context->server_info_list[i]->ldap_server_handles;
372 krb5_xfree(ldap_context->server_info_list[i]);
375 krb5_xfree(ldap_context->server_info_list);
378 if (ldap_context->conf_section != NULL) {
379 krb5_xfree(ldap_context->conf_section);
380 ldap_context->conf_section = NULL;
383 if (ldap_context->bind_dn != NULL) {
384 krb5_xfree(ldap_context->bind_dn);
385 ldap_context->bind_dn = NULL;
388 if (ldap_context->bind_pwd != NULL) {
389 memset(ldap_context->bind_pwd, 0, strlen(ldap_context->bind_pwd));
390 krb5_xfree(ldap_context->bind_pwd);
391 ldap_context->bind_pwd = NULL;
394 if (ldap_context->service_password_file != NULL) {
395 krb5_xfree(ldap_context->service_password_file);
396 ldap_context->service_password_file = NULL;
401 if (ldap_context->root_certificate_file != NULL) {
402 krb5_xfree(ldap_context->root_certificate_file);
403 ldap_context->root_certificate_file = NULL;
407 if (ldap_context->service_cert_path != NULL) {
408 krb5_xfree(ldap_context->service_cert_path);
409 ldap_context->service_cert_path = NULL;
412 if (ldap_context->service_cert_pass != NULL) {
413 krb5_xfree(ldap_context->service_cert_pass);
414 ldap_context->service_cert_pass = NULL;
417 if (ldap_context->certificates) {
419 while (ldap_context->certificates[i] != NULL) {
420 krb5_xfree(ldap_context->certificates[i]->certificate);
421 krb5_xfree(ldap_context->certificates[i]);
424 krb5_xfree(ldap_context->certificates);
431 krb5_ldap_free_server_params(krb5_ldap_context *ldap_context)
433 if (ldap_context == NULL)
436 krb5_ldap_free_server_context_params(ldap_context);
438 k5_mutex_destroy(&ldap_context->hndl_lock);
439 krb5_xfree(ldap_context);
452 is_principal_in_realm(krb5_ldap_context *ldap_context,
460 defrealmlen = strlen(ldap_context->lrparams->realm_name);
461 defrealm = ldap_context->lrparams->realm_name;
511 krb5_get_subtree_info(krb5_ldap_context *ldap_context, char ***subtreearr,
521 containerref = ldap_context->lrparams->containerref;
522 subtree = ldap_context->lrparams->subtree;
523 realm_cont_dn = ldap_context->lrparams->realmdn;
524 subtreecount = ldap_context->lrparams->subtreecount;
525 search_scope = ldap_context->lrparams->search_scope;
1575 krb5_ldap_context *ldap_context = NULL;
1606 if ((st = krb5_get_subtree_info(ldap_context, &subtree, &ntrees)) != 0)
1649 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
1664 krb5_ldap_context *ldap_context=NULL;
1668 if (ldap_context->lrparams->realmdn == NULL) {
1673 len1 = strlen (ldap_context->lrparams->realmdn);
1680 if (strcmp (ldap_context->lrparams->realmdn, policy_dn + (len2 - len1)) != 0) {
1738 krb5_ldap_context *ldap_context=NULL;
1757 if (ldap_context->lrparams->realmdn == NULL) {
1761 len = strlen (ldap_context->lrparams->realmdn);
1778 sprintf (*policy_dn, "cn=%s,%s", ptr, ldap_context->lrparams->realmdn);
1854 populate_krb5_db_entry(krb5_context context, krb5_ldap_context *ldap_context,
2134 if ((st=krb5_read_tkt_policy (context, ldap_context, entry, tktpolname)) !=0)