I just recently submitted a patch that will display all the environment variables being passed to Galaxy in pastor.log.  That should help you determine if the variables are set and to what.  


Please excuse any typos -- Sent from my iPhone

On Oct 21, 2015, at 6:11 AM, Floreline TOUCHARD <floreline.touchard@gmail.com> wrote:

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

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
 https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
 http://galaxyproject.org/search/mailinglists/