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

Hi @stephdl ,

first, thanks to @Denis_Pollini who noticed this little bug in DokuWiki.
When you set internal authentication and the admin user isn’t named admin or administrator then she has no admin permissions after login.
If a domain non-admin user is just named admin/administrator he may get full admin permissions in dokuwiki.

My proposal to solve the bug is

  • using @admin so any internal auth admin should get the right permissions (as he is in the internal admin group)
  • using @domain\ admins group instead of user names, this way any domain admin is dokuwiki admin

\$conf['superuser'] = '@admin,@domain\ admins';

6 Likes

Hello

Can you prepare the pull request we coult test it in real

Thanks

2 Likes

Done.

2 Likes

Thanks… it seems we have the same error for registry.nlark.com

We need I think another pr to build the rpm at least to validate the solution

2 Likes

Here is the PR:

2 Likes

Your welcome :slight_smile:

2 Likes