[prog] Getting Remote_User .htaccess (not working)

Gareth Anderson somecsstudent at gmail.com
Fri Nov 19 16:18:05 EST 2004


Hi everyone,

I have found the bug, I feel incredibly stupid.

Apologies for bugging you....

Guess what?

This works correctly:
if (isset($_POST['csse']))

BUT THIS IS WRONG:

$_SERVER['REMOTE_USER'] 

HOWEVER this is right

$_SERVER[REMOTE_USER] 

Sorry!!! I swear I've seen $_SERVER['xxx'] used before!

Regards,
Gareth

And with the final .htaccess this works:

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 apache 1.3.x, I don't care how, the module works like that AFAIK.

Everything should work now!!!!!


More information about the Programming mailing list