
Hi, here is some additional information : - I have no change in my paster.log with my current galaxy.conf file. - If I force the connexion with a user (with a RequestHeader set REMOTE_USER "<username>" in galaxy.conf), it works. My galaxy instance open on my user session, and I get a "galaxy.web.framework.webapp WARNING 2015-10-22 10:37:19,762 User logged in as '<username>@example.fr' externally, but has a cookie as '@example.fr' invalidating session" in the paster.log. Is it a syntax problem in my galaxy.conf file ? F.T 2015-10-21 12:11 GMT+02:00 Floreline TOUCHARD <floreline.touchard@gmail.com> :
Hi,
I've got an issue with my external authentication configuration. I use Apache and the mod_perl
modules (AuthenNIS + AuthzNIS + Net-NIS) to authenticate to galaxy with NIS accounts.
I have the authentication form when I try to access galaxy web page. But after a successful authentication it seems that the REMOTE_USER variable is not passed to my galaxy instance. I'm connected under "@ example.org" regardless of the authentication account. That's why I think the REMOTE_USER passed to Galaxy is not 'null' but empty.
I tested the value of the variable with the following php script:
<?PHP foreach($_SERVER as $key_name => $key_value) { print $key_name . " = " . $key_value . "<br>";
}
?>
I've got a REMOTE_USER et HTTP_REMOTE_USER with a username value.
I don't understand where my problem lies.
Here is my galaxy.conf file :
Listen 2208
<VirtualHost *:2208>
RewriteEngine on DocumentRoot "/path/to/static"
<Directory "/path/to/static">
Options +Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all
AuthType Basic AuthName "Authentifiez vous" PerlAuthenHandler Apache2::AuthenNIS PerlAuthzHandler Apache2::AuthzNIS PerlSetVar AllowAlternateAuth no require valid-user
</Directory>
RewriteEngine on RewriteRule . - [E=RU:%{LA-U:REMOTE_USER}] RequestHeader set REMOTE_USER %{RU}e
RewriteRule ^/galaxy$ /galaxy/ [R] RewriteRule ^/static/style/(.*) /path/to/static/june_2007_style/blue/$1 [L] RewriteRule ^/static/scripts/(.*) /softhpc/galaxy/test/galaxy-master/static/scripts/packed/$1
[L] RewriteRule ^/static/(.*) /path/to/static/$1 [L] RewriteRule ^/favicon.ico /path/to/static/favicon.ico [L] RewriteRule ^/robots.txt /path/to/static/robots.txt [L] RewriteRule ^(.*) http://localhost:2209$1 [P]
</VirtualHost>
Thanks in advance !
F.T