• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    LDAP for the web is working, but not working when you try to deploy a image using the ad credentials.

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    1
    2
    255
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • michelbragaguimaraesM
      michelbragaguimaraes
      last edited by

      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
      f566ee39-bc48-4605-ae12-bd82cb9e46d3-image.png

      Putting in the credentials
      1f28f0e6-ac8c-490d-b5bb-701f903ac052-image.png

      Back to the main screen:
      3ec66a32-51af-4600-a68f-191a7a69f052-image.png

      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:
      cb1ad64c-583c-45e5-9d58-45c74ffa15fa-image.png

      Could anybody help me with this little issue, please?

      Thank you

      1 Reply Last reply Reply Quote 0
      • michelbragaguimaraesM
        michelbragaguimaraes
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        168

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project