|
Re: how to bypass authentication in ntlmhttpfilter?: msg#00037network.samba.java
Hi Jim, the webdisk uses this: (from Presentation.java) ... String userAgent = request.getHeader("User-Agent").toLowerCase(); if (userAgent.indexOf("opera")!=-1 || userAgent.indexOf("konqueror")!=-1 || userAgent.indexOf("safari")!=-1) { showLogin("<br><center><b>NTLM is disabled for Opera / Konqueror / Safari.</b></center>"); return; } response.setHeader("WWW-Authenticate", "NTLM"); response.setHeader("Connection", "close"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); // dirty hack if ntlm is disabled or user cancels the form showLogin("<br><center><b>NTLM seems to be disabled</b></center>"); ... showLogin shows a normal html-form for logging in and the user stays anonymous. The webdisk uses jCIFS, but not ntlmhttpfilter (only some parts of it). http://sourceforge.net/projects/webdisk/ bye Tom Smyth, Jim wrote: Hi, |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | how to bypass authentication in ntlmhttpfilter?: 00037, Smyth, Jim |
|---|---|
| Next by Date: | offline authentication: 00037, Ricardo Trindade |
| Previous by Thread: | how to bypass authentication in ntlmhttpfilter?i: 00037, Smyth, Jim |
| Next by Thread: | RE: how to bypass authentication in ntlmhttpfilter?: 00037, Smyth, Jim |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |