Move loading of user data to authenticator modules
The authenticator modules now load the user data when the new loadusers entry point is called. This new entry point is optional. At the moment the code that was in service.c was just moved into the modules but the ground work for allowing different user loading mechanisms is done. Further improvements need to be made so that the authenticators behave more like routers and filters. This work includes the creation of a AUTHENTICATOR module object, addition of createInstance entry points for authenticators and implementing it for all authenticators.
This commit is contained in:
@ -1279,8 +1279,14 @@ clear_server(DCB *dcb, SERVER *server, char *bit)
|
||||
static void
|
||||
reload_dbusers(DCB *dcb, SERVICE *service)
|
||||
{
|
||||
dcb_printf(dcb, "Loaded %d database users for service %s.\n",
|
||||
reload_mysql_users(service->ports), service->name);
|
||||
if (service_refresh_users(service) == 0)
|
||||
{
|
||||
dcb_printf(dcb, "Reloaded database users for service %s.\n", service->name);
|
||||
}
|
||||
else
|
||||
{
|
||||
dcb_printf(dcb, "Error: Failed to reloaded database users for service %s.\n", service->name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user