Lines Matching defs:LDAPLMAP

55 static struct sm_ldap_struct LDAPLMAP;
442 sm_ldap_clear(&LDAPLMAP);
443 LDAPLMAP.ldap_base = MBDB_DEFAULT_LDAP_BASEDN;
444 LDAPLMAP.ldap_host = MBDB_DEFAULT_LDAP_SERVER;
445 LDAPLMAP.ldap_filter = MBDB_LDAP_FILTER;
448 LDAPLMAP.ldap_sizelimit = 1;
466 LDAPLMAP.ldap_host = sep;
468 LDAPLMAP.ldap_base = new;
511 if (LDAPLMAP.ldap_filter == NULL)
518 if (LDAPLMAP.ldap_pid != getpid())
521 LDAPLMAP.ldap_ld = NULL;
524 if (LDAPLMAP.ldap_ld == NULL)
527 if (!sm_ldap_start(MBDB_LDAP_LABEL, &LDAPLMAP))
531 sm_ldap_setopts(LDAPLMAP.ldap_ld, &LDAPLMAP);
532 msgid = sm_ldap_search(&LDAPLMAP, name);
535 save_errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld) + E_LDAPBASE;
540 sm_ldap_close(&LDAPLMAP);
548 ret = ldap_result(LDAPLMAP.ldap_ld, msgid, 1,
549 (LDAPLMAP.ldap_timeout.tv_sec == 0 ? NULL :
550 &(LDAPLMAP.ldap_timeout)),
551 &(LDAPLMAP.ldap_res));
559 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
564 entry = ldap_first_entry(LDAPLMAP.ldap_ld, LDAPLMAP.ldap_res);
576 save_errno = ldap_parse_result(LDAPLMAP.ldap_ld,
577 LDAPLMAP.ldap_res, &rc, NULL,
601 LDAPLMAP.ldap_ld->ld_errno = LDAP_SUCCESS;
606 for (attr = ldap_first_attribute(LDAPLMAP.ldap_ld, entry, &ber);
608 attr = ldap_next_attribute(LDAPLMAP.ldap_ld, entry, ber))
612 vals = ldap_get_values(LDAPLMAP.ldap_ld, entry, attr);
615 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
635 LDAPLMAP.ldap_ld->ld_errno = LDAP_SUCCESS;
721 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
748 if (LDAPLMAP.ldap_res != NULL)
750 ldap_msgfree(LDAPLMAP.ldap_res);
751 LDAPLMAP.ldap_res = NULL;
784 sm_ldap_close(&LDAPLMAP);