Home | History | Annotate | Download | only in amd

Lines Matching refs:ldap

44  * Get info from LDAP (Lightweight Directory Access Protocol)
45 * LDAP Home Page: http://www.umich.edu/~rsug/ldap/
50 * ldap.h headers deprecate several functions used in this file, such as
52 * Those externs are still in <ldap.h>, but surrounded by an ifdef
55 * (older?) version of the LDAP API. It gets am-utils to compile, but it is
73 #define AMD_LDAP_TYPE "ldap"
74 /* Time to live for an LDAP cached in an mnt_map */
77 #define AMD_LDAP_HOST "ldap"
102 LDAP *ldap;
173 plog(XLOG_USER, "Adding ldap server %s:%d",
192 * We first ignore SIGPIPE, in case a remote LDAP server was
196 amu_ldap_unbind(LDAP *ld)
236 if (a->ldap != NULL)
237 amu_ldap_unbind(a->ldap);
260 dlog("Map %s is ldap\n", map);
272 aldh->ldap = NULL;
275 plog(XLOG_USER, "Unable to parse hostport %s for ldap map %s",
286 aldh->ldap = NULL;
308 LDAP *ld;
316 if (a->ldap != NULL) {
318 dlog("Re-establishing ldap connection\n");
319 amu_ldap_unbind(a->ldap);
321 a->ldap = NULL;
339 dlog("amu_ldap_rebind: LDAP protocol version set to %ld\n",
342 plog(XLOG_WARNING, "Unable to set ldap protocol version to %ld for "
360 a->ldap = ld;
364 plog(XLOG_WARNING, "Exhausted list of ldap servers, looping.\n");
367 plog(XLOG_USER, "Unable to (re)bind to any ldap hosts\n");
390 err = ldap_search_st(a->ldap,
404 plog(XLOG_USER, "Timestamp LDAP search attempt %d failed: %s\n",
408 amu_ldap_unbind(a->ldap);
409 a->ldap = NULL;
418 plog(XLOG_USER, "LDAP timestamp search failed: %s\n",
425 nentries = ldap_count_entries(a->ldap, res);
433 entry = ldap_first_entry(a->ldap, res);
434 vals = ldap_get_values(a->ldap, entry, AMD_LDAP_TSATTR);
447 plog(XLOG_USER, "Unable to decode ldap timestamp %s for map %s\n",
484 plog(XLOG_USER, "LDAP panic: no map data\n");
504 err = ldap_search_st(a->ldap,
518 plog(XLOG_USER, "LDAP search attempt %d failed: %s\n",
522 amu_ldap_unbind(a->ldap);
523 a->ldap = NULL;
538 plog(XLOG_USER, "LDAP search failed: %s\n",
545 nentries = ldap_count_entries(a->ldap, res);
551 entry = ldap_first_entry(a->ldap, res);
552 vals = ldap_get_values(a->ldap, entry, AMD_LDAP_ATTR);
584 dlog("LDAP panic: unable to find map data\n");