Lines Matching defs:dbdata

111 dlz_ldap_findzone(void *driverarg, void *dbdata, const char *name,
116 dlz_ldap_destroy(void *driverarg, void *dbdata);
548 * is indicated by the query flag, and the dbdata object is passed
549 * passed in to. dbdata really holds either:
559 void *dbdata, void *ptr)
575 ((ldap_instance_t *)dbdata)->db);
583 dbi = (dbinstance_t *) ((ldap_instance_t *)dbdata)->db;
729 result = dlz_ldap_connect((ldap_instance_t *) dbdata,
765 result = dlz_ldap_connect((ldap_instance_t *) dbdata,
866 dlz_ldap_allowzonexfr(void *driverarg, void *dbdata, const char *name,
874 result = dlz_ldap_findzone(driverarg, dbdata, name, NULL, NULL);
880 result = ldap_get_results(name, NULL, client, ALLOWXFR, dbdata, NULL);
885 dlz_ldap_allnodes(const char *zone, void *driverarg, void *dbdata,
889 return (ldap_get_results(zone, NULL, NULL, ALLNODES, dbdata, allnodes));
893 dlz_ldap_authority(const char *zone, void *driverarg, void *dbdata,
897 return (ldap_get_results(zone, NULL, NULL, AUTHORITY, dbdata, lookup));
901 dlz_ldap_findzone(void *driverarg, void *dbdata, const char *name,
908 return (ldap_get_results(name, NULL, NULL, FINDZONE, dbdata, NULL));
913 void *dbdata, dns_sdlzlookup_t *lookup,
924 dbdata, lookup);
927 dbdata, lookup);
934 void *driverarg, void **dbdata)
1233 /* set dbdata to the ldap_instance we created. */
1234 *dbdata = ldap_inst;
1246 dlz_ldap_destroy(void *driverarg, void *dbdata) {
1249 if (dbdata != NULL) {
1253 ((ldap_instance_t *)dbdata)->db);
1256 if (((ldap_instance_t *)dbdata)->db->dbconn != NULL)
1258 ((ldap_instance_t *)dbdata)->db->dbconn);
1261 destroy_sqldbinstance(((ldap_instance_t *)dbdata)->db);
1264 if (((ldap_instance_t *)dbdata)->hosts != NULL)
1266 ((ldap_instance_t *)dbdata)->hosts);
1268 if (((ldap_instance_t *)dbdata)->user != NULL)
1270 ((ldap_instance_t *)dbdata)->user);
1272 if (((ldap_instance_t *)dbdata)->cred != NULL)
1274 ((ldap_instance_t *)dbdata)->cred);
1276 isc_mem_put(ns_g_mctx, dbdata, sizeof(ldap_instance_t));