I have a php form that I want to distribute with the current name in a valid Microsoft Active Directory name

I have a simple intranet form where a user has to enter information to request a time or other for use by other internal companies.

I would like to propagate a name field with the current Real name that registers with Microsoft Active Directory. The user must log into their computer. Is there a way to pull this real name with some kind of php request?

thank

+2


source to share


2 answers


Not automatic based on current username, but definitely. A tool to use if you're trying to write PHP code to access / modify Active Directory information is the adLDAP library .



Back to what (I believe) your real question is, being able to request information based on NTLM authentication, you can see this article: Accessing secure NTLM resources with PHP

+1


source


So, to be clear, there is no way for the browser or php to access the current logged in Real Name user from MS AD? The user sits in their chair, logs in using their real name, gets access to the intranet / server and all the resources they need, but I can't get access to the already logged in user information without running something like LDAP?



Checking the resources you listed ... Thanks for the help

+1


source







All Articles