[jcifs] Tomcat Install
Nathan.Zentner at paccoast.com
Wed Apr 9 00:40:55 EST 2003
My problem was that I had a proxy server on. I turned it off in my browser,
but it is prompting me for my username and password. I want it to act
automatically. This can be done right? Maybe I have to change other
Thanks for the help.
Attached is the smallest complete NTLM app possible. You should be able to:
1. Copy the jcifs jar into the shared/lib directory under Tomcat
2. Copy the attached War into the webapps directory under Tomcat
3. Start Tomcat
4. Point IE at "http://server/ntlmtest/index.jsp"
You should see the authenticated user name.
If this doesn't work, the most likely culprit is your IE settings.
Under "Tools -> Internet Options", click on the Security tab. Under "Local
Intranet" (and possibly "Internet" as well), check at the bottom of the list
for the "User Authentication/Logon" setting. This should be set to
logon only in Intranet Zone" or "Automatic logon with current username".
If it is set to "Prompt for user name and password", you should be getting a
login prompt; if it is set to "Anonymous logon", you will get a 401 error
no prompt at all (which sounds like what you are seeing).
> I have implemented you web.xml and get the same result. The application
> always returns a 401 tomcat message. It does not reach my servlet either.
> It is being returned at the filter level.
> Any other Suggestions?
> -----Original Message-----
> Try the attached; there were a couple of problems with the one you had:
> 1. Some of the init-params for the filter were outside the filter section.
> 2. There was no filter mapping specified.
> 3. The filter and filter-mapping sections go before the servlet section
> The first two are definite show-stoppers. Whether the third causes a
> or not depends on whether your container uses a validating parser to
> the web.xml file.
> > To add, I have included my DDF file. The servlet "nathan" is where I
> > testing the functionality. I added all the code that was in the
> > NtlmHttpAuthExample.
> > I wondering if it is because of tomcats response to a 401 status. I
> > delv deeper into the code to see if they catch the 401 response before
> > attach there warning message.
DISCLAIMER: This communication and any files or attachments transmitted with
it may contain information that is copyrighted or confidential and exempt
from disclosure under applicable law. It is intended solely for the use of
the individual or the entity to which it is addressed. If you are not the
intended recipient, you are herby notified that any use, dissemination, or
copying of this communication is strictly prohibited. If you have received
this communication in error, please notify us at once so that we may take
the appropriate action and avoid troubling you further. Thank you for your
cooperation. Contact information: Pacific Coast Building Products
1-916-971-2330 and ask for the e-mail administrator.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs