Hey phpb, I'm a long time lurker/first time poster and I have a few newb questions so hopefully one of the gurus here can help out.
First off, I'm more of a desgin and graphics guy so go easy. But recently I've been tasked with building a PHP Intranet site for my department that will pull the user's Windows/NTLM username (domain authenticated) when a person hits the page and use that as a basis for access to resources on the site, etc.
Currently, I have Apache 2.0.53, PHP5.0.2, Perl Activestate 5.8 and MySQL 4.1 staged on my WinXP Pro sp1 dev machine, but I'm awaiting a server (probably 2003 Ent) from my IT dept to replicate on.
I think I have successfully installed the mod_auth_sspi module (at least without Apache errors), but I need help on which variables to set on my PHP page and how to call them so that I can capture and display the username of the person hitting the page. Any ideas or snippets you guys can suggest for this grossly under-documented feature of mod_auth_sspi?
Thanks in advance!
PS. I forgot to mention that I'm not using any crazy content management twiki or anything like that. I just wanna pull the username, display it on the page (Welcome "username"!), and grant access to the areas where that user/group should have access to.