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

    LDAP plugin on 1.3.0

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    16
    4.3k
    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.
    • I
      iyoung
      last edited by iyoung

      Server
      • FOG Version: 1.3.0 (SVN 6050)
      • OS: Ubuntu 16.04
      Client
      • Service Version:
      • OS: Windows 10
      Description

      I’ve added and setup the LDAP plugin (see picture), following what was shown here . But when I go to login to the web portal I get a http 500 error and the below is the apache error log that coincides with the login attempt. I had had the LDAP plugin installed before, but uninstalled and reinstalled following this post

      [Wed Dec 28 11:47:23.003367 2016] [:error] [pid 17602] [client 192.168.34.152:2111] PHP Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /var/www/fog/lib/plugins/ldap/class/ldap.class.php:266\nStack trace:\n#0 /var/www/fog/lib/plugins/ldap/hooks/ldappluginhook.hook.php(98): LDAP->authLDAP('iyoung', 'MYPASSWORD')\n#1 /var/www/fog/lib/fog/hookmanager.class.php(190): LDAPPluginHook->checkAddUser(Array)\n#2 
      /var/www/fog/lib/fog/user.class.php(229): HookManager->processEvent('USER_LOGGING_IN', Array)\n#3 /var/www/fog/lib/fog/fogcore.class.php(35): User->validatePw('iyoung', 'MYPASSWORD')\n#4 
      /var/www/fog/lib/fog/processlogin.class.php(241): FOGCore->attemptLogin('iyoung', 'MYPASSWORD')\n#5
      /var/www/fog/management/index.php(29): ProcessLogin->processMainLogin()\n#6 {main}\n thrown in /var/www/fog/lib/plugins/ldap/class/ldap.class.php on line 266, referer: http://192.168.34.23/fog/management/index.php?
      

      0_1482951619330_Capture.PNG

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by george1421

        If I’m reading the code correctly, it appears that the php ldap module is not installed on your ubuntu box. The fog installer should do this by default.

        ref: https://www.howtoinstall.co/en/ubuntu/xenial/php-ldap

        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!

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

          Unless it is an update. Please try installing manuallt

          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

          1 Reply Last reply Reply Quote 0
          • I
            iyoung @george1421
            last edited by

            php-ldap was not installed. I’ll restart and see what happens. I also looked in /opt/fog/.fogsettings and didn’t see php-ldap or a package that depends on it.

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @iyoung
              last edited by

              @iyoung FWIW: You only need to restart apache when you update php

              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!

              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator
                last edited by

                You will probably have other issues since you did not supply a bind DN. AD does not allow blind binds via ldap.

                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!

                1 Reply Last reply Reply Quote 0
                • I
                  iyoung
                  last edited by

                  Success! I was able to login with a domain user, after installing php-ldap, without issue.

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @iyoung
                    last edited by george1421

                    @iyoung Ok so now the question is why didn’t the installer install that for you?? (just an open question).

                    That’s great it worked for you, Tom spent quite a bit of time working out the details on that plugin to make it a bit more universal.

                    Marking issue as solved.

                    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!

                    I 1 Reply Last reply Reply Quote 0
                    • I
                      iyoung @george1421
                      last edited by

                      @george1421 @tom-elliott I’ll spin up a host to see if it’s an issue on fresh installs of 1.3.0.

                      1 Reply Last reply Reply Quote 1
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        I had this working last week but it’s mysteriously stopped working now. I didn’t spend a lot of time looking into it, just giving this tidbit of info here.

                        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!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • I
                          iyoung
                          last edited by

                          Just looking at FOG installing now, I can see php7.1-ldap in the “Packages to be installed.” The only things I changed before installing FOG were installing aptitude and ssh-server.

                          OS: Ubuntu 16.10 Server
                          FOG: 1.3.0 (SVN 6051)

                          Tom ElliottT I 2 Replies Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @iyoung
                            last edited by

                            @iyoung I think the difference was your “fresh” install knows to install ldap already. The upgrade, however, doesn’t.

                            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

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              iyoung @Tom Elliott
                              last edited by

                              @Tom-Elliott I looked at the creation date of my main FOG server and it looks like it was created on 09/15/2016, and I know that I went right to trunk when I installed FOG. I skimmed this thread which is, for the most part, newer than that. Was php-ldap added more recently?

                              Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @iyoung
                                last edited by

                                @iyoung yes I think october ish timeframe

                                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

                                1 Reply Last reply Reply Quote 0
                                • george1421G
                                  george1421 Moderator @iyoung
                                  last edited by george1421

                                  @iyoung That is most likely the case, the php-ldap module, before the thread, was a user responsibility to add it in and not provided by the fog installer (if I remember correctly). Once Tom updated the ldap plugin it was logical that if The FOG Project supplied the plugin that the installer should install all required modules.

                                  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!

                                  1 Reply Last reply Reply Quote 1
                                  • I
                                    iyoung @iyoung
                                    last edited by

                                    @iyoung Test completed. LDAP plugin added and test login succeeded.

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

                                    211

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project