Changeset 563 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Feb 28, 2016 9:18:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r560 r563 525 525 526 526 // Update the login counter table with this login access. Convert IP to binary. 527 // TODO: after MySQL 5.0.23 is releasedthis query could benefit from INSERT DELAYED.527 // TODO: this query could benefit from INSERT DELAYED. 528 528 $db->query(" 529 529 INSERT INTO " . $this->_params['db_login_table'] . " ( … … 558 558 * - total logged-in time is not greater than login_timeout 559 559 * - idle time is not greater than idle_timeout 560 * - remote address is the same as the login remote address (aol users excluded).560 * - remote address is the same as the login remote address 561 561 * 562 562 * @access public … … 588 588 } 589 589 590 // Tes ing login should occur once. This is the first time. Set flag.590 // Testing login should occur once. This is the first time. Set flag. 591 591 $this->_authentication_tested = true; 592 592 … … 598 598 ($this->get('user_id') ? $this->get('user_id') . ' (' . $this->get('username') . ')' : 'unknown'), 599 599 $trusted_net 600 ), LOG_DEBUG, __FILE__, __LINE__);601 } else if (preg_match('/proxy.aol.com$/i', getRemoteAddr(true))) {602 $user_in_trusted_network = true;603 $app->logMsg(sprintf('User_id %s accessing from trusted network proxy.aol.com',604 ($this->get('user_id') ? $this->get('user_id') . ' (' . $this->get('username') . ')' : 'unknown')605 600 ), LOG_DEBUG, __FILE__, __LINE__); 606 601 } else { … … 670 665 // 1. match_remote_ip config is enabled 671 666 // 2. user is not match_remote_ip_exempt (set in the user_data, or in the match_remote_ip_exempt_usernames list) 672 // 3. the user is connecting from a trusted network (their IP is listed in the trusted_networks or from *.proxy.aol.com)667 // 3. the user is connecting from a trusted network (their IP is listed in the trusted_networks) 673 668 $expire_reasons[] = sprintf('remote_ip not matched (%s != %s)', $_SESSION['_auth_sql'][$this->_ns]['remote_ip'], getRemoteAddr()); 674 669 } else {
Note: See TracChangeset
for help on using the changeset viewer.