SF Feature Request #428390 - Added option to not check the IP of sessions for those behind load balancing proxys

This commit is contained in:
jengo 2001-07-08 04:05:10 +00:00
parent e63c9b3570
commit 59874ad788
4 changed files with 19 additions and 3 deletions

View File

@ -7,6 +7,8 @@
as the true appname as the true appname
- Added limit_query() function, this is a replacement for limit() which should no longer be used - Added limit_query() function, this is a replacement for limit() which should no longer be used
- Admins can now force a default app - Admins can now force a default app
- Added global option to disable checking the IP address on sessions, usefull for those
behind load balanced proxys.
[0.9.12] [0.9.12]
- Note: These changelogs will only contain changes in the API (preferences, admin, etc) - Note: These changelogs will only contain changes in the API (preferences, admin, etc)

View File

@ -141,9 +141,12 @@
return False; return False;
} }
if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip())) if ($phpgw_info['server']['sessions_checkip'])
{ {
return False; if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip()))
{
return False;
}
} }
$phpgw->acl->acl($this->account_id); $phpgw->acl->acl($this->account_id);

View File

@ -148,4 +148,5 @@
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zh','Chinese','No')"); $oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zh','Chinese','No')");
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zt','Chinese(Taiwan)','Yes')"); $oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zt','Chinese(Taiwan)','Yes')");
$oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')"); $oProc->query("INSERT INTO languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')");
?> $oProc->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES ('phpgwapi','sessions_checkip','True')");
?>

View File

@ -85,6 +85,16 @@
</td> </td>
</tr> </tr>
<tr bgcolor="{row_off}">
<td>{lang_check_ip_address_of_all_sessions}:</td>
<td>
<select name="newsettings[sessions_checkip]">
<option value="">No</option>
<option value="True"{selected_sessions_checkip_True}>Yes</option>
</select>
</td>
</tr>
<tr bgcolor="{row_on}"> <tr bgcolor="{row_on}">
<td>{lang_Would_you_like_phpGroupWare_to_check_for_a_new_version<br>when_admins_login_?}:</td> <td>{lang_Would_you_like_phpGroupWare_to_check_for_a_new_version<br>when_admins_login_?}:</td>
<td> <td>