$_SERVER['LOGON_USER'] equivalent on Linux

Asked

Viewed 51 times

0

In the company where I work, there was an ISS-based PHP5 server, however it is migrating to another Debian-based Apache server with PHP7.0.

I enabled the errors of the new server, and I see that I am having problems $_SERVER[LOGON_USER].

On the old server, this variable was used to get the login information of the windows user. Now that they have migrated from server, see the result of phpinfo(), I saw that this variable does not exist on the new server.

Is there another way to get this information with some other global variable?

  • Have you looked at all the environment variables in the phpinfo carefully to see if any fit? And does it make any difference to the server user in your application? (There is no login that can be used instead?)

  • Unfortunately I need to validate the user with the account information logged in to the workstation to see the access levels. The access information is on a base of its own, but I can’t ask for another form of access to the portals besides the login on the machine.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.