No Code Attached Yet
avatar gopalji
gopalji
16 Feb 2022

Steps to reproduce the issue

LDAP Login to ActiveDirectory domain

error in ldapclient.php - isConnected() function: \is_resource($this->resource) returns error

Expected result

true

Actual result

error

System information (as much as possible)

Latest Joomla 3.10.6
Php 8.1.2
Apache/2.4.37 (rocky) OpenSSL/1.1.1k

Additional comments

avatar gopalji gopalji - open - 16 Feb 2022
avatar gopalji gopalji - change - 16 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Feb 2022
avatar gopalji
gopalji - comment - 16 Feb 2022

No additional error available, the call to \is_resource($this->resource) simply returns false
Interestingly the first call to ldapbind() (ldap.php line 75ff) works, so the first call to isConnected() returns true, the next fails


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37060.

avatar zero-24
zero-24 - comment - 16 Feb 2022

Can you run a var_dump on $this->resource in that method?

avatar gopalji
gopalji - comment - 16 Feb 2022

Seems somewhat strange,
if I run var_dump($this->resource) in this method, the result is null. So I ran var_dump($this->resource) once after the method returned true (which gave "object(LDAP\Connection)#512 (0) { } object(LDAP\Connection)#510 (0) { }")
and then after the method returned false (which gave "object(LDAP\Connection)#511 (0) { }")

avatar richard67 richard67 - change - 13 Sep 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-09-13 17:52:12
Closed_By richard67
avatar richard67 richard67 - close - 13 Sep 2022
avatar richard67
richard67 - comment - 13 Sep 2022

Closing as having a pull request. Please test #38750 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment