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 » Mon Nov 13, 2017 7:38 pm

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 » Mon Nov 13, 2017 9:13 pm

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

Re: LDAP / AD Issue

Post by Thorsten » Sat Nov 18, 2017 11:20 am

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 » Thu Dec 07, 2017 9:27 pm

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

Re: LDAP / AD Issue

Post by Thorsten » Fri Dec 08, 2017 10:14 pm

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 » Thu Dec 14, 2017 12:40 am

I made the change. Unfortunately it still is not working :-(

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

Re: LDAP / AD Issue

Post by Thorsten » Sat Dec 16, 2017 2:53 pm

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 » Sun Dec 17, 2017 4:02 am

Yes, still no change.

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

Re: LDAP / AD Issue

Post by Thorsten » Sun Dec 17, 2017 3:43 pm

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 » Thu Dec 28, 2017 6:30 pm

Yes, my config matches the following line by line:

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

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

Re: LDAP / AD Issue

Post by Thorsten » Fri Dec 29, 2017 8:41 am

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 » Mon Jan 29, 2018 10:09 pm


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

Re: LDAP / AD Issue

Post by Thorsten » Sat Feb 03, 2018 12:08 pm

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 » Tue Feb 13, 2018 8:57 pm

5.6

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests