Setting up JCIFS & Tomcat - Basic setup for a newbie

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting up JCIFS & Tomcat - Basic setup for a newbie

jack-24
Hi,

I am new to JSIFC and believe it is what I am looking for.

What are the basic steps in setting this up to work with Tomcat please?

Of particular interest to me is what do I do on the Tomcat side?

What I have so far is:

1. download and install the jcifs-1.2.7 library in  server/lib

2. Update the  WEB-INF/web.xml....the sample I have from the manual
   at http://jcifs.samba.org/src/docs/ntlmhttpauth.html is:

  <filter>
    <filter-name>NtlmHttpFilter</filter-name>
    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>

    <init-param>
        <param-name>jcifs.smb.client.domain</param-name>
        <param-value>NYC-USERS</param-value>
    </init-param>
    <init-param>
        <param-name>jcifs.netbios.wins</param-name>
        <param-value>10.169.10.77,10.169.10.66</param-value>
    </init-param>
   </filter>

   <filter-mapping>
    <filter-name>NtlmHttpFilter</filter-name>
    <url-pattern>/*</url-pattern>
   </filter-mapping>

3. What else needs to happen at the tomcat config level? It's a new setup.

4. How do I extract the user Id from within the tomcat servlet.

Any pointers to docs appreciated.

Many Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: Setting up JCIFS & Tomcat - Basic setup for a newbie

jack-24
jack <jmdevel <at> yahoo.com> writes:

>
> Hi,
>
....
....
>
> 3. What else needs to happen at the tomcat config level? It's a new setup.
>

I should clafify that the key question for me is do I still need a realm type
entry in the server.xml file for tomcat ?

Same question for authentication type, how do I tell Tomcat "Please
authenticate all users", or is this taken care of ?

many thanks!


> 4. How do I extract the user Id from within the tomcat servlet.
>
> Any pointers to docs appreciated.
>
> Many Thanks!
>
>