Ask a Question related to PHP Development, Design and Development.
-
Johan den Boer #1
retrieve windows username in php
Hi,
I am new to php. Is it possible to find out the windows user name in php ?
Logon in windows domain with 'user1'. I want to get the username in php in
my example : user1.
How do you that ?
thanks
Johan den Boer Guest
-
Obtaining Windows Username
Hey all, Once again, I find myself requiring your expertise, so I'll say Thank in advance. I was going to try using Kerberos (thanks for the inf... -
windows username
Hi! I'm a real beginner. Sorry if I ask some stuġid questions :-) My problem is: I have more users on my computer. The system is windows 2000/... -
Get Windows username on Intranet
Hi all, My Intranet currently runs fine (on a Linux-based server, with Apache, MySQL and PHP). The mail-form works splendid, except that I like... -
Getting windows username
I am developing an intranet and was wondering, when a user logs on is there a way to get the username of the windows account in asp.net. I have... -
Antwort: windows username
Hi, try to read what "perldoc -f stat" tells you! As being myself a beginner, I haven't tried it yet, just read about it. HTH! Best regards... -
Randell D. #2
Re: retrieve windows username in php
"Johan den Boer" <me@knoware.nl> wrote in message
news:vq3lg63h1gkk5c@corp.supernews.com...Short answer = NO> Hi,
>
> I am new to php. Is it possible to find out the windows user name in php ?
>
> Logon in windows domain with 'user1'. I want to get the username in php in
> my example : user1.
>
> How do you that ?
>
> thanks
>
>
Long answer: PHP is a server side language - it will read headers and form
data sent by the client browser, but it cannot request the data. I don't
believe Javascript has access to this information either but I believe
ActiveX or perhaps ASP *might* give you this information...
To get a rough idea of what information PHP does read from a client web
browser, write the following simple script in to a file and visit it with
your web browser
<?
phpinfo();
?>
Note: Different browsers deliver different headers so you cannot rely that
all the information you see in phpinfo() will be avialable every time...
Randell D. Guest
-
Daniel Bengs #3
Re: retrieve windows username in php
Johan den Boer wrote:
If you mean client-side then no, not with PHP. That kind of information> Hi,
>
> I am new to php. Is it possible to find out the windows user name in php ?
>
> Logon in windows domain with 'user1'. I want to get the username in php in
> my example : user1.
>
> How do you that ?
is not transmitted with the HTTP headers.
And I don't know what it would good for on the server-side, since it
would most probably be the same all the time.
Daniel Bengs Guest
-
Jon Kraft #4
Re: retrieve windows username in php
Johan den Boer <me@knoware.nl> wrote:
Hi Johan,> I am new to php. Is it possible to find out the windows user name in php ?
>
> Logon in windows domain with 'user1'. I want to get the username in php in
> my example : user1.
If the web server is in the same domain, i.e. intranet, try echoing
$_SERVER['LOGON_USER'] and $_SERVER['AUTH_USER']. Might only work with IE
though.
A good start is generally having a phpinfo() running to check what headers &
information the browser sends to the server.
JOn
Jon Kraft Guest
-
Kevin Thorpe #5
Re: retrieve windows username in php
Johan den Boer wrote:
To do this you need to add an extra module to Apache (assuming Apache> Hi,
>
> I am new to php. Is it possible to find out the windows user name in php ?
>
> Logon in windows domain with 'user1'. I want to get the username in php in
> my example : user1.
not IIS). This will do a lookup on the domain controller to work out who
the user is.
[url]http://modntlm.sourceforge.net/[/url]
Kevin Thorpe Guest
-
Alan Little #6
Re: retrieve windows username in php
Carved in mystic runes upon the very living rock, the last words of
Johan den Boer of comp.lang.php make plain:
You might have more success asking in a Windows and/or IIS forum, as to how> Logon in windows domain with 'user1'. I want to get the username in
> php in my example : user1.
you can get the user name into the server environment.
--
Alan Little
Phorm PHP Form Processor
[url]http://www.phorm.com/[/url]
Alan Little Guest
-
Eto Demerzel #7
Re: retrieve windows username in php
In article <T%mob.229825$pl3.105712@pd7tw3no>, Randell D.'s output was...
Snip>
>
> Long answer: PHP is a server side language - it will read headers and form
> data sent by the client browser, but it cannot request the data. I don't
> believe Javascript has access to this information either but I believe
> ActiveX or perhaps ASP *might* give you this information...
Not sure if this is patched yet, but.......
[url]http://www.insecure.org/sploits/NT.NTLM.auto-authentication.html[/url]
may be of some use to you. Plug in a sniffer and see what's happening...
Also, stepping away from PHP, and into some client-side scripting:
[url]http://beta.experts-exchange.com/Web/Web_Languages/Q_20717958.html[/url]
might help you out.
Eto Demerzel Guest



Reply With Quote

