Added more debug output to user authentication.
This commit is contained in:
@ -427,6 +427,7 @@ getDatabases(SERVICE *service, MYSQL *con)
|
||||
|
||||
/* insert key and value "" */
|
||||
while ((row = mysql_fetch_row(result))) {
|
||||
skygw_log_write(LOGFILE_DEBUG,"%s: Adding database %s to the resouce hash.",service->name,row[0]);
|
||||
resource_add(service->resources, row[0], "");
|
||||
}
|
||||
|
||||
@ -708,7 +709,7 @@ getUsers(SERVICE *service, USERS *users)
|
||||
/*
|
||||
* users successfully loaded with db grants.
|
||||
*/
|
||||
|
||||
skygw_log_write(LOGFILE_DEBUG,"[%s] Loading users with db grants.",service->name);
|
||||
db_grants = 1;
|
||||
}
|
||||
|
||||
@ -796,6 +797,7 @@ getUsers(SERVICE *service, USERS *users)
|
||||
if (db_grants) {
|
||||
/* we have dbgrants, store them */
|
||||
rc = add_mysql_users_with_host_ipv4(users, row[0], row[1], password, row[4], row[5]);
|
||||
skygw_log_write(LOGFILE_DEBUG,"%s: Adding user:%s host:%s anydb:%s db:%s.",service->name,row[0],row[1],row[4],row[5]);
|
||||
} else {
|
||||
/* we don't have dbgrants, simply set ANY DB for the user */
|
||||
rc = add_mysql_users_with_host_ipv4(users, row[0], row[1], password, "Y", NULL);
|
||||
|
||||
Reference in New Issue
Block a user