Answered: How to make LDAP plugin work with Global Catalog?

Post date: 2021-08-02 20:03:28
Views: 169

This change to the ldap plugin made it work in LDAPServer.php:

-    $this->con = ldap_connect($ldap_host, qa_opt('ldap_login_port')) or die ("Could not connect to $ldap_host host.");

+    $this->con = ldap_connect($ldap_host.':'.qa_opt('ldap_login_port')) or die ("Could not connect to $ldap_host host.");

I found this in the comments section of PHP: ldap_connect - Manual.  The change is to pass one argument (host:port) instead of two (host, port).  Ideally, both methods should have worked.  Don't know why it isn't.  I'm happy this is working now and haven't dug further.

Please click Here to read the full story.
 
Other Top and Latest Questions:
Here's why FEMA has spent about $4 billion to help destroy flood-prone homes
83% of teenagers are already thinking about retirement — but many make this one mistake
Columbia to hold classes virtually as Jewish leaders warn about safety amid tensions over pro-Palestinian protests
Why Apple is betting big on India
Should I buy some facebook fixit car paint
Movie: A Certain Kind of Death
Fallout: The Trap
Fallout: The Past
Tesla slides 4%, Li Auto sinks 8% as EV makers slash prices amid fierce competition
Verizon reports fewer quarterly subscriber losses on flexible plan demand