G'day, am in the process of moving some stuff to a win2k box with IIS 5.0, below is the code I used to pull out usernames for my stuff. All I did was remove the IUSR account's priveledges on the directory, and added the users group instead. I didn't make any changes to the IIS setup at all.
Oh, I was unable to get this working on NT4 with IIS 4, so developed it all on a linux box running apache, however the boss cracked a shit and is making me move it all over to the 2k box instead 🙂
hope this helps some.
<html>
<head>
<title>Test</title>
</head>
<body>
<?php $username = str_replace("DOMAIN\\\\", "", $_SERVER['REMOTE_USER']); ?>
Hello <?php printf("$username"); ?>, and welcome!
</body>
</html>