Lines Matching defs:ldap

45 /* Default define for ldap functions that need a SIZELIMIT but
75 static const char *ldap_cache_mutex_type = "ldap-cache";
107 * <Location /ldap-status>
108 * SetHandler ldap-status
121 if (strcmp(r->handler, "ldap-status")) {
183 if (ldc->ldap) {
187 ldap_unbind_s(ldc->ldap);
188 ldc->ldap = NULL;
194 apr_ldap_rebind_remove(ldc->ldap);
295 apr_ldap_init(r->pool, &(ldc->ldap),
304 ldc->reason = "LDAP: ldap initialization failed";
315 if (NULL == ldc->ldap)
319 ldc->reason = "LDAP: ldap initialization failed";
330 /* Now that we have an ldap struct, add it to the referral list for rebinds. */
331 rc = apr_ldap_rebind_add(ldc->rebind_pool, ldc->ldap, ldc->binddn, ldc->bindpw);
342 ldap_set_option(ldc->ldap, LDAP_OPT_PROTOCOL_VERSION, &version);
346 apr_ldap_set_option(r->pool, ldc->ldap, APR_LDAP_OPT_TLS_CERT,
362 apr_ldap_set_option(r->pool, ldc->ldap,
373 ldap_set_option(ldc->ldap, LDAP_OPT_DEREF, &ldap_option);
380 apr_ldap_set_option(r->pool, ldc->ldap,
403 apr_ldap_set_option(r->pool, ldc->ldap,
422 apr_ldap_set_option(r->pool, ldc->ldap, APR_LDAP_OPT_VERIFY_CERT,
452 rc = apr_ldap_set_option(r->pool, ldc->ldap, LDAP_OPT_NETWORK_TIMEOUT,
463 * LDAP_OPT_TIMEOUT is not portable, but it influences all synchronous ldap
467 * XXX: synchronous ldap function calls with asynchronous calls and using
471 rc = apr_ldap_set_option(r->pool, ldc->ldap, LDAP_OPT_TIMEOUT,
487 if (LDAP_SUCCESS == ldap_get_option(ldc->ldap, LDAP_OPT_ERROR_NUMBER, &ldaprc)) return ldaprc;
490 if (LDAP_SUCCESS == ldap_get_option(ldc->ldap, LDAP_OPT_RESULT_CODE, &ldaprc)) return ldaprc;
507 int msgid = ldap_simple_bind(ldc->ldap, binddn, bindpw);
512 rc = ldap_result(ldc->ldap, msgid, 0, timeout, &result);
521 } else if (ldap_parse_result(ldc->ldap, result, &rc, NULL, NULL, NULL,
535 * connected (i.e. ldc->ldap is non-NULL.) Does not bind if already bound.
560 /* create the ldap session handle
562 if (NULL == ldc->ldap)
686 * Find an existing ldap connection struct that matches the
687 * provided ldap connection parameters.
845 * APR_LDAP_NONE (ldap://) or APR_LDAP_SSL (ldaps://).
892 * The lock for the ldap cache should already be acquired.
969 result = ldap_search_ext_s(ldc->ldap, (char *)reqdn, LDAP_SCOPE_BASE,
1000 entry = ldap_first_entry(ldc->ldap, res);
1001 searchdn = ldap_get_dn(ldc->ldap, entry);
1127 result = ldap_compare_s(ldc->ldap,
1248 result = ldap_search_ext_s(ldc->ldap, (char *)dn, LDAP_SCOPE_BASE,
1278 entry = ldap_first_entry(ldc->ldap, sga_res);
1291 values = ldap_get_values(ldc->ldap, entry, subgroupAttrs[indx]);
1728 result = ldap_search_ext_s(ldc->ldap,
1761 count = ldap_count_entries(ldc->ldap, res);
1773 entry = ldap_first_entry(ldc->ldap, res);
1776 dn = ldap_get_dn(ldc->ldap, entry);
1846 values = ldap_get_values(ldc->ldap, entry, attrs[i]);
1998 result = ldap_search_ext_s(ldc->ldap,
2022 count = ldap_count_entries(ldc->ldap, res);
2034 entry = ldap_first_entry(ldc->ldap, res);
2037 dn = ldap_get_dn(ldc->ldap, entry);
2055 values = ldap_get_values(ldc->ldap, entry, attrs[i]);
2143 "ldap cache: Setting shared memory cache size to "
2191 "ldap cache: Setting cache TTL to %ld microseconds.",
2215 "ldap cache: Setting search cache size to %ld entries.",
2236 "ldap cache: Setting operation cache TTL to %ld microseconds.",
2260 "ldap cache: Setting operation cache size to %ld entries.",
2590 "ldap connection: Setting connection timeout to %ld seconds.",
2714 "ldap connection: Setting op timeout to %ld seconds.",
3204 AP_DECLARE_MODULE(ldap) = {