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

Doesn't work... #4

Open
manuel-arguelles opened this issue Aug 23, 2014 · 5 comments
Open

Doesn't work... #4

manuel-arguelles opened this issue Aug 23, 2014 · 5 comments

Comments

@manuel-arguelles
Copy link

It doesn't work and I don't know why, I make a small php script inside public directory to print $_SERVER['REMOTE_USER'] and it prints my user@domain correctly. However, after the http authentication I get redirected to /login?back_url=http%3A%2F%2Fmysite%2Fredmine%2F (login page), the user exist in database (without password)

I haven't been able to find anything on the logs, is there a way to get more logs? I just don't know what is going on... (plugin is listed in the plugins view, configuration is set to use REMOTE_USER (as default))

@manuel-arguelles
Copy link
Author

I forgot to mention the redmine version: 2.4.6

@dkuk
Copy link
Collaborator

dkuk commented Aug 25, 2014

Hello! Don't strongly understand your's problem.
Is the functionality of php script works w|o single_auth plugin?
As you have a back_url param which is equal to default RM page (personal page) why did you expecting to get something other? Why the php script should work in this case?

@manuel-arguelles
Copy link
Author

I mean, what I expected was to be logged in after authenticating my user
via http, instead I get Redmine's login page.

In Redmine's log the user shows as anonymous. The script I made was just to
confirm that my webserver was setting REMOTE_USER variable after
authenticating, and it is.

It looks to be that the plugin is not in effect, and I don't know how to
confirm this, is there a way? It is listed on the plugin section and I can
configure it, but there's nothing clear in the logs.

Is it supposed to work with redmine 2.4.6? Is there anyway to confirm that
the plugin is in use and called from Redmine?
On Aug 24, 2014 8:18 PM, "Danil Kukhlevskiy" [email protected]
wrote:

Hello! Don't strongly understand your's problem.
Is the functionality of php script works w|o single_auth plugin?
As you have a back_url param which is equal to default RM page (personal
page) why did you expecting to get something other? Why the php script
should work in this case?


Reply to this email directly or view it on GitHub
#4 (comment).

@manuel-arguelles
Copy link
Author

This is what I get in the logs when I visit the site: https://gist.github.com/manuel-arguelles/88e6fd10bc756c23e57f

I get the redmine's login page after authenticating with httpd. I suspect that single_auth plugin is not hooked correctly. How can I confirm it?

@manuel-arguelles
Copy link
Author

Hello again,

Sorry for opening this issue, it was my fault, I finally get it working: It seems that the variable (REMOTE_USER) was not been exposed to Ruby, I'm using Apache web server and to get it working I added RequestHeader set REMOTE-USER %{REMOTE_USER}s line to the configuration and changed the variable from REMOTE_USER to HTTP_REMOTE_USER on the plugin.

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