Lines Matching defs:ldap
45 * This provides the externally loadable ldap DLZ module, without
61 * Need older API functions from ldap.h.
65 #include <ldap.h>
280 ldap_find_avail_conn(ldap_instance_t *ldap) {
286 head = dbi = DLZ_LIST_HEAD(*ldap->db);
304 ldap->log(ISC_LOG_INFO,
690 /* perform ldap search syncronously */
887 ldap_instance_t *ldap = NULL;
902 ldap = calloc(1, sizeof(ldap_instance_t));
903 if (ldap == NULL)
905 memset(ldap, 0, sizeof(ldap_instance_t));
910 b9_add_helper(ldap, helper_name, va_arg(ap, void*));
915 ldap->log(ISC_LOG_DEBUG(1), "LDAP driver running multithreaded");
918 ldap->log(ISC_LOG_DEBUG(1), "LDAP driver running single threaded");
922 ldap->log(ISC_LOG_ERROR,
930 ldap->log(ISC_LOG_ERROR,
942 ldap->log(ISC_LOG_ERROR,
956 ldap->log(ISC_LOG_ERROR,
967 ldap->log(ISC_LOG_ERROR,
977 result = ldap_checkURL(ldap, argv[11], 0,
982 result = ldap_checkURL(ldap, argv[10], 3, "all nodes");
987 result = ldap_checkURL(ldap, argv[9], 3, "authority");
992 result = ldap_checkURL(ldap, argv[8], 3, "lookup");
995 result = ldap_checkURL(ldap, argv[7], 0, "find zone");
1005 ldap->protocol = protocol;
1006 ldap->method = method;
1007 ldap->hosts = strdup(argv[6]);
1008 if (ldap->hosts == NULL) {
1012 ldap->user = strdup(argv[4]);
1013 if (ldap->user == NULL) {
1017 ldap->cred = strdup(argv[5]);
1018 if (ldap->cred == NULL) {
1025 ldap->db = calloc(1, sizeof(db_list_t));
1026 if (ldap->db == NULL) {
1032 DLZ_LIST_INIT(*(ldap->db));
1045 ldap->log);
1050 NULL, &dbi, ldap->log);
1055 NULL, &dbi, ldap->log);
1061 ldap->log);
1069 ldap->log(ISC_LOG_DEBUG(2),
1073 ldap->log(ISC_LOG_ERROR,
1082 DLZ_LIST_APPEND(*(ldap->db), dbi, link);
1088 ldap->db = dbi;
1091 result = ldap_connect(ldap, dbi);
1107 ldap->log(ISC_LOG_ERROR,
1111 ldap->log(ISC_LOG_ERROR,
1121 ldap->log(ISC_LOG_ERROR,
1126 /* failure means couldn't connect to ldap server */
1129 ldap->log(ISC_LOG_ERROR,
1133 ldap->log(ISC_LOG_ERROR,
1143 ldap->log(ISC_LOG_ERROR,
1156 *dbdata = ldap;
1161 dlz_destroy(ldap);