Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DokuWiki admin user has no admin permissions when username is not admin/administrator #6919

Closed
mrmarkuz opened this issue May 12, 2024 · 3 comments
Assignees
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@mrmarkuz
Copy link
Member

mrmarkuz commented May 12, 2024

Steps to reproduce

  • Set internal authentication or LDAP
  • Setup an admin username to something else than admin/administrator like localadmin

Expected behavior

localadmin has full admin permissions after login to DokuWiki

Actual behavior

localadmin just has common user permissions

Components

NS8 DokuWiki 1.0.3

See also

https://community.nethserver.org/t/dokuwiki-admin-user-has-no-admin-permissions-when-username-is-not-admin-administrator/23628

Proposed fix

Set \$conf['superuser'] = '@admin,@domain\ admins'; in DokuWiki config to allow internal admins and domain admins by group


Thanks to Denis Pollini for finding the bug.

@mrmarkuz mrmarkuz added the bug A defect of the software label May 12, 2024
stephdl added a commit to NethServer/ns8-dokuwiki that referenced this issue May 13, 2024
Change npm registry to fix download  NethServer/dev#6919
stephdl added a commit to NethServer/ns8-dokuwiki that referenced this issue May 13, 2024
Use groups instead of users in write-ldap-conf NethServer/dev#6919
@stephdl
Copy link

stephdl commented May 13, 2024

QA

test case 1
test the admin from LDAP can access to administrative page

test case 2
without ldap, test the admin can access to administrative page

@stephdl stephdl added the testing Packages are available from testing repositories label May 13, 2024
stephdl added a commit to NethServer/ns8-dokuwiki that referenced this issue May 13, 2024
Fix typo in LDAP superuser group name for admin domains NethServer/dev#6919
@stephdl
Copy link

stephdl commented May 13, 2024

test 1 and test 2 verified

@stephdl
Copy link

stephdl commented May 13, 2024

released as 1.0.4

@stephdl stephdl closed this as completed May 13, 2024
@stephdl stephdl added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
Archived in project
Development

No branches or pull requests

2 participants