Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unsolved How to Assign a User to a Group with no Access to UserManager

    Dokuwiki
    3
    7
    107
    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.
    • S
      saint last edited by saint

      Hi.

      Using Cloudron's LDAP server, the default UserManager link in the Admin Panel disappears, because I believe the ~/conf/​users.auth.php file is not present.

      However, I am using the ACL (Access Control List) functionality of DW, and was wondering with the UserManager link gone in the Admin Panel, is there another way to assign a group(s) to a user?

      Because the group in the Cloudron User Directory for a User does not seem to show up in DW's ACL:

      Screen Shot 2022-11-24 at 9.08.17 PM.png

      For example, there is a group this associated to each of the @user (e.g. @vr, @vr-lead, etc.), but it doesn't seem to show up under the "Group:" drop-down menu item.

      girish 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Can you explain how to enable or view the ACL manager so I can try to reproduce the issue?

        1 Reply Last reply Reply Quote 0
        • Topic has been marked as a question  nebulon nebulon 
        • girish
          girish Staff @saint last edited by

          @saint The UserManager is the local database auth system. When using LDAP, it will go away. This is expected.

          Because the group in the Cloudron User Directory for a User does not seem to show up in DW's ACL:

          The ACL view is very tricky to use. Even in UserManager there is actually no way to create a group. It just "appears" 🙂 This took me a while to figure out - https://forum.dokuwiki.org/d/4935-howto-create-group

          You just put a group name like below and click select (you have to click the namespace on the left as well). And then, you can adjust the rules and save. Once you have put the group there in an ACL, it will apear in the Group dropdown for the future.

          86c47412-9f08-4e1e-8314-ae764a151820-image.png

          1 Reply Last reply Reply Quote 1
          • Topic has been marked as solved  girish girish 
          • S
            saint last edited by

            Hi guys,

            Circling back to give an update on this issue.

            Thanks for the feedback - I've been able to get permissioning to work correctly for Users so far, but am running into trouble with getting it to work properly for groups.

            I went through the same steps as adding an existing User, except I added an existing group that the User belonged to in Cloudron.

            When I tested the User permissions to show/hide/etc. a specific piece of content, it worked as expected.

            When I tested the Group permissions to show/hide/etc. the same specific piece of content, it did nothing.

            Any thoughts on why the same behavior/steps would yield different results?

            Happy to provide additional info. if needed. Thank you!

            1 Reply Last reply Reply Quote 0
            • S
              saint last edited by saint

              @girish @nebulon - Some additional digging, and I am wondering if this could be the cause. I've tested this at the User level, and the User Group level for the same page.

              The below is from the Configuration Settings of the Dokuwiki (domain replaced with example):

              https://www.example.com/grp/vr_team_lead?do=admin&page=config

              The plugin»authldap»usertree is filled in, but the plugin»authldap»grouptree field is empty.

              Screen Shot 2023-03-20 at 2.35.20 AM.png

              Similarly, the plugin»authldap»userfilter is filled in, but plugin»authldap»groupfilter is empty.

              Screen Shot 2023-03-20 at 2.35.34 AM.png

              For the User, it works. For the User Group, no matter what I do, it does not. Could this be why I was able to get the ACL to work at the User level, but not the User Group level?

              According to the threads at Dokuwiki forum, andi the developer has said:

              Yes. The ldap plugin uses the grouptree and groupfilter settings to fetch the group memberships of users.

              I also did a check at:

              https://www.example.com/grp/vr_team_lead&doku.php?do=check

              And from what I can see, it shows that I'm logged in as the correct User, but the User's Group does not correspond to the group defined on the LDAP server. Just that I'm part of the group "user."

              Screen Shot 2023-03-20 at 2.46.39 AM.png

              Let me know if you guys would like to see a screenshot of my ACL setup if needed.

              Thank you!

              1 Reply Last reply Reply Quote 0
              • Topic has been marked as unsolved  S saint 
              • girish
                girish Staff last edited by

                @saint thanks for the detailed dreport.

                For others, has anyone managed to get Cloudron groups working with Dokuwiki+LDAP ? I am at a loss as to how the mapping works.

                S 1 Reply Last reply Reply Quote 0
                • S
                  saint @girish last edited by

                  @girish After testing out the VirtualGroup plugin, it looks like so far this could be an alternate solution to the issue we are having.

                  For those that are running across the problem, try the searching for virtualgroup Plugin in your Extension Manager and see if that solves it.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB