jtoland Posted January 23, 2013 Posted January 23, 2013 Hi Guys i am wondering if any of you know how to show the username in php of a logged on computer user this is for a intranet system i am working on so students/staff dont have to login to the system when they are in the school and automaticaly brings there infomation up depending what there username is jtoland
Boredguy Posted January 23, 2013 Posted January 23, 2013 if ($_SERVER["AUTH_USER"] != ""){ $temp = explode("\\",$_SERVER["AUTH_USER"]); echo $temp[1]; } If your running php on a windows box, this will work as long as you have intergrated authentication enabled on the webfolder.
jtoland Posted January 23, 2013 Author Posted January 23, 2013 thanks but i am running the server on linux and its not located in the school i was wondering if there was a way to remotely grab the infomation when a user visits the site jtoland
powdarrmonkey Posted January 24, 2013 Posted January 24, 2013 You can't. It would be a gross information disclosure vulnerability if you could.
SovietRussia Posted March 6, 2013 Posted March 6, 2013 thanks but i am running the server on linux and its not located in the school i was wondering if there was a way to remotely grab the infomation when a user visits the site jtoland Someone has built for Apache a NTLM module which can grab the username, Google for Apache NTLM
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now