LDAP error on line 257

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jon8888
Posts: 15
Joined: Tue Feb 25, 2014 9:32 pm

LDAP error on line 257

Post by jon8888 »

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.
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP error on line 257

Post by Thorsten »

Hi,

do you see any errors in your LDAP servers error log?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jon8888
Posts: 15
Joined: Tue Feb 25, 2014 9:32 pm

Re: LDAP error on line 257

Post by jon8888 »

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.
jon8888
Posts: 15
Joined: Tue Feb 25, 2014 9:32 pm

Re: LDAP error on line 257

Post by jon8888 »

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"
jon8888
Posts: 15
Joined: Tue Feb 25, 2014 9:32 pm

Re: LDAP error on line 257

Post by jon8888 »

Now that we see error on the LDAP server side, where should I look next?
Any suggestion?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP error on line 257

Post by Thorsten »

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:

Code: Select all

// Option for adding a check on LDAP groups
// Default: false
$PMF_LDAP['ldap_use_memberOf'] = false;
$PMF_LDAP['ldap_mapping']['memberOf'] = '';
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jon8888
Posts: 15
Joined: Tue Feb 25, 2014 9:32 pm

Re: LDAP error on line 257

Post by jon8888 »

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?
Post Reply