Scenario: PMF 2.7.3, Active Directory Domain
ldap.php content:
Code: Select all
$PMF_LDAP["ldap_server"] = 'dc.dom.local';
$PMF_LDAP["ldap_port"] = '389';
$PMF_LDAP["ldap_user"] = 'CN=ldapauthuser,CN=Users,DC=dom,DC=local';
$PMF_LDAP["ldap_password"] = 'supersecretpasswordforldapbind';
$PMF_LDAP["ldap_base"] = 'OU=Users,OU=myBusiness,DC=dom,DC=local'
Code: Select all
$PMF_LDAP['ldap_use_domain_prefix'] = false;
In apache config following is set to enable Single Sign On on server side:
Code: Select all
<Directory /var/www2/faq.dom.local/htdocs/>
AuthName "PHPmyFAQ Authentication"
NTLMAuth on
NTLMAuthHelper "usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
AuthType NTLM
require valid-user
Options Indexes FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
I do now get auth failures in the domain controller event log for users who load the PMF page in their Browser.phpMyFAQ warning [2]: ldap_search() [function.ldap-search]: Search: Operations error in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 214
phpMyFAQ warning [2]: ldap_first_entry(): supplied argument is not a valid ldap result resource in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 223
phpMyFAQ warning [2]: ldap_get_values(): supplied argument is not a valid ldap result entry resource in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 231
phpMyFAQ warning [2]: ldap_search() [function.ldap-search]: Search: Operations error in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 214
phpMyFAQ warning [2]: ldap_first_entry(): supplied argument is not a valid ldap result resource in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 223
phpMyFAQ warning [2]: ldap_get_values(): supplied argument is not a valid ldap result entry resource in /var/www2/faq.dom.local/htdocs/inc/Ldap.php on line 231
phpMyFAQ warning [2]: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /var/www2/faq.dom.local/htdocs/inc/PMF_User/CurrentUser.php on line 306
phpMyFAQ notice [8]: Undefined variable: csrfToken in /var/www2/faq.dom.local/htdocs/inc/PMF_User/CurrentUser.php on line 489
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 172
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/inc/Session.php on line 390
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 701
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 702
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 703
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 704
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 705
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 706
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www2/faq.dom.local/htdocs/inc/functions.php:150) in /var/www2/faq.dom.local/htdocs/index.php on line 707
After some reloads of the page the user account gets temporarily locked because of too many auth failures.
Strange is PMF logs the user in nonethless.
I can fix the user lockout problem with setting the following back to "true" OR disabling Single Sign On.
Code: Select all
$PMF_LDAP['ldap_use_domain_prefix'] = true;