I'm in the process of setting up LDAP authentication on the latest phpmyfaq release 2.8.9
I managed to clear all the errors in the debug log and only one still persists:
"phpMyFAQ warning [2]: ldap_get_values() expects parameter 2 to be resource, boolean given in /var/www/html/faq/inc/PMF/Ldap.php on line 257"
I have not found any answer to this issue after much research.
Any help or pointers would be much appreciated.
LDAP error on line 257
Moderator: Thorsten
Re: LDAP error on line 257
Hi,
do you see any errors in your LDAP servers error log?
bye
Thorsten
do you see any errors in your LDAP servers error log?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: LDAP error on line 257
Thank you for the pointer. I will reach the team who has access to the LDAP server and ask them to look in the logs. I will report back here.
Re: LDAP error on line 257
Logs on the server side:
"A logon was attempted using explicit credentials"
"msad-nt6-successful-user-logons msad-successful-user-logons"
"An account was successfully logged on"
"A logon was attempted using explicit credentials"
"msad-nt6-successful-user-logons msad-successful-user-logons"
"An account was successfully logged on"
Re: LDAP error on line 257
Now that we see error on the LDAP server side, where should I look next?
Any suggestion?
Any suggestion?
Re: LDAP error on line 257
Hi,
ah, I think, I found the issue. The mapping is not correct, you can change the default mapping from phpMyFAQ in /config/constants_ldap.php:
bye
Thorsten
ah, I think, I found the issue. The mapping is not correct, you can change the default mapping from phpMyFAQ in /config/constants_ldap.php:
Code: Select all
// Option for adding a check on LDAP groups
// Default: false
$PMF_LDAP['ldap_use_memberOf'] = false;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: LDAP error on line 257
Hello,
This was exactly what I already had:
// Option for adding a check on LDAP groups
// Default: false
$PMF_LDAP['ldap_use_memberOf'] = false;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
Anything else I could try changing?
This was exactly what I already had:
// Option for adding a check on LDAP groups
// Default: false
$PMF_LDAP['ldap_use_memberOf'] = false;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
Anything else I could try changing?