sailor
Hello everyone.
I'm not sure if it's possible. I want to disable ability to change password for selected user. Why is that? Because I have to set "semi-public" account for group of users. They will have the same login and password. I would like to avoid creating a lot of accounts, because documents will be published only for particular time. There is possibility, that someone from that group will change password.
If there is no such functionality, maybe someone could help me, how to generate password in linux shell which is compatibile with DokuWki passwords in conf/users.auth.php. I could reset this password in cron every 5 minutes, if it changes.
Best regards
spherotob
Hi,
this entry is quite ancient, but I ran into the same problem. I would like to forbid a specific user or group of users to be able to change their user password.
Did a swift solution to this issue come up in the meantime?
Thanks and best regards
turnermm
Try disable actions for userprofile
michaelsy
Try disable actions for userprofile
Good idea!
The appropriate action is called
profile.
And there is the disableactionsbygroup plugin:
https://www.dokuwiki.org/plugin:disableactionsbygroup
HTH - Michael Sy.
spherotob
Thanks a lot for your answers!
Using the disableactionsbygroup plugin and disabling the profile action seemed promising. Unfortunately, setting up the plugin with the argument "user:profile" for diasabling the Update Profile option had no effect.
I checked out the (similar) Denyactions plugin. This plugin actually worked, but, as described, only for "read-only" users. This would have worked for my case but if you allow this "read-only" user to edit, e.g., a single page, it can actually access the Update Profile on that very page. Not very practical if I want to prevent that a user or account can change the password since multiple people have access to this user/account.
I'm new to Dokuwiki and don't quite see through the config settings of Dokuwiki. Could you point me in the right direction where to manually disable actions for users, if that is possible?
Thank you in advance! Best regards
michaelsy
The disableactionsbygroup plugin does not work for me either.
Once it is activated, I can neither log in nor log out.
And disabling the action doesn't do it either.
I also get a warning message, but it does not necessarily mean that the plugin does not work.
Sorry, it would have been this plugin. Without repairs to this plugin or other PHP-based system interventions, I believe there is no way to achieve exactly what you want.
turnermm
In the Configuration settings, in the authentication section, you will find the disableactions options
michaelsy
There is a somewhat tricky way to hide the possibility of changing the password from a group of users.
First: Hide the function link "Update Profile" via CSS.
Second: Offer this function link/URL on a Wiki page, which can be accessed by authorized users only.
It should be noted, however, that this is not a real access protection!
turnermm
You can use the tplmod plugin.
1. set the userprofile option to true (tick off checkbox)
2. add name of a restricted a group to the restricted group textbox
3. add users to that group who should be excluded from the userprofile dialog
Sorry I hadn't remembered this earlier. A bit embarrassing since tplmod is one of my plugins.