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

    Access Control Plugin assigning users fails

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    9
    813
    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.
    • Q
      quinniedid
      last edited by

      FOG 1.5.5

      I have created two technician roles. I have assigned only three rules to this particular role. When adding a FOG user to the membership for this role it is never added. The user still can see everything as if an admin in FOG.

      Is this part of the plugins failing to work in FOG 1.5.5 or is this a separate issue?

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

        @quinniedid rules work opposite to how you’re thinking. The rules you want blocked should be associated to the role. Rules you want access to for the role should NOT be associated to the role.

        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
        • F
          Fernando Gietz Developer
          last edited by

          Hi @quinniedid ,
          I have this plugin installed in 1.5.5 and works fine.
          The users, are local? Did you create them?
          Are you ussing LDAP plugin too?
          Which rules are you using?

          1 Reply Last reply Reply Quote 0
          • Q
            quinniedid
            last edited by quinniedid

            Hi @Fernando-Gietz ,

            All of these users are local. We did create a user called “optimus”

            I created a new roll call Technician - Optimus.

            These are the rules that I have created for the roll so far:

            MAIN_MENU-about about main
            MAIN_MENU-host host main
            SUB_MENULINK-actice active menu task

            I am thinking there is actually something wrong with maybe the database that contains the rules? When I go to the access control plugin I click on list all rules, the rules that show up in that list are not the same as the ones that are available to add to the role for rule association.

            I would upload screenshot but for some reason I am not able to right now. I select the select the user to add but no action is taken it seems. I will have to try a different browser or computer.

            1 Reply Last reply Reply Quote 0
            • Q
              quinniedid
              last edited by

              @Fernando-Gietz

              Is it because of the spaces in the role name? How can I verify the database to ensure it is not corrupted?

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

                @quinniedid I don know but is easy to check it 🙂 don t use spaces in one role. You can see the entries in the database in the rule* and role* tables

                1 Reply Last reply Reply Quote 0
                • Q
                  quinniedid
                  last edited by

                  @Fernando-Gietz

                  When I add the optimus user I see this in the table:
                  d1177374-4d8d-4b00-a926-e0576856b2b5-image.png

                  The issue is that optimus still acts like a full admin even though no rules are associated.
                  647ebb03-5006-42e5-b3ec-727a3a32b569-image.png

                  I have removed the plugin and reinstalled it and I am continuing to have the same behavior… Any ideas?

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

                    @quinniedid rules work opposite to how you’re thinking. The rules you want blocked should be associated to the role. Rules you want access to for the role should NOT be associated to the role.

                    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
                    • Q
                      quinniedid
                      last edited by

                      Okay. That makes a lot more sense. It is working just fine. I appreciate the clarification.

                      Is there any documentation on rule creation? I only want the user to have access to specific hosts and groups?

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

                        Hi @quinniedid ,

                        In this post you can find info about how works and how create rules in this plugin.

                        https://forums.fogproject.org/topic/9624/control-access-plugin/14

                        With this plugin you can restrict the access to the menus and submenus but not to specific host and groups. To do this maybe you can use the Site plugin but, unfortunately, this plugin doesn’t work with the 1.5.5 version. I am working to fix the bugs.

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

                        169

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project