Jump to content

Capture AD Username


Fearpig

Recommended Posts

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.  ;D

Link to comment
https://forums.phpfreaks.com/topic/106427-capture-ad-username/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/106427-capture-ad-username/#findComment-545548
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.