Lines Matching refs:LDAPLMAP

49 static struct sm_ldap_struct LDAPLMAP;  variable
426 sm_ldap_clear(&LDAPLMAP);
427 LDAPLMAP.ldap_base = MBDB_DEFAULT_LDAP_BASEDN;
428 LDAPLMAP.ldap_host = MBDB_DEFAULT_LDAP_SERVER;
429 LDAPLMAP.ldap_filter = MBDB_LDAP_FILTER;
432 LDAPLMAP.ldap_sizelimit = 1;
450 LDAPLMAP.ldap_host = sep;
452 LDAPLMAP.ldap_base = new;
495 if (LDAPLMAP.ldap_filter == NULL)
502 if (LDAPLMAP.ldap_pid != getpid())
505 LDAPLMAP.ldap_ld = NULL;
508 if (LDAPLMAP.ldap_ld == NULL)
511 if (!sm_ldap_start(MBDB_LDAP_LABEL, &LDAPLMAP))
515 sm_ldap_setopts(LDAPLMAP.ldap_ld, &LDAPLMAP);
516 msgid = sm_ldap_search(&LDAPLMAP, name);
519 save_errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld) + E_LDAPBASE;
524 sm_ldap_close(&LDAPLMAP);
532 ret = ldap_result(LDAPLMAP.ldap_ld, msgid, 1,
533 (LDAPLMAP.ldap_timeout.tv_sec == 0 ? NULL :
534 &(LDAPLMAP.ldap_timeout)),
535 &(LDAPLMAP.ldap_res));
543 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
548 entry = ldap_first_entry(LDAPLMAP.ldap_ld, LDAPLMAP.ldap_res);
560 save_errno = ldap_parse_result(LDAPLMAP.ldap_ld,
561 LDAPLMAP.ldap_res, &rc, NULL,
585 LDAPLMAP.ldap_ld->ld_errno = LDAP_SUCCESS;
590 for (attr = ldap_first_attribute(LDAPLMAP.ldap_ld, entry, &ber);
592 attr = ldap_next_attribute(LDAPLMAP.ldap_ld, entry, ber))
596 vals = ldap_get_values(LDAPLMAP.ldap_ld, entry, attr);
599 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
619 LDAPLMAP.ldap_ld->ld_errno = LDAP_SUCCESS;
705 errno = sm_ldap_geterrno(LDAPLMAP.ldap_ld);
732 if (LDAPLMAP.ldap_res != NULL)
734 ldap_msgfree(LDAPLMAP.ldap_res);
735 LDAPLMAP.ldap_res = NULL;
768 sm_ldap_close(&LDAPLMAP); in mbdb_ldap_terminate()