LDAP / AD Issue

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

LDAP / AD Issue

Post 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!
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

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

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

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

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

please try to remove the quotes around the UPPERCASE keys:

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

Post by sti »

I made the change. Unfortunately it still is not working :-(
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

still the same issue?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

Post by sti »

Yes, still no change.
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

Post by sti »

Yes, my config matches the following line by line:

https://github.com/thorsten/phpMyFAQ/bl ... s_ldap.php
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

Post by sti »

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

Re: LDAP / AD Issue

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sti
Posts: 8
Joined: Fri Nov 10, 2017 11:50 pm

Re: LDAP / AD Issue

Post by sti »

5.6
Post Reply