[prog] Getting Remote_User .htaccess (not working)

Gareth Anderson somecsstudent at gmail.com
Thu Nov 18 19:35:57 EST 2004


Hi everyone,

I'm having more trouble...

This is my .htaccess file (I got this installed on the yoyo server
because others didn't work):

"
order deny,allow
deny from all
AuthType Basic
AuthName "Monash Directory Service (authcate)"
AuthLDAPUrl ldap://directory.monash.edu.au/o=Monash University, c=au
require valid-user
satisfy any
"

Its called mod_auth_ldap
http://nona.net/software/ldap/compile/

Anyway, I cannot get the $REMOTE_USER variable in the directory where
the .htaccess is, authenticaation takes place and it works fine...

I've tried everything, any ideas?

print "going to run command with $full_name and $csse and $anonymous and $REMOT
E_USER or $_SERVER['LOGON_USER'] or $PHP_AUTH_USER or $_SERVER['REMOTE_USER'] or
 $_SERVER['PHP_AUTH_USER'] or $_SERVER['REMOTE_USER'] or $_ENV['REMOTE_USER']";

I don't get anything for those remote user variables.

I'm so confused (and lost), I tried LDAP authentication, but I didn't
have enough understanding to get the basic authentication (all I want
is to check the user is valid thats all!), and to get their
username!!!!

Please help...

Regards,
Gareth


More information about the Programming mailing list