When I try to make an account, I get a "Unable to register account. See messages below" error (no messages). My PHP error logs show an error: PHP Fatal error: Uncaught TypeError: ldap_close(): Argument #1 ($ldap) must be of type LDAP\Connection, false given in phar://C:/inetpub/wwwroot/support/include/plugins/auth-ldap.phar/include/Net/LDAP2.php:701
Stack trace:
#0 phar://C:/inetpub/wwwroot/support/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close()
#1 C:\inetpub\wwwroot\support\include\pear\PEAR.php(755): Net_LDAP2->_Net_LDAP2()
#2 [internal function]: _PEAR_call_destructors()
#3 {main}
thrown in phar://C:/inetpub/wwwroot/support/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701
this is my config (fake information so no worries)
Getting a PHP error when setting up LDAP plugin for active directory.
katfourth I added the user OU that was missing from the search base, now when logging into users I get "Access Denied". When i choose create an account it doesnt use the LDAP authentication.
- Provide a screenshot of Admin Panel > Dashboard > Information.
- Provide screenshots of what you mean and exact steps to replicate the issue.
Cheers.
KevinTheJedi Here are the screenshots. As you can see, attempting to login to a user from active directory gives "Access Denied". Clicking create an account no longer shows LDAP authentication, and instead has a box to create a password.