Ad Widget

Collapse

UserGroups in 1.1alpha10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurt
    Junior Member
    • Aug 2005
    • 21

    #1

    UserGroups in 1.1alpha10

    Hi all, I am experiencing problems with regards to adding users to defined user groups.

    I can't seem to find a way to add a particular user to a user group through the frontend.

    Is anybody experiencing the same problem or am i doing something wrong?

  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Are the users not being added, or are you just not seeing all of the users?
    Unofficial Zabbix Developer

    Comment

    • kurt
      Junior Member
      • Aug 2005
      • 21

      #3
      UsersNotListed

      When i`m in the UserGroups Screen, i select the usergroup i want to add the user, but when i click on users (on the bottom of the screen) and click update. Only the "Admin" user is added.

      If i login with a different user with default permissions (Read/Write). and follow the same process, the "admin" user is added to the group and not the logged in user....

      Is this a bug or am i doing something wrong

      Comment

      • kurt
        Junior Member
        • Aug 2005
        • 21

        #4
        Resolution

        I found a fix for this problem in the forum.

        The problem is, when you want to add a user to a usergroup, you cant, because there isnt a list of users to choose from.

        Here is the fix for this problem:

        edit "include/forms.inc.php"
        do a search for "checkbox"
        look for this ["userid"]."\" \">".
        replace with this ["userid"]."\" >".

        Comment

        • KarmaPolice
          Member
          • Oct 2005
          • 95

          #5
          this bug still exists in beta2 and should definitely be fixed... could someone have a look into it that develops the program and make the above fix permanent.

          Comment

          • James Wells
            Senior Member
            • Jun 2005
            • 664

            #6
            Hmmm, looking through the code, starting at line 810, I see;
            Code:
                                                    echo "<input type=checkbox name=\"".$row
            ["userid"]."\" \">".$row["alias"];
                                            }
                                            else
                                            {
                                                    echo "<input type=checkbox checked name=
            \"".$row["userid"]."\" \">".$row["alias"];
                                            }
                                    }
                                    else
                                    {
                                            echo "<input type=checkbox name=\"".$row["userid
            "]."\" \">".$row["alias"];
            I suspect this is where you are looking, however, I decided to test it using the CVS code, and everything worked correctly.
            Unofficial Zabbix Developer

            Comment

            • lorell
              Junior Member
              • Oct 2005
              • 14

              #7
              I am using 1.1beta2 and do not see a way to add users to groups.

              The user "Admin" was magically added to a group and that is who I am logged in as, but I do not see a way to add other users.

              See attachment.
              Attached Files
              Last edited by lorell; 14-11-2005, 18:59.

              Comment

              • lorell
                Junior Member
                • Oct 2005
                • 14

                #8
                OK. In playing around with it a little more, I noticed that I can add and remove the Admin user by clicking Change, and checking or unchecking the box and clicking Update Group.

                When I log in as a user other than Admin and try to add/remove the user, it only adds/removes "Admin" as the user: not the other user!

                Comment

                • lorell
                  Junior Member
                  • Oct 2005
                  • 14

                  #9
                  I tried Kurt's resolution from above and got a partial fix. When I went back in as Admin (surely because my other user did not have proper useradd rights) I could create a new group and it would list all users on the system and allow me to choose who was in the group.

                  But after the group was created I do not seem to be able to add/remove users from the group. This will do for now.

                  Thanks for the help!

                  Comment

                  Working...