LDAP plugin
-
Guys,
Can someone tell me if this is an error in the LDAP plugin or just a wrong configuration in it?
[22-Jun-2023 16:22:54 UTC] PHP Fatal error: Uncaught TypeError: ldap_unbind(): Argument #1 ($ldap) must be of type resource, null given in /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php:124
Stack trace:
#0 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(124): ldap_unbind()
#1 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(235): LDAP->__call()
#2 /var/www/html/fog/lib/plugins/ldap/hooks/ldappluginhook.hook.php(126): LDAP->authLDAP()
#3 /var/www/html/fog/lib/fog/hookmanager.class.php(86): LDAPPluginHook->checkAddUser()
#4 /var/www/html/fog/lib/fog/user.class.php(144): HookManager->processEvent()
#5 /var/www/html/fog/lib/fog/user.class.php(226): User->passwordValidate()
#6 /var/www/html/fog/lib/fog/fogbase.class.php(2469): User->validatePw()
#7 /var/www/html/fog/lib/pages/processlogin.class.php(153): FOGBase::attemptLogin()
#8 /var/www/html/fog/management/index.php(31): ProcessLogin->processMainLogin()
#9 {main} -
@kamburta You might need to install the package
php-ldap
if it isn’t already installed on your system. -
@Tom-Elliott
yes, it has already been installed. Do you have to upload a module in httpd.conf or copy a module to the /etc/httpd/modulos folder?
rpm -qa php-ldap
php-ldap-8.0.27-1.el9_1.x86_64FOG version 1.5.10
-
I have the same problem when installing the same version.
Did anyone resolve this issue? -
@kamburta said in LDAP plugin:
PHP Fatal error: Uncaught TypeError: ldap_unbind(): Argument #1 ($ldap) must be of type resource, null given in
ldap is enabled in php.
-
@Eazis Please try the dev-branch
-
@Tom-Elliott Yes this resolves the issue.