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

    No ldap request from LDAP Management plugin

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    20
    3.8k
    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.
    • st.muS
      st.mu
      last edited by st.mu

      Server
      • FOG Version: 1.4.2
      • OS: debian jessie
      Plugin
      • LDAP Management
      • php ldap module installed
      Description

      “Search failedInternal Server Error” from LDAP Management when try to search people.

      Server log:
      [:error] [pid 12909] [client XXX] PHP Fatal error: Uncaught exception ‘LogicException’ with message ‘Class LDAPAssociation could not be loaded’ in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php:1268\nStack trace:\n#0 [internal function]: spl_autoload(‘LDAPAssociation’)\n#1 /var/www/html/fog/lib/fog/fogmanagercontroller.class.php(1268): class_exists(‘LDAPAssociation’)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3181): FOGManagerController->search(‘’, true)\n#3 /var/www/html/fog/lib/fog/fogpagemanager.class.php(257): FOGPage->searchPost()\n#4 /var/www/html/fog/management/index.php(54): FOGPageManager->render()\n#5 {main}\n thrown in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 1268, referer: http://server/fog/management/index.php?node=ldap

      1 Reply Last reply Reply Quote 0
      • F
        Fernando Gietz Developer
        last edited by

        Maybe the folder permissions? Can you do a

        ls -la /var/www/html/fog/lib/plugins
        

        ?

        1 Reply Last reply Reply Quote 0
        • st.muS
          st.mu
          last edited by

          Thanks Fernando

          ls -la /var/www/html/fog/lib/plugins
          total 68
          drwxr-xr-x 16 www-data www-data 4096 juin 19 14:23 .
          drwxr-xr-x 13 www-data www-data 4096 juin 19 14:23 …
          drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 accesscontrol
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 capone
          drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 example
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 fileintegrity
          -rw-r–r-- 1 www-data www-data 340 juin 19 14:23 index.php
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 ldap
          drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 location
          drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 persistentgroups
          drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 pushbullet
          drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 site
          drwxr-xr-x 9 www-data www-data 4096 juin 19 14:23 slack
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 taskstateedit
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 tasktypeedit
          drwxr-xr-x 7 www-data www-data 4096 juin 19 14:23 windowskey
          drwxr-xr-x 8 www-data www-data 4096 juin 19 14:23 wolbroadcast

          1 Reply Last reply Reply Quote 0
          • F
            Fernando Gietz Developer
            last edited by

            @st.mu said in No ldap request froma LDAP Management plugin:

            “Search failedInternal Server Error” from LDAP Management when try to search people.

            In the login page?

            The permissions are OK 🙂

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

              @st.mu said in No ldap request froma LDAP Management plugin:

              LDAPAssociation

              Can you please run:

              grep -rl 'LDAPAssociation' /var/www/
              

              This class doesn’t exist nor has it ever. @Fernando-Gietz realized this and fixed it. FOG version 1.4.2 had this fix, so I don’t know how you can be on 1.4.2 and have this problem. I suspect you have two potential installations running with conflicting data.

              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

              st.muS 1 Reply Last reply Reply Quote 0
              • st.muS
                st.mu @Tom Elliott
                last edited by

                @Tom-Elliott said in No ldap request froma LDAP Management plugin:

                grep -rl ‘LDAPAssociation’ /var/www/

                Hi Tom,

                root@:~# grep -rl 'LDAPAssociation' /var/www/
                root@:~#
                

                You right, FOG is installed on a test server and there are 2 folders fog_1.4.3 and fog_1.4.2… how to check conflicting data ?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth

                  @st-mu Thanks for reporting this. Can replicate the issue. Moved to bug reports.

                  @Tom-Elliott This piece of code is causing it… Sorry don’t have the time to look into this in detail.

                  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
                  • st.muS
                    st.mu
                    last edited by

                    Backup my test serveur from scratch, installed fog 1.4.2 and…same error.
                    So as Sebastian said a piece of code is causing it, I think i have to wait…

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

                      I don’t think that’s the piece of code causing the problem. I run with the ldap plugin installed and have never seen this issue occur at all.

                      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
                      • Tom ElliottT
                        Tom Elliott
                        last edited by

                        If you’d like, please install the git working branch:

                        git clone https://github.com/fogproject/fogproject.git /opt/fogprojectworking
                        cd /opt/fogprojectworking
                        git pull
                        git checkout working
                        git pull
                        

                        I’m seeing if simply preventing autoload from occurring will fix this issue, though I still cannot replicate.

                        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

                        st.muS 1 Reply Last reply Reply Quote 0
                        • st.muS
                          st.mu @Tom Elliott
                          last edited by

                          @Tom-Elliott
                          I installed the git working branch:
                          You are currently running version: 885132
                          Latest stable version is 1.4.3
                          Latest svn version is 6075
                          Latest git version is 1.4.2

                          No more errors in apach log (thanks) but I tryed many settings and ldap requests do not give an answer.

                          How to configure ldap plugin in order to do request (anonymous) like
                          uid=login,ou=people,$baseDN
                          cn=groupname,ou=groups,$baseDN
                          member=uid=login,ou=people,$baseDN

                          Sorry, i’m almost rookie in LDAP and linux (…also english ^^'…)

                          Tom ElliottT 1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @st.mu
                            last edited by

                            @st.mu Maybe this can help?
                            https://forums.fogproject.org/topic/10063/ldap-plugin-on-fog-1-3-3/5?page=1#

                            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
                            • st.muS
                              st.mu
                              last edited by

                              I’ve already seen this post.
                              my settings look like:
                              ldap settings

                              I choose OpenLDAP template.

                              Tom ElliottT 1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @st.mu
                                last edited by

                                @st.mu Is your Domain on an “Open LDAP” ldap tree?

                                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

                                st.muS 1 Reply Last reply Reply Quote 0
                                • st.muS
                                  st.mu @Tom Elliott
                                  last edited by

                                  @Tom-Elliott
                                  yes

                                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott @st.mu
                                    last edited by

                                    @st.mu If that’s the case, shouldn’t your “group attribute” value be ‘member’ instead of ‘groups’

                                    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
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by

                                      Your user attribute should be cn not ‘uid’

                                      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

                                      st.muS 1 Reply Last reply Reply Quote 0
                                      • st.muS
                                        st.mu @Tom Elliott
                                        last edited by

                                        @Tom-Elliott
                                        I’ve also tried that and it doesn’t work.
                                        I tried generic LDAP with uid as User Name Attribute and groups as Group Member Attribute (who knows…), but same “O results found” answer…

                                        Tom ElliottT 1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott @st.mu
                                          last edited by

                                          @st.mu You don’t search users in ldap management.

                                          All ldap plugin does is enable you to login with LDAP user accounts, there’s no searching users. I don’t know where you got the idea that you could find users using this plugin.

                                          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

                                          st.muS 1 Reply Last reply Reply Quote 0
                                          • st.muS
                                            st.mu @Tom Elliott
                                            last edited by

                                            @Tom-Elliott
                                            I am confused,
                                            I have misunderstood how works the plugin. I thought searching users by lhe LDAP Management section enable to check ldap conf is ok.
                                            I will test in the right way.

                                            Thanks Tom

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

                                            142

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project