Developed a small project on the intranet of php. Powered by apache. You need to know which AD user made the submit form. How to make the variable $ _SERVER ['auth_user'] get the name of the logged in user?
In general, both options offered here are not rolled out ... :( In the first case, because the server is running on Linux, vbscript does not roll. The second option is to access LDAP. Here you will most likely not be able to get the login user name, because LDAP in theory, this is simply not intended. See the comments below http://serverfault.com/questions/180918/find-users-currently-logged-in-using-ldap
Instead, you can configure apache authorization in AD via LDAP. Then the domain user name gets into the PHP_AUTH_USER variable. The truth here is also a nuance. Currently, only opaque basic authorization is implemented (the simplest option), i.e. with login and password. How will it be with transparent - it is not yet clear ...