Lines Matching refs:ld

535 	LDAP		*ld		= NULL;
546 ld = ldap_init(sever_name, server_port);
547 if (ld == NULL) {
559 ld = ldapssl_init(sever_name, server_port, 1);
560 if (ld == NULL) {
567 (void) ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION,
569 (void) ldap_set_option(ld, LDAP_OPT_DEREF, &derefOption);
570 (void) ldap_set_option(ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
571 (void) ldap_set_option(ld, LDAP_OPT_TIMELIMIT, &timelimit);
572 (void) ldap_set_option(ld, LDAP_OPT_SIZELIMIT, &sizelimit);
584 errnum = ldap_simple_bind_s(ld, config_info->proxy_dn,
589 errnum = ldap_sasl_cram_md5_bind_s(ld,
594 errnum = ldap_x_sasl_digest_md5_bind_s(ld,
597 errnum = ldap_simple_bind_s(ld, NULL, NULL);
621 (void) ldap_unbind(ld);
628 return (ld);
645 LDAP *ld,
665 e = ldap_first_entry(ld, resultMsg);
668 for (attr = ldap_first_attribute(ld, e, &ber); attr != NULL;
669 attr = ldap_next_attribute(ld, e, ber)) {
677 if ((vals = ldap_get_values(ld, e, attr)) != NULL) {
723 (void) ldap_get_option(ld,
733 errnum = ldap_result2error(ld, resultMsg, FALSE);
772 LDAP *ld = NULL;
793 if ((ld = connect_to_ldap_config_server(ludpp->lud_host,
803 errnum = ldap_search_s(ld, config_info->config_dn, LDAP_SCOPE_BASE,
813 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
818 (void) ldap_unbind(ld);
839 LDAP *ld,
853 rc = ldap_parse_result(ld, resultMsg, &errCode, NULL, NULL, &referralsp,
905 LDAP *ld = NULL;
944 if ((ld = connect_to_ldap_config_server(config_info->default_servers, 0,
949 errnum = ldap_search_s(ld, config_info->config_dn, LDAP_SCOPE_BASE,
955 rc = process_ldap_referral_msg(ld, resultMsg,
963 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
968 (void) ldap_unbind(ld);