• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Dec 28, 2016, 1:17 PM Dec 28, 2016, 7:05 PM

    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
    • G
      george1421 Moderator
      last edited by george1421 Dec 28, 2016, 1:49 PM Dec 28, 2016, 7:47 PM

      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 Dec 28, 2016, 8:44 PM Reply Quote 0
      • T
        Tom Elliott
        last edited by Dec 28, 2016, 8:15 PM

        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 Dec 28, 2016, 8:44 PM

          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.

          G 1 Reply Last reply Dec 28, 2016, 8:45 PM Reply Quote 0
          • G
            george1421 Moderator @iyoung
            last edited by Dec 28, 2016, 8:45 PM

            @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
            • G
              george1421 Moderator
              last edited by Dec 28, 2016, 8:47 PM

              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 Dec 28, 2016, 8:53 PM

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

                G 1 Reply Last reply Dec 28, 2016, 8:56 PM Reply Quote 0
                • G
                  george1421 Moderator @iyoung
                  last edited by george1421 Dec 28, 2016, 2:57 PM Dec 28, 2016, 8:56 PM

                  @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 Dec 28, 2016, 8:58 PM Reply Quote 0
                  • I
                    iyoung @george1421
                    last edited by Dec 28, 2016, 8:58 PM

                    @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
                    • W
                      Wayne Workman
                      last edited by Dec 28, 2016, 9:14 PM

                      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 Dec 29, 2016, 4:28 PM

                        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)

                        T I 2 Replies Last reply Dec 29, 2016, 4:29 PM Reply Quote 0
                        • T
                          Tom Elliott @iyoung
                          last edited by Dec 29, 2016, 4:29 PM

                          @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 Dec 29, 2016, 4:41 PM Reply Quote 0
                          • I
                            iyoung @Tom Elliott
                            last edited by Dec 29, 2016, 4:41 PM

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

                            T G 2 Replies Last reply Dec 29, 2016, 5:09 PM Reply Quote 0
                            • T
                              Tom Elliott @iyoung
                              last edited by Dec 29, 2016, 5:09 PM

                              @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
                              • G
                                george1421 Moderator @iyoung
                                last edited by george1421 Dec 29, 2016, 2:55 PM Dec 29, 2016, 5:09 PM

                                @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 Dec 29, 2016, 8:48 PM

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

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

                                  173

                                  Online

                                  12.1k

                                  Users

                                  17.3k

                                  Topics

                                  155.3k

                                  Posts
                                  Copyright © 2012-2024 FOG Project