Project

General

Profile

Actions

Bug #7253

closed

LDAP does no longer properly fallback to local auth, obnoxious timeouts, unusable GUI

Added by Kill Bill about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
High
Category:
Web Interface
Target version:
Start date:
02/11/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3.3
Affected Architecture:
All

Description

No idea when this regressed, but I get this when AD in unreachable:

Warning: Invalid argument supplied for foreach() in /etc/inc/auth.inc on line 341 Call Stack: 0.0105 235752 1. {main}() /usr/local/www/pkg_edit.php:0 0.3432 3766320 2. include('/usr/local/www/head.inc') /usr/local/www/pkg_edit.php:601 0.3696 3865944 3. userHasPrivilege() /usr/local/www/head.inc:450 0.3696 3867504 4. get_user_privileges() /etc/inc/auth.inc:357 Warning: Invalid argument supplied for foreach() in /etc/inc/auth.inc on line 341 Call Stack: 0.0105 235752 1. {main}() /usr/local/www/pkg_edit.php:0 0.3432 3766320 2. include('/usr/local/www/head.inc') /usr/local/www/pkg_edit.php:601 56.5746 3867800 3. userHasPrivilege() /usr/local/www/head.inc:450 56.5746 3869288 4. get_user_privileges() /etc/inc/auth.inc:357 Warning: Invalid argument supplied for foreach() in /etc/inc/auth.inc on line 341 Call Stack: 0.0105 235752 1. {main}() /usr/local/www/pkg_edit.php:0 0.3432 3766320 2. include('/usr/local/www/head.inc') /usr/local/www/pkg_edit.php:601 85.2306 3867800 3. userHasPrivilege() /usr/local/www/head.inc:453 85.2306 3869288 4. get_user_privileges() /etc/inc/auth.inc:357

And in system log:

Feb 12 01:23:43 gw php-fpm[38519]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:24:39 gw php-fpm[38519]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:24:46 gw php-fpm[83219]: /index.php: ERROR! Could not bind to server Active Directory.
Feb 12 01:24:46 gw php-fpm[83219]: /index.php: Successful login for user 'admin' from: 192.168.0.15
Feb 12 01:25:10 gw php-fpm[38519]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:25:20 gw php-fpm[33513]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:26:16 gw php-fpm[33513]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:26:48 gw php-fpm[33513]: /index.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:28:16 gw php-fpm[80642]: /pkg_edit.php: ERROR! ldap_get_groups() could not bind to server Active Directory.
Feb 12 01:28:45 gw php-fpm[80642]: /pkg_edit.php: ERROR! ldap_get_groups() could not bind to server Active Directory.

Note that it takes a minute for the lookup to give up. Makes the GUI very much unusable.

Actions

Also available in: Atom PDF