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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.