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

    LDAP plugin

    Scheduled Pinned Locked Moved
    General
    4
    7
    801
    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.
    • K
      kamburta
      last edited by

      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}

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @kamburta
        last edited by

        @kamburta You might need to install the package php-ldap if it isn’t already installed on your system.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        K 1 Reply Last reply Reply Quote 0
        • K
          kamburta @Tom Elliott
          last edited by

          @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_64

          FOG version 1.5.10

          1 Reply Last reply Reply Quote 0
          • EazisE
            Eazis
            last edited by

            I have the same problem when installing the same version.
            Did anyone resolve this issue?

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • EazisE
              Eazis
              last edited by

              @kamburta said in LDAP plugin:

              PHP Fatal error: Uncaught TypeError: ldap_unbind(): Argument #1 ($ldap) must be of type resource, null given in

              7c8afbbb-f0b7-45d8-9c3b-3e5949a3139a-image.png

              ldap is enabled in php.

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Eazis
                last edited by

                @Eazis Please try the dev-branch

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                EazisE 1 Reply Last reply Reply Quote 0
                • EazisE
                  Eazis @Tom Elliott
                  last edited by

                  @Tom-Elliott Yes this resolves the issue.

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

                  192

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project