LDAP for the web is working, but not working when you try to deploy a image using the ad credentials.
-
Good Morning Fog addicted,
First of all, I’d like to thank you guys for this amazing, awesome tool.
I have been facing an issue with the LDAP plugin.
I just built a new server using Ubuntu 22.04 and PHP8.1 (Witch was installed by default using the install script).
At first, I wasn’t being able to login to the webpage using my ad credentials, but I was able to fix it using this awesome tip from @tomamplius that I found on github: FIX.
Now I can log in on the webpage using my ad credentials.
But I am having another issue that I couldn’t figure out yet. When you try to deploy an image using this same credential, it returns to the main boot screen and doesn’t do nothing.
Main screen
Putting in the credentials
Back to the main screen:
When you check the Apache logs, I get this error:
[Tue Aug 08 09:50:41.391255 2023] [proxy_fcgi:error] [pid 206760] [client 10.1.3.108:53572] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: LDAP connection has already been closed in /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php:124\nStack trace:\n#0 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(124): ldap_unbind()\n#1 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(236): LDAP->__call()\n#2 /var/www/html/fog/lib/plugins/ldap/hooks/ldappluginhook.hook.php(126): LDAP->authLDAP()\n#3 /var/www/html/fog/lib/fog/hookmanager.class.php(86): LDAPPluginHook->checkAddUser()\n#4 /var/www/html/fog/lib/fog/user.class.php(144): HookManager->processEvent()\n#5 /var/www/html/fog/lib/fog/user.class.php(226): User->passwordValidate()\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(2469): User->validatePw()\n#7 /var/www/html/fog/lib/fog/bootmenu.class.php(1301): FOGBase::attemptLogin()\n#8 /var/www/html/fog/lib/fog/bootmenu.class.php(484): BootMenu->verifyCreds()\n#9 /var/www/html/fog/service/ipxe/boot.php(52): BootMenu->__construct()\n#10 {main}\n thrown in /var/www/html/fog/lib/plugins/ldap...'
When I try the fog username, it works:
Could anybody help me with this little issue, please?
Thank you
-
I can confirm that with PHP7.4 + Modules and Php7.4-FPM, it works.
But not with Php8.1 + Modules and Php8.1-FPM, unfortunately.
Thank you