Add diagnostic entry point to authenticators
The authenticators should have a similar way to print diagnostic information as filter and routers do. This allows the authenticators to print the users in their own format. In the future, all the diagnostic entry points should be changed so that they return a structure that contains the information in a standard form. This information can then be formatted in different ways by other modules.
This commit is contained in:
@ -2285,3 +2285,14 @@ bool service_serialize_servers(const SERVICE *service)
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
void service_print_users(DCB *dcb, const SERVICE *service)
|
||||
{
|
||||
for (SERV_LISTENER *port = service->ports; port; port = port->next)
|
||||
{
|
||||
if (port->listener && port->listener->authfunc.diagnostic)
|
||||
{
|
||||
port->listener->authfunc.diagnostic(dcb, port);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user