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

Says login/password is invalid when regular user try to login, even if the credentials are the right ones #1326

Open
stemy2 opened this issue Jan 3, 2025 · 2 comments

Comments

@stemy2
Copy link

stemy2 commented Jan 3, 2025

Baikal version: 0.9.4

Expected behaviour: Successful login

Current behaviour: Says falsely that credentials are wrong

Steps to reproduce:

  1. Login as admin
  2. Create a new user
  3. Logout
  4. Try to login as the said user
@barfoo4711
Copy link

Non admin users will I think not be able to login to the admin screen. But they should be able to login to /dav.php/ in the browser.

Even that was not working for me with 0.10.1 and after wasting a couple of hours and adding a lot of debug statements to the code base I realized that the Authorization HTTP header sent from the client did not make it to Baikal / SabreDAV.

In baikal\vendor\sabre\http\lib\Auth\Digest.php the getDigest() function just returned an empty string. Therefore authentication was failing.

I added the following .htaccess file to the baikal/html directory with the content documented here: https://stackoverflow.com/a/26791450

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

On second look I then noticed that the original Baikal release .zip already contains a .htaccess file in this directory with similar content. For whatever reason the original .htaccess file got removed by my hoster (Ionos). After re-uploading the original baikal release .zip with all the files everything was working again

@stemy2
Copy link
Author

stemy2 commented Jan 7, 2025

Personally, i on my own selfhosted server, so it can't have been deleted by anybody.

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

2 participants