Page 1 of 1

LDAP / AD Issue

Posted: Mon Nov 13, 2017 7:38 pm
by sti
Hi All,

I tried to search through the forum before posting because I see there are already MANY LDAP posts. I upgraded from 2.8.7 to 2.9.9 somehow my LDAP authentication is no longer working. I cannot log into any part of the system.

I have tried enabling Debug and I get the following output:

Code: Select all

phpMyFAQ warning [2]: constant(): Couldn't find constant 17 in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Ldap.php on line 120

phpMyFAQ notice [8]: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Enc/Crypt.php on line 48

phpMyFAQ warning [2]: constant(): Couldn't find constant 17 in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Ldap.php on line 120

phpMyFAQ warning [2]: ldap_search(): Search: Operations error in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Ldap.php on line 323

phpMyFAQ warning [2]: constant(): Couldn't find constant 17 in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Ldap.php on line 120

phpMyFAQ warning [2]: ldap_search(): Search: Operations error in /home/sti/web/faq.sti0.net/public_html/inc/PMF/Ldap.php on line 274

I followed the directions to create a test from the post: viewtopic.php?f=7&t=16307

The bind tests complete successfully from test 2, but the test 1 I can't seem to get to display correctly. I'm not sure what might have changed from one version to another, every time I try to log in all I get is a wrong username / password. No errors about being able to connect to LDAP.

Any help would be greatly appreciated!

Re: LDAP / AD Issue

Posted: Mon Nov 13, 2017 9:13 pm
by sti
More Info:

I was able to update my test script to find the users and work so I know LDAP is indeed working from my PMF to AD and vise versa. So far I cannot find where the failure may be. Is there any way to debug to ensure that the password hashes are coming through correctly?

Re: LDAP / AD Issue

Posted: Sat Nov 18, 2017 11:20 am
by Thorsten
Hi,

did you upgrade the file config/constants_ldap.php as well?

bye
Thorsten

Re: LDAP / AD Issue

Posted: Thu Dec 07, 2017 9:27 pm
by sti
Sorry for the late response (was out on vacation). Yes, I updated the config/constatnts_ldap.php file as well. I just pulled the latest from the Github just to be sure. The issue persists.

Re: LDAP / AD Issue

Posted: Fri Dec 08, 2017 10:14 pm
by Thorsten
Hi,

please try to remove the quotes around the UPPERCASE keys:

https://github.com/thorsten/phpMyFAQ/bl ... hp#L36-L37

bye
Thorsten

Re: LDAP / AD Issue

Posted: Thu Dec 14, 2017 12:40 am
by sti
I made the change. Unfortunately it still is not working :-(

Re: LDAP / AD Issue

Posted: Sat Dec 16, 2017 2:53 pm
by Thorsten
Hi,

still the same issue?

bye
Thorsten

Re: LDAP / AD Issue

Posted: Sun Dec 17, 2017 4:02 am
by sti
Yes, still no change.

Re: LDAP / AD Issue

Posted: Sun Dec 17, 2017 3:43 pm
by Thorsten
Hi,

did you change the ldap_constants.php file from 2.8 to 2.9?

bye
Thorsten

Re: LDAP / AD Issue

Posted: Thu Dec 28, 2017 6:30 pm
by sti
Yes, my config matches the following line by line:

https://github.com/thorsten/phpMyFAQ/bl ... s_ldap.php

Re: LDAP / AD Issue

Posted: Fri Dec 29, 2017 8:41 am
by Thorsten
Hi,

and inc/PMF/Ldap.php is also the same?

bye
Thorsten

Re: LDAP / AD Issue

Posted: Mon Jan 29, 2018 10:09 pm
by sti

Re: LDAP / AD Issue

Posted: Sat Feb 03, 2018 12:08 pm
by Thorsten
Hi,

that's strange ... what PHP version do you use?

bye
Thorsten

Re: LDAP / AD Issue

Posted: Tue Feb 13, 2018 8:57 pm
by sti
5.6