Doing Network Authentication

hi all,

i would like to do this in my servelt.

1. User tries a web page (http://<machine name>:<port>/webapp/<servlet>

2. Servlet shows a pop up in the web page asking the user to authenticate himself

3. user gives domain name\user name followed by password

4. authentication happens against the domain and not from database or some stored file like tomcat user file

5. after authentication succeeds he is taken to the proper page.

i have been repeatedly getting info only to do base or form based authentication i would like to do domain level authentication.

is there a setting that can be done in the web.xml so that it authenticates against the domain and not the file.

please help

regards,

Gowri Shankar

[799 byte] By [sgshankara] at [2007-11-27 9:06:21]
# 1
Like I mentioned in your other post, Tomcat doesn't support domain authentication; I spent 5 weeks looking into authentication and the best thing I've come up with is to use Apache with Tomcat and use a module for domain authentication with Apache.
nogoodatcodinga at 2007-7-12 21:41:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
ya correct tomact does not provide what i am looking for.can you help me how to implement. i can change the application server if required.can u throw some light on that?
sgshankara at 2007-7-12 21:41:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
our network has ldap and i can also try to implement LDAP authentication..if that is possible that also should help me out.
sgshankara at 2007-7-12 21:41:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Sorry, I haven't really looked into it that much :D I stopped once I got my JDBCRealm working...maybe someone else will be able to give you some tips...
nogoodatcodinga at 2007-7-12 21:41:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
String name = req.getRemoteUser(); is not giving any value in my servlet :( what should be done?
sgshankara at 2007-7-12 21:41:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
http://www.jguru.com/faq/view.jsp?EID=842151There seem to be some workarounds here; maybe this will help...
nogoodatcodinga at 2007-7-12 21:41:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...