Lines Matching defs:dbdata
120 dlz_ldap_findzone(void *driverarg, void *dbdata, const char *name);
123 dlz_ldap_destroy(void *driverarg, void *dbdata);
555 * is indicated by the query flag, and the dbdata object is passed
556 * passed in to. dbdata really holds either:
566 void *dbdata, void *ptr)
582 ((ldap_instance_t *)dbdata)->db);
590 dbi = (dbinstance_t *) ((ldap_instance_t *)dbdata)->db;
736 result = dlz_ldap_connect((ldap_instance_t *) dbdata,
772 result = dlz_ldap_connect((ldap_instance_t *) dbdata,
873 dlz_ldap_allowzonexfr(void *driverarg, void *dbdata, const char *name,
881 result = dlz_ldap_findzone(driverarg, dbdata, name);
887 result = ldap_get_results(name, NULL, client, ALLOWXFR, dbdata, NULL);
892 dlz_ldap_allnodes(const char *zone, void *driverarg, void *dbdata,
896 return (ldap_get_results(zone, NULL, NULL, ALLNODES, dbdata, allnodes));
900 dlz_ldap_authority(const char *zone, void *driverarg, void *dbdata,
904 return (ldap_get_results(zone, NULL, NULL, AUTHORITY, dbdata, lookup));
908 dlz_ldap_findzone(void *driverarg, void *dbdata, const char *name) {
910 return (ldap_get_results(name, NULL, NULL, FINDZONE, dbdata, NULL));
915 void *dbdata, dns_sdlzlookup_t *lookup)
922 dbdata, lookup);
925 dbdata, lookup);
932 void *driverarg, void **dbdata)
1231 /* set dbdata to the ldap_instance we created. */
1232 *dbdata = ldap_inst;
1244 dlz_ldap_destroy(void *driverarg, void *dbdata) {
1247 if (dbdata != NULL) {
1251 ((ldap_instance_t *)dbdata)->db);
1254 if (((ldap_instance_t *)dbdata)->db->dbconn != NULL)
1256 ((ldap_instance_t *)dbdata)->db->dbconn);
1259 destroy_sqldbinstance(((ldap_instance_t *)dbdata)->db);
1262 if (((ldap_instance_t *)dbdata)->hosts != NULL)
1264 ((ldap_instance_t *)dbdata)->hosts);
1266 if (((ldap_instance_t *)dbdata)->user != NULL)
1268 ((ldap_instance_t *)dbdata)->user);
1270 if (((ldap_instance_t *)dbdata)->cred != NULL)
1272 ((ldap_instance_t *)dbdata)->cred);
1274 isc_mem_put(ns_g_mctx, dbdata, sizeof(ldap_instance_t));