Small fix to how user is retrieved from all servers.
When the authentication was done using the user data from all servers and the set of servers contained a server in the Master state it was possible that some servers weren't queried for their users. This was fixed by adding a check for the parameter that enables this before looking for a master server.
This commit is contained in:
@ -495,9 +495,12 @@ getUsers(SERVICE *service, USERS *users)
|
||||
goto cleanup;
|
||||
}
|
||||
/* Select a server with Master bit, if available */
|
||||
while (server != NULL && !(server->server->status & SERVER_MASTER)) {
|
||||
server = server->next;
|
||||
}
|
||||
if(service->users_from_all == false)
|
||||
{
|
||||
while (server != NULL && !(server->server->status & SERVER_MASTER)) {
|
||||
server = server->next;
|
||||
}
|
||||
}
|
||||
|
||||
if(server == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user