# remote user

- Thread: https://externals.io/message/8028
- Original archive: https://news-web.php.net/php.internals/8028
- Started by david on 2004-02-20T20:22:45+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8028 — david — 2004-02-20T20:22:45+00:00

URL: https://externals.io/message/8028#8028

Hello!

I am attempting to discover the remote user for an INTRAnet site, but cannot
see how to do this cleanly.

I believe all I need is the user ID that logged in; when they log into their
worksatation, that is good enough for this intranet set, and I am willing to
believe who they say they are. I would like them to be automatically logged
into the site using their ID.

But the problem comes when I try to get the remote user ID. I realize that I
can use something like mod_auth_sspi, but that authenticates against the web
server, which in this case is in the DMZ and ignorant of all other users.
Modules for Perl exist for this exact purpsose, but because of my
environment (100% Windows save the Apache webserver), I cannot get them to
work, either.

I saw a brilliant hack that dug the user name out of NetBios in PHP, but
naturally, NetBios is turned off.

It seems that no matter what direction I go, the door is closed. What is
really frustrating is that it IIS does this out of the box!

Thank you for any pointers!
david

The environment is:
Server: Apache/2.0.48 (Win32) mod_perl/1.99_12 Perl/v5.8.3 mod_ssl/2.0.48
OpenSSL/0.9.7c. Clients are Windows Workstations.

---

## #8031 — Alan Knowles — 2004-02-21T01:03:15+00:00

URL: https://externals.io/message/8028#8031 · In reply to: #8028

please ask questions like this on pear-general

(login.bat)
iexplorer.exe http://mysite/login.php?username=%LOGINNAME%
.. store the IP in the database and javascript close the window...

Regards
Alan


david wrote:
> Hello!
> 
> I am attempting to discover the remote user for an INTRAnet site, but cannot
> see how to do this cleanly.
> 
> I believe all I need is the user ID that logged in; when they log into their
> worksatation, that is good enough for this intranet set, and I am willing to
> believe who they say they are. I would like them to be automatically logged
> into the site using their ID.
> 
> But the problem comes when I try to get the remote user ID. I realize that I
> can use something like mod_auth_sspi, but that authenticates against the web
> server, which in this case is in the DMZ and ignorant of all other users.
> Modules for Perl exist for this exact purpsose, but because of my
> environment (100% Windows save the Apache webserver), I cannot get them to
> work, either.
> 
> I saw a brilliant hack that dug the user name out of NetBios in PHP, but
> naturally, NetBios is turned off.
> 
> It seems that no matter what direction I go, the door is closed. What is
> really frustrating is that it IIS does this out of the box!
> 
> Thank you for any pointers!
> david
> 
> The environment is:
> Server: Apache/2.0.48 (Win32) mod_perl/1.99_12 Perl/v5.8.3 mod_ssl/2.0.48
> OpenSSL/0.9.7c. Clients are Windows Workstations.
> 


-- 
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com
