Re: find the NT account name with tomcat for IIS

2001-07-12 Thread Tim O'Neil

At 08:34 AM 7/12/2001, you wrote:
hi,

i would like to get the NT account name of the person browsing the web page.
i'm using jsp pages with tomcat for IIS.

does anyone know how can i do it?

You'll need to write a nt domain auth client (native code) and a jni
driver. Its not going to be a simple matter, but people have done
it, I used to work for a web portal vendor and that product did it.
I think there's a third party product out there too somewhere that
will do it for you.




RE: find the NT account name with tomcat for IIS

2001-07-12 Thread Jann VanOver

Once you are properly serving through IIS, you can go to the IIS
administration panel and set security for a directory or a page.  How you
set it is different with each version of Windows  IIS so I can't tell you
exactly how to do that.  

On Win2K, here's what I do: Start=Settings=Control Panel=Administrative
Tools=Internet Services Manager.  Right-click on the virtual server you
want to protect (its name will match your Tomcat context name) and select
Properties.  Look for the Security properties.  Un-check Allow Anonymous
That's it.  Security is now enabled for that context.

What this does, is it causes IIS to issue the NT Challenge/response (did I
say that right?) and if the user isn't logged in to a valid domain, it pops
up the username/password box.   Your Tomcat programs read this as 
request.getRemoteUser()

-Original Message-
From: Georges Boutros [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 8:35 AM
To: Tomcat-User (E-mail)
Subject: find the NT account name with tomcat for IIS


hi,

i would like to get the NT account name of the person browsing the web page.
i'm using jsp pages with tomcat for IIS.

does anyone know how can i do it?

thanks
Georges