PDA

View Full Version : Apache & PHP_AUTH_USER


rynox
08-21-2003, 12:26 AM
Got a little problem with PHP_AUTH_USER, running Apache 1.3, PHP 4.2? on Netware. Corporate Intranet site.

I have a home page /index.php that does not require a login, so to get the user to log in, I link them to /notanon/main/index.php which prompts for an NDS login (because the folder is not set to allow anonymous access, uses Apache NDS module). The only thing the /notanon/main/index.php file does is redirect back to the /index.php. The problem is, once I redirect back to /index.php, Apache is not sending the PHP_AUTH_USER server variable to the client.

The strange thing is, when I test with a .php file in the /notanon/main/ directory or even the /notanon/ directory the PHP_AUTH_USER variable is available, just not from the document root.

Any ideas? I'm pulling my hair out here.

rynðx

"We often use strong language not to express powerful emotion, but rather to evoke it in us." Eric Hoffer

rynox
08-22-2003, 11:55 PM
I take it no one else has any ideas on this either. It's probably a bug. Novell's Apache/PHP is still in development. :cool: As a workaround, I'm doing an LDAP query against one of our eDirectory servers and storing the user name in a session variable.

I'm considering some sort of password caching table in MySQL to reduce eDirectory activity. I don't want to have plain-text passwords in MySQL and ROT-13 is seems sort of :rolleyes: , so... anyone have any ideas on how to keep the passwords somewhat encrypted, scrambled, anything?

rynðx

"while Gadgets murder squack and add,
the cult of Same is all the chic;" - ee cummings