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