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

Can't log in to animal / animal links -> farm #68

Open
ajl199 opened this issue Mar 23, 2020 · 6 comments
Open

Can't log in to animal / animal links -> farm #68

ajl199 opened this issue Mar 23, 2020 · 6 comments

Comments

@ajl199
Copy link

ajl199 commented Mar 23, 2020

I think I'm probably being stupid and missing something obvious, but have been going round in circles most of this morning.

It's a new dokuwiki installation (Greebo) with the farmer plugin installed. I can create an animal through the plugin as a closed wiki and I get its login page when I go to its URL, but can't log in as the admin user I set up when configuring it. I've double and triple checked the password, and even manually copied the one for a farm wiki user over to it in users.auth.php of the animal, just to be sure, but to no avail. However, I can log in using credentials for the farm wiki even though the URL of the page is still that of the animal. I therefore conclude that it's querying users.auth.php for the farm rather than the animal. I have proved this by putting the config line for the animal's user from the animal's users.auth.php into the farm's, which suddenly lets me log in, but takes me to the farm wiki, despite the URL being that of the animal.

If instead I set up an animal as an open wiki and make the current user its admin, the link to the animal works fine, I see the animal, but all the links (admin, create page etc) seem to point to the farm wiki.

I suspect these two things are related and the target of the login form, like the links, is pointing to the wrong place, but I'm working blind because I don't know what they should be, let alone what might have caused this. Any hints would be hugely appreciated.

Many thanks,

Adrian

@auto-comment
Copy link

auto-comment bot commented Mar 23, 2020

Thank you for opening this issue.
CosmoCode is a software company in Berlin providing services for wiki, app and web development. As such we can't guarantee quick responses for issues opened on our Open Source projects.
If you require certain features or bugs fixed, you can always hire us. Feel free to contact us at [email protected] for an offer.

@CruxCraft
Copy link

in the same boat

@billhtml-dev
Copy link

I'm having the same problem with Release rc-2020-06-09 "Hogfather" RC3 - even after reinstalling Apache and Dokuwiki. Is it not compatible with RC3 Hogfather?

[Sun Jun 28 03:05:35.917146 2020] [authz_core:debug] [pid 21763] mod_authz_core.c(809): [client 1.1.1.1:60938] AH01626: authorization result of : granted, referer: http://server/!testanimal/doku.php

@annda
Copy link
Contributor

annda commented Jun 29, 2020

It looks like the original poster @ajl199 had problems with configuration. The description indicates that animals are not found and the login action is redirected to the farmer wiki. This is why login with an animal's user does not work. To troubleshoot this, try changing the setting "Behavior on accessing nonexistent Animals" in the farmer configuration and accessing the animal wiki again.

@annda
Copy link
Contributor

annda commented Jun 29, 2020

@billhtml-dev The plugin is compatible with Hogfather. Please check your Apache configuration. What does your .htaccess look like?

@billhtml-dev
Copy link

@billhtml-dev The plugin is compatible with Hogfather. Please check your Apache configuration. What does your .htaccess look like?

Thanks for your reply.

The. .htaccess file was the same rewrite rules from the previous version and as specified in the Dokuwiki farmer plug-in page. The page would initially access the animal but when selecting admin or other links it would fail and display the farmer page.
After attempting it twice with the Hogfather release candidate 3, I was unable to get it working. So I have reinstalled the Greebo release and I was able to get it working after dealing with some PamAuth and Apache MPM issues.
These issues could have been the cause of the problem, I will have to attempt the upgrade again.
But, after spending 9 hours on it this last weekend, it may have to wait another week or two.
If you don't mind, I will follow up here with my results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants