spaaz9
I don't know offhand if it existed prior to my upgrade to "Release 2017-02-19b "Frusterick Manners", but currently, I don't have a "User Manager" option on my Administration page. The directory is there on the server in ../lib/plugins/ but it's not showing up in the wiki itself. Any ideas? I have all the other options (ACL management, revert manager, etc..)
spaaz9
I tried going to doku.php?id=main_page&do=admin&page=usermanager and I get:
invalid auth mechanism
andi
What's in your conf['auth'] setting?
spaaz9
Sorry, forgive my ignorance, but I'm not sure where to find that... In my ../conf/local.php file, I have $conf['authtype'] = 'authad' because i'm using active directory for my permissions.. Or are you referring to a different file?
fosseway
The setting is either there, or in local.protected.php
You should be able to see the value andi asked for in the Configuration Manager, too; you're looking for the value of the Authentication backend setting.
Do you see this error anywhere else, or only when you try to visit the User Manager page?
I took a quick look at the User Admin plugin code, and this error is returned when it was unable to determine the authentication method in use. That may not be helpful to you right now, but it does very much support what andi is saying.
It might also be useful to know which auth plugins you have installed.
spaaz9
I'm using authad. And that's the only auth plugin that I have installed I think. And that does seems to be fine. I get logged in as an admin and everything.
fosseway
Are you able to look at
the available debugging options for your wiki and see if there's any mention of the user manager there? Also anything to do with auth method, and user group, or ACL. Seems strange that the plugin thinks you have a null auth method if you're managing to get logged in as an admin using authad.
spaaz9
I added ?do=debug to the main page url to see what happened and it just gave me the:
This topic does not exist yet
You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by clicking on “Create this page”.
Is that to be expected?
If I do &do=debug, it says "Command unknown: debug"
turnermm
You have to enable Allowdebug in the config options.
greenbeat
Might be that this is due to the modifications made in wiki\lib\plugins\admin.php in the following section:
/**
* Return true for access only by admins (config:superuser) or false if managers are allowed as well
*
* @return bool
*/
public function forAdminOnly() {
return false;
}
This value has changed to "true" the new version.
fosseway
spaaz9:1490980142 wrote
I'm using authad. And that's the only auth plugin that I have installed I think. And that does seems to be fine. I get logged in as an admin and everything.
Given what
greenbeat has pointed out, are you
certain that you're logged in as a user which has admin rights? How are you determining that? Might be worth a double-check...
spaaz9
I'm positive because I'm using my AD account which is the one I set everything up with. And I have the Admin panel available to me when I'm logged in.
I can even go in and change the superuser setting in "Configuration Settings".
I tried changing the value in admin.php to "false", however, that didn't make any difference after I logged out and back in. Not sure if I have to restart something to have that take effect though.
fosseway
I agree it does sound like you are an admin.
Have you tried the ?do=debug as suggested earlier in the thread?
spaaz9
I did. It shows that I'm logged in, I'm an admin, I'm a superuser and such... I've attached the output here.
fosseway
Thanks. Of course, what I didn't know was that DokuWiki very sensibly runs a function debug_guard on most of this output to redact any keys with certain sensitive keywords in the name (notify|pass|auth|secret|ftp|userinfo|token|buid|mail|proxy). Of course, this includes your auth_type as seen by DW at the moment this debug output is generated.
If you're comfortable doing so, you could maybe use DokuWiki's dbglog() function to dump the contents of $auth to a logfile to see what that shows you, but I'm afraid I don't know what else to suggest at this point. Sorry about that. Hopefully someone else can provide some insight.
andi
spaaz9 wrote
I'm positive because I'm using my AD account which is the one I set everything up with.
When you're using authad, there is no user manager. That's what your Active Directory is for.
spaaz9
Well. That makes sense then. I assumed that there were dokuwiki specific things that could be done there. However, I don't remember why I was looking for it in the first place.
Thanks for all the help everyone! I appreciate it.
fosseway
I'm using authad on my production wiki, and I can get to the User Manager. I can't do anything with it, but it's in my Admin menu, and the screen does load, even though it shows me no users. Did I break something?
andi
FosseWay wrote
I'm using authad on my production wiki, and I can get to the User Manager.
Interesting. That might have changed in the last release. Are you running Frusterick Manners?
fosseway
Yes - sorry, I should have thought to mention my version. My wiki is generally fairly up-to-date.
2017-02-19b "Frusterick Manners"