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:
Markus Makela
2015-02-13 07:34:46 +02:00
parent d91b6d375d
commit d1c2895057

View File

@ -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)
{