Merge branch 'wildcard_auth' into develop

This commit is contained in:
Markus Makela
2015-04-15 21:41:07 +03:00
5 changed files with 62 additions and 7 deletions

View File

@ -1524,7 +1524,19 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
dcb->remote)));
user_password = mysql_users_fetch(service->users, &key);
if (user_password)
{
break;
}
/** See if ANYDB == Y */
if(key.resource)
{
key.resource = NULL;
continue;
}
if (!user_password) {
/*
* user@% not found.