Home
last modified time | relevance | path

Searched refs:ldap_context (Results 1 – 21 of 21) sorted by relevance

/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dkdb_ldap_conn.c48 krb5_validate_ldap_context(krb5_context context, krb5_ldap_context *ldap_context) in krb5_validate_ldap_context() argument
53 if (ldap_context->bind_dn == NULL) { in krb5_validate_ldap_context()
60 if (ldap_context->bind_pwd == NULL && ldap_context->service_password_file == NULL) { in krb5_validate_ldap_context()
67 if (ldap_context->bind_pwd == NULL && ldap_context->service_password_file != in krb5_validate_ldap_context()
68 NULL && ldap_context->service_cert_path == NULL) { in krb5_validate_ldap_context()
69 if ((st=krb5_ldap_readpassword(context, ldap_context, &password)) != 0) { in krb5_validate_ldap_context()
77 ldap_context->service_cert_path = strdup((char *)password + strlen("{FILE}")); in krb5_validate_ldap_context()
78 if (ldap_context->service_cert_path == NULL) { in krb5_validate_ldap_context()
84 ldap_context->service_cert_pass = NULL; in krb5_validate_ldap_context()
86 ldap_context->service_cert_pass = strdup((char *)password + in krb5_validate_ldap_context()
[all …]
H A Dldap_handle.c99 krb5_get_ldap_handle(ldap_context) in krb5_get_ldap_handle() argument
100 krb5_ldap_context *ldap_context; in krb5_get_ldap_handle()
106 while (ldap_context->server_info_list[cnt] != NULL) {
107 ldap_server_info = ldap_context->server_info_list[cnt];
140 krb5_retry_get_ldap_handle(ldap_context, st) in krb5_retry_get_ldap_handle() argument
141 krb5_ldap_context *ldap_context; in krb5_retry_get_ldap_handle()
146 if ((*st=krb5_ldap_db_single_init(ldap_context)) != 0)
149 ldap_server_handle = krb5_get_ldap_handle(ldap_context);
221 krb5_ldap_request_handle_from_pool(ldap_context, ldap_server_handle) in krb5_ldap_request_handle_from_pool() argument
222 krb5_ldap_context *ldap_context; in krb5_ldap_request_handle_from_pool()
[all …]
H A Dldap_create.c62 krb5_ldap_context *ldap_context=NULL; in krb5_ldap_create() local
75 ldap_context = malloc(sizeof(krb5_ldap_context)); in krb5_ldap_create()
76 if (ldap_context == NULL) { in krb5_ldap_create()
80 memset(ldap_context, 0, sizeof(*ldap_context)); in krb5_ldap_create()
82 ldap_context->kcontext = context; in krb5_ldap_create()
92 if (ldap_context->bind_dn) { in krb5_ldap_create()
105 ldap_context->bind_dn = strdup(val); in krb5_ldap_create()
106 if (ldap_context->bind_dn == NULL) { in krb5_ldap_create()
113 if (ldap_context->max_server_conns) { in krb5_ldap_create()
126 ldap_context->max_server_conns = atoi(val) ? atoi(val) : DEFAULT_CONNS_PER_SERVER; in krb5_ldap_create()
[all …]
H A Dkdb_ldap.c114 krb5_ldap_context *ldap_context=NULL; in krb5_ldap_read_startup_information() local
118 if ((retval=krb5_ldap_read_krbcontainer_params(context, &(ldap_context->krbcontainer)))) { in krb5_ldap_read_startup_information()
123 …if ((retval=krb5_ldap_read_realm_params(context, context->default_realm, &(ldap_context->lrparams)… in krb5_ldap_read_startup_information()
138 ldap_context->lrparams->max_life = 24 * 60 * 60; /* 1 day */ in krb5_ldap_read_startup_information()
141 ldap_context->lrparams->max_renewable_life = 0; in krb5_ldap_read_startup_information()
144 ldap_context->lrparams->tktflags = KRB5_KDB_DEF_FLAGS; in krb5_ldap_read_startup_information()
152 ldap_context->lrparams->max_life = params_out.max_life; in krb5_ldap_read_startup_information()
157 ldap_context->lrparams->max_renewable_life = params_out.max_rlife; in krb5_ldap_read_startup_information()
162 ldap_context->lrparams->tktflags = params_out.flags; in krb5_ldap_read_startup_information()
286 krb5_ldap_context *ldap_context=NULL; in krb5_ldap_open() local
[all …]
H A Dldap_fetch_mkey.c47 krb5_ldap_context *ldap_context=NULL; local
53 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
55 if (ldap_context == NULL || ldap_context->lrparams == NULL)
58 *key = &ldap_context->lrparams->mkey;
74 krb5_ldap_context *ldap_context=NULL; local
81 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
83 if (ldap_context == NULL || ldap_context->lrparams == NULL)
86 r_params = ldap_context->lrparams;
H A Dldap_misc.c152 krb5_ldap_context *ldap_context=NULL; local
156 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
160 ldap_context->conf_section = strdup (conf_section);
161 if (ldap_context->conf_section == NULL) {
171 if (k5_mutex_init(&(ldap_context->hndl_lock)) != 0) {
186 if (ldap_context->max_server_conns == 0) {
190 &ldap_context->max_server_conns);
195 if (ldap_context->max_server_conns < 2) {
208 if (ldap_context->bind_dn == NULL) {
219 &ldap_context->bind_dn);
[all …]
H A Dldap_pwd_policy.c60 krb5_ldap_context *ldap_context=NULL; local
119 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
137 krb5_ldap_context *ldap_context=NULL; local
181 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
231 krb5_ldap_context *ldap_context=NULL; in krb5_ldap_get_password_policy_from_dn() local
290 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle); in krb5_ldap_get_password_policy_from_dn()
339 krb5_ldap_context *ldap_context=NULL; local
371 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
391 krb5_ldap_context *ldap_context=NULL; local
400 if (ldap_context->lrparams->realmdn == NULL) {
[all …]
H A Dldap_principal2.c94 krb5_ldap_context *ldap_context=NULL; local
110 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
112 CHECK_LDAP_HANDLE(ldap_context);
114 if (is_principal_in_realm(ldap_context, searchfor) != 0) {
133 if ((st = krb5_get_subtree_info(ldap_context, &subtree, &ntrees)) != 0)
139 LDAP_SEARCH(subtree[tree], ldap_context->lrparams->search_scope, filter, principal_attributes);
162 if ((st = populate_krb5_db_entry(context, ldap_context, ld, ent, searchfor,
171 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
191 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
471 krb5_ldap_context *ldap_context=NULL; local
[all …]
H A Dldap_tkt_policy.c53 krb5_ldap_context *ldap_context=NULL; local
109 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
131 krb5_ldap_context *ldap_context=NULL; local
186 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
211 krb5_ldap_context *ldap_context=NULL; local
271 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
301 krb5_ldap_context *ldap_context=NULL; local
339 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
358 krb5_ldap_context *ldap_context=NULL; local
363 policycontainerdn = ldap_context->lrparams->realmdn;
[all …]
H A Dldap_realm.c176 krb5_ldap_context *ldap_context = NULL; local
182 if (ldap_context->krbcontainer == NULL) {
184 &(ldap_context->krbcontainer))) != 0)
193 LDAP_SEARCH(ldap_context->krbcontainer->DN,
240 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
267 krb5_ldap_context *ldap_context = NULL; local
347 if ((st = krb5_ldap_list_policy (context, ldap_context->lrparams->realmdn, &policy)) != 0) {
357 if ((st=ldap_delete_ext_s(ld, ldap_context->lrparams->realmdn, NULL, NULL)) != LDAP_SUCCESS) {
380 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
413 krb5_ldap_context *ldap_context=NULL; local
[all …]
H A Dkdb_ldap.h100 ldap_context = (krb5_ldap_context *) dal_handle->db_context; \
101 if (ldap_context == NULL || ldap_context->server_info_list == NULL) \
105 st = krb5_ldap_request_handle_from_pool(ldap_context, &ldap_server_handle); \
122 tempst = krb5_ldap_rebind(ldap_context, &ldap_server_handle); \
175 #define CHECK_LDAP_HANDLE(lcontext) if (!(ldap_context \
176 && ldap_context->server_info_list)) { \
H A Dldap_principal.c157 krb5_ldap_context *ldap_context=NULL; local
176 realm = ldap_context->lrparams->realm_name;
199 if ((st = krb5_get_subtree_info(ldap_context, &subtree, &ntree)) != 0)
206 LDAP_SEARCH(subtree[tree], ldap_context->lrparams->search_scope, filter, principal_attributes);
215 if (is_principal_in_realm(ldap_context, principal) == 0) {
216 if ((st = populate_krb5_db_entry(context, ldap_context, ld, ent, principal,
248 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
271 krb5_ldap_context *ldap_context=NULL; local
391 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
H A Dldap_service_rights.c307 krb5_ldap_context *ldap_context=NULL; local
315 || (ldap_context->krbcontainer->DN == NULL)) {
320 subtreecount=ldap_context->lrparams->subtreecount;
397 ldap_context->krbcontainer->DN,
414 strlen(ldap_context->krbcontainer->DN) + 2);
419 sprintf(realmdn,"cn=%s,%s", realmname, ldap_context->krbcontainer->DN);
618 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
653 krb5_ldap_context *ldap_context=NULL; local
661 || (ldap_context->krbcontainer->DN == NULL)) {
698 strlen(ldap_context->krbcontainer->DN) + 2);
[all …]
H A Dldap_services.c59 krb5_ldap_context *ldap_context=NULL; local
170 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
194 krb5_ldap_context *ldap_context=NULL; local
341 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
355 krb5_ldap_context *ldap_context=NULL; local
392 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
428 krb5_ldap_context *ldap_context=NULL; local
525 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
578 krb5_ldap_context *ldap_context=NULL; local
597 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle);
H A Dldap_krbcontainer.c84 krb5_ldap_context *ldap_context=NULL; in krb5_ldap_read_krbcontainer_params() local
95 if (ldap_context->conf_section) { in krb5_ldap_read_krbcontainer_params()
96 if ((st=profile_get_string(context->profile, KDB_MODULE_SECTION, ldap_context->conf_section, in krb5_ldap_read_krbcontainer_params()
204 krb5_ldap_put_handle_to_pool(ldap_context, ldap_server_handle); in krb5_ldap_read_krbcontainer_params()
H A Dldap_service_stash.c45 krb5_ldap_readpassword(context, ldap_context, password) in krb5_ldap_readpassword() argument
47 krb5_ldap_context *ldap_context;
58 if (ldap_context->service_password_file)
59 file = ldap_context->service_password_file;
108 if (strcasecmp(tmp, ldap_context->bind_dn) == 0) {
H A Dldap_misc.h149 krb5_ldap_context *ldap_context,
/titanic_41/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_util.c312 krb5_ldap_context *ldap_context=NULL; local
502 ldap_context = calloc(sizeof(krb5_ldap_context), 1);
503 if (ldap_context == NULL) {
510 ldap_context->kcontext = util_context;
548 ldap_context->bind_pwd = passwd;
554ldap_context->server_info_list = (krb5_ldap_server_info **) calloc (2, sizeof (krb5_ldap_server_in…
555 if (ldap_context->server_info_list == NULL) {
562ldap_context->server_info_list[0] = (krb5_ldap_server_info *) calloc (1, sizeof (krb5_ldap_server_…
563 if (ldap_context->server_info_list[0] == NULL) {
570 ldap_context->server_info_list[0]->server_status = NOTSET;
[all …]
H A Dkdb5_ldap_realm.c326 krb5_ldap_context *ldap_context=NULL; local
538 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
539 if (!ldap_context) {
546 &(ldap_context->krbcontainer))) == KRB5_KDB_NOENTRY) {
554 if (ldap_context->conf_section) {
556 KDB_MODULE_SECTION, ldap_context->conf_section,
602 &(ldap_context->krbcontainer));
624 &(ldap_context->lrparams),
631 ldap_context->lrparams->realm_name = strdup(global_params.realm);
632 if (ldap_context->lrparams->realm_name == NULL) {
[all …]
H A Dkdb5_ldap_policy.c65 krb5_ldap_context *ldap_context=NULL; in init_ldap_realm() local
68 ldap_context = (krb5_ldap_context *) dal_handle->db_context; in init_ldap_realm()
69 if (!ldap_context) { in init_ldap_realm()
74 if (ldap_context->krbcontainer == NULL) { in init_ldap_realm()
76 &(ldap_context->krbcontainer)); in init_ldap_realm()
84 if (ldap_context->lrparams == NULL) { in init_ldap_realm()
87 &(ldap_context->lrparams), in init_ldap_realm()
H A Dkdb5_ldap_services.c224 krb5_ldap_context *ldap_context=NULL; local
241 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
260 &(ldap_context->krbcontainer)))) {
314 ldap_context->krbcontainer->DN))) {
529 krb5_ldap_context *ldap_context=NULL; local
538 ldap_context = (krb5_ldap_context *) dal_handle->db_context;
591 &(ldap_context->krbcontainer)))) {
753 ldap_context->krbcontainer->DN))) {
802 ldap_context->krbcontainer->DN))) {
832 ldap_context->krbcontainer->DN))) {
[all …]