Lines Matching refs:ldap
96 ldap_err2string(ldap_get_lderrno(ldap))
110 LDAP *ldap; member
132 code = ldap_get_lderrno(ldaptcl->ldap); in LDAP_SetErrorCode()
187 LDAP_ProcessOneSearchResult (interp, ldap, entry, destArrayNameObj, evalCodeObj) in LDAP_ProcessOneSearchResult() argument
189 LDAP *ldap;
205 dn = ldap_get_dn(ldap, entry);
222 for (attributeName = ldap_first_attribute (ldap, entry, &ber);
224 attributeName = ldap_next_attribute(ldap, entry, ber)) {
226 bvals = ldap_get_values_len(ldap, entry, attributeName);
306 LDAP *ldap = ldaptcl->ldap; local
322 if ((msgid = ldap_search (ldap, base, scope, filter, attrs, 0)) == -1) {
325 LDAP_ERR_STRING(ldap),
336 resultCode = ldap_result (ldap, msgid, all, timeout_p, &resultMessage);
343 ldap_sort_entries(ldap, &resultMessage, sortKey, strcasecmp);
345 entryMessage = ldap_first_entry(ldap, resultMessage);
349 ldap,
372 entryMessage = ldap_next_entry(ldap, entryMessage);
384 ldap_abandon(ldap, msgid);
391 LDAP_ERR_STRING(ldap),
397 if ((errorCode = ldap_result2error (ldap, resultMessage, 0))
436 LDAP *ldap = ldaptcl->ldap; local
511 #define LDAP_BIND(ldap, dn, pw, method) \ argument
512 ldap_bind_s(ldap, dn, pw, method)
514 #define LDAP_BIND(ldap, dn, pw, method) \ argument
515 ldap_simple_bind_s(ldap, dn, pw)
517 if ((errcode = LDAP_BIND (ldap,
549 if ((errcode = ldap_delete_s(ldap, dn)) != LDAP_SUCCESS) {
576 if ((errcode = ldap_modrdn2_s (ldap, dn, rdn, deleteOldRdn)) != LDAP_SUCCESS) {
725 result = ldap_add_s (ldap, dn, modArray);
727 result = ldap_modify_s (ldap, dn, modArray);
729 ldap_uncache_entry (ldap, dn);
933 ldap->ld_deref = deref;
934 ldap->ld_timelimit = 0;
935 ldap->ld_sizelimit = 0;
936 ldap->ld_options = 0;
949 ldap_enable_cache(ldap, ldaptcl->timeout, ldaptcl->maxmem);
952 ldap_disable_cache(ldap);
957 ldap_set_option(ldap, LDAP_OPT_DEREF, &deref);
977 ldap_disable_cache(ldap);
979 ldap_enable_cache(ldap, ldaptcl->timeout, ldaptcl->maxmem);
983 ldap_set_option(ldap, LDAP_OPT_DEREF, &deref);
1008 result = ldap_compare_s (ldap, dn, attr, value);
1016 LDAP_ERR_STRING(ldap),
1044 ldap_uncache_entry (ldap, dn);
1072 if (ldap_enable_cache (ldap, timeout, maxmem) == -1) {
1075 LDAP_ERR_STRING(ldap),
1089 ldap_disable_cache (ldap);
1095 ldap_destroy_cache (ldap);
1101 ldap_flush_cache (ldap);
1106 ldap_set_cache_options (ldap, LDAP_CACHE_OPT_CACHENOERRS);
1111 ldap_set_cache_options (ldap, LDAP_CACHE_OPT_CACHEALLERRS);
1116 ldap_set_cache_options (ldap, 0);
1242 LDAP *ldap = ldaptcl->ldap; local
1248 ldap_unbind(ldap);
1278 LDAP *ldap; local
1363 ldap = ldap_open (ldapHost, ldapPort);
1411 ldap = ldap_init (ldapHost, ldapPort);
1415 ldap_set_option(ldap, LDAP_OPT_PROTOCOL_VERSION, &version);
1423 if (ldap == (LDAP *)NULL) {
1432 ldap->ld_deref = LDAP_DEREF_NEVER; /* Turn off alias dereferencing */
1436 ldaptcl->ldap = ldap;