Fearpig Posted May 20, 2008 Share Posted May 20, 2008 Hi Guys, Can someone advise me on how to capture an Active Directory username? I have an intranet form and I want to capture who submits it without them having to log-on. The form doesn't need to be secure but if there is an issue I want to be able to easily track who submitted the form. I've had a look at... getenv('REMOTE_IDENT'); getenv('REMOTE_USER'); But they both seem to refer to already secured pages, unless I've got it back to front! I would appreciate any help as this has been bugging me for days and is possible the last step before this project can go live. ??? Thanks in advance for your help. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted May 20, 2008 Share Posted May 20, 2008 So, are you referring to the username that is logged into Windows? You can't get that with PHP via a Browser. You could have them login on the site with their AD user/pass and check the credentials against the AD server with the LDAP functions in PHP though. Quote Link to comment Share on other sites More sharing options...
Fearpig Posted May 20, 2008 Author Share Posted May 20, 2008 Thanks rhodesa, I think I'll just set up a drop-down box where they can select who is filling out the form. Seems a cop-out though! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.