![]() |
|
|
| Subject:
Get the Users Network Login Name when they access our Intranet
Category: Computers > Programming Asked by: colinparkeroffice-ga List Price: $10.00 |
Posted:
30 Oct 2002 03:18 PST
Expires: 29 Nov 2002 03:18 PST Question ID: 92990 |
We have an extensive Ethernet network. We have a HPUnix Server running Apache Web Page Server. When a user access the site we want to be able to grab his Network Login Name so we can access his details in our Informix back end database. We use tools such a perl for scripting our dynamic web pages, but we have little or no knowledge of Java - just enough to embed Java in our pages (like "bouncing" Text) | |
| |
| |
| |
| |
| |
|
|
| There is no answer at this time. |
|
| Subject:
Re: Get the Users Network Login Name when they access our Intranet
From: iaint-ga on 30 Oct 2002 03:31 PST |
In any HTTP environment the server can only access information about the client system which the client has chosen to send. In other words, there is no way to "grab" the user's network login name (or any other information) without the client having given explicit permission for you to do so. Bear in mind that HTTP was originally envisaged to work across insecure networks such as the internet rather than a trusted intranet environment, and you can see why it would be explicitly disallowed for servers to obtain a remote host's login details! Regards iaint-ga |
| Subject:
Re: Get the Users Network Login Name when they access our Intranet
From: davedave-ga on 30 Oct 2002 07:34 PST |
May not help, but if this was an ASP page on IIS/Win2k, you'd set the
directory security to use "Integrated Windows authentication" and then
do something like...
dim strLoginName
strLoginName = Request.ServerVariables("Auth_User") |
| Subject:
Re: Get the Users Network Login Name when they access our Intranet
From: variable42-ga on 30 Oct 2002 08:37 PST |
Your best bet will probably be to write a client-side ActiveX control to grab the username and pass it as query data as part of a new request, or to use IIS with integrated authentication as davedave-ga pointed out. |
| Subject:
Re: Get the Users Network Login Name when they access our Intranet
From: illiad-ga on 30 Oct 2002 13:06 PST |
I've had this question raised a number of times during design meetings. My answer to the client has always been the same: It is not possible, unless both the client and server are using windows based products. This is because as iaint pointed out, the only information you have access to from scripts running on the server is informtation which the client has sent you. Given that web clients are designed to be sending information all over the internet, it's obviously a good thing that they're not sending people's Network or computer login names along with it. Microsoft, with IIS has a proprietary authentication scheme, which requests the session of the remote computer to be sent, and only allows access if the person is logged into the domain, thus allowing the server to look up the username, though this system does not work unless the client and the server are both IIS/IE. Given that your main userstore is in an Informix database, on the HPUX system, your best course of action here is most likely to write a login system independant of the HTTP authentication system, using cookies to set a session ID - store that in the database, and then look up the user's Information, including login name. this type of system can be designed such that the user will only need to log in once to the Intranet, depending on the cookie expiration time. hth |
| Subject:
Re: Get the Users Network Login Name when they access our Intranet
From: colinparkeroffice-ga on 04 Dec 2002 04:09 PST |
re:- "Request for Question Clarification by mmastrac-ga on 26 Nov 2002 06:59 PST If you're running Windows on the desktop and IE as a browser, you can use something called NTLM authentication for web browsing. This is a challange/response mechanism used by Microsoft to send the username and password through the browser. If you connect to a website running NTLM authentication, your username and password are sent, and are not prompted. If you are running Apache 1.3, install mod_ntlm. I found this by searching for "apache ntlm" on Google. You can get it at: http://modntlm.sourceforge.net/ " Thank you for your assistance in this. We are running version 2.0.4 not 1.3 - will the same patch work, the web site you implies not. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |