LDAP issue work around

Please report bugs here!

Moderator: Thorsten

Post Reply
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

LDAP issue work around

Post by treichelt »

H Thorsten
We haven't been able to get ldap to work for some time. My co-worker ,php programmer, finally took the time to research this issue.
He thinks the issue is discusssed here:

https://forum.osticket.com/d/101561-lda ... -update/13

i overwrote the /src/phpmyfaq/ldap.php file with his version in which he commented out this section and now ldap is working for us.
His comment / fix is

Basically in php version 8.x they removed the “is_resource” function and if false, it returns NULL, so the current code would fail as if LDAP was disabled. I changed the code by removing the resource checks altogether.

wanted to share this with you

Danke

Thorsten
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP issue work around

Post by Thorsten »

Hi,

I just checked the current code base for 3.1.9 and we don't use is_resource().

Which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP issue work around

Post by Thorsten »

Hi,

we fixed that with phpMyFAQ 3.1.4

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply