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
OwnCloud login impossible when HTTP_AUTH is set #4220
Comments
Update: I revert my changes for debugging, logged in to the http auth and tried to login into Owncloud with "remember me" set. This results in a redirection loop. |
Basically using the basic auth credential to log in a user is a feature of owncloud, but I can confirm this issue. I had the same problem with a customer that used basic auth to protect his development system. It was not a big issue and I added a conditional hack like yours that would only unset PHP_AUTH_USER and PHP_AUTH_PW when it would match the basic auth credentials. @karlitschek @icewind1991 opinions? |
Thanks for the tip, unsetting PHP_AUTH_USER in lib/base.php did the job. |
@butonic Add an environment variable that allows disabling HTTP auth, so it can be used in the webserver only? |
@bantu no need for you to work on this - we have some developments already going on in this area. |
@DeepDiver1975 IIRC you fixed it, didn't you? |
actually not - I missunderstood the original reporter - sorry |
closing this. This is the intended behavior of ownCloud. |
When OwnCloud is used in a httpauth protected folder, it isn't possible to login via webform anymore.
In our setup, we want to handle httpauth independent from OwnCloud.
We tried to workaround this issue by resetting the corresponding fields in $_SERVER by adding the following to the top of index.php:
This made it possible to log in independent from httpauth, but unfortunately as soon as I navigate from the main page, I get back to the login prompt.
The text was updated successfully, but these errors were encountered: