I found this code, it says it should work, but for me it returns the value: 0040, whereas it should return my name, as the person logged into this computer.
Code:
<?php
/*
Getting netbios info
CopyLeft 2002 (GNU GPL V2) by polo
*/
error_reporting(E_ALL);
/* get the ip of the client */
if (isset($_SERVER
["HTTP_X_FORWARDED_FOR"]))
Thanks, but this is not what I wanted. I actually want to get the WINDOWS NT login.
These are username and password to start a computer in a company network for example.
In other words, the username (NT Login) is stored temporarily on the computer, and not in any Database
I am struggling since weeks now to find the way to get the NT login of the user connected to a page. We are a group using an intranet with Windows NT and we use PHP for some applications.
Question is what is the way to get in a variable the NT login, to create a session or a cookie for example, without having to ask for login data again, since the user is already logged in?
Leave a comment: