"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sesman/access.c" between
xrdp-0.9.13.1.tar.gz and xrdp-0.9.14.tar.gz

About: xrdp is a remote desktop protocol (rdp) server (accepting connections from rdesktop and Microsoft’s own terminal server / remote desktop clients).

access.c  (xrdp-0.9.13.1):access.c  (xrdp-0.9.14)
skipping to change at line 51 skipping to change at line 51
if ((0 == g_strncmp(user, "root", 5)) && (0 == g_cfg->sec.allow_root)) if ((0 == g_strncmp(user, "root", 5)) && (0 == g_cfg->sec.allow_root))
{ {
log_message(LOG_LEVEL_WARNING, log_message(LOG_LEVEL_WARNING,
"ROOT login attempted, but root login is disabled"); "ROOT login attempted, but root login is disabled");
return 0; return 0;
} }
if ((0 == g_cfg->sec.ts_users_enable) && (0==g_cfg->sec.ts_always_group_chec k)) if ((0 == g_cfg->sec.ts_users_enable) && (0==g_cfg->sec.ts_always_group_chec k))
{ {
LOG_DBG("Terminal Server Users group is disabled, allowing authenticatio LOG_DBG("Terminal Server Users group is disabled, allowing authenticatio
n", n");
1);
return 1; return 1;
} }
if (0 != g_getuser_info(user, &gid, 0, 0, 0, 0)) if (0 != g_getuser_info(user, &gid, 0, 0, 0, 0))
{ {
log_message(LOG_LEVEL_ERROR, "Cannot read user info! - login denied"); log_message(LOG_LEVEL_ERROR, "Cannot read user info! - login denied");
return 0; return 0;
} }
if (g_cfg->sec.ts_users == gid) if (g_cfg->sec.ts_users == gid)
skipping to change at line 101 skipping to change at line 100
if ((0 == g_strncmp(user, "root", 5)) && (0 == g_cfg->sec.allow_root)) if ((0 == g_strncmp(user, "root", 5)) && (0 == g_cfg->sec.allow_root))
{ {
log_message(LOG_LEVEL_WARNING, log_message(LOG_LEVEL_WARNING,
"[MNG] ROOT login attempted, but root login is disabled"); "[MNG] ROOT login attempted, but root login is disabled");
return 0; return 0;
} }
if (0 == g_cfg->sec.ts_admins_enable) if (0 == g_cfg->sec.ts_admins_enable)
{ {
LOG_DBG("[MNG] Terminal Server Admin group is disabled, " LOG_DBG("[MNG] Terminal Server Admin group is disabled, "
"allowing authentication", 1); "allowing authentication");
return 1; return 1;
} }
if (0 != g_getuser_info(user, &gid, 0, 0, 0, 0)) if (0 != g_getuser_info(user, &gid, 0, 0, 0, 0))
{ {
log_message(LOG_LEVEL_ERROR, "[MNG] Cannot read user info! - login denie d"); log_message(LOG_LEVEL_ERROR, "[MNG] Cannot read user info! - login denie d");
return 0; return 0;
} }
if (g_cfg->sec.ts_admins == gid) if (g_cfg->sec.ts_admins == gid)
 End of changes. 2 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)