[jcifs] he requested resource is not available

Rob Meijer static at xs4all.nl
Fri Jan 31 03:58:56 EST 2003


Hi everyone,

I've been playing all days with jcifs, but i keep getting what seem to be
authentication errors
if i goto http://hostname:8180/NetworkExplorer i get a list of workgroups
and domain
however, when i click on one of these workgroups and domains i get :

type Status report

message /FINANCE/

description The requested resource (/FINANCE/) is not available.

What i want is relatively simple.
All the users that come to this webserver only need access to 1 workgroup,
FINANCE, which is a samba/cifs server on this same server.
Then i want user to authenticate against samba.
here are the relevant parts of the config files
web.xml


   <filter>
        <filter-name>NTLM HTTP Authentication Filter</filter-name>
        <filter-class>jcifs.http.NtlmHttpFilter</filter-class>

        <init-param>
            <param-name>jcifs.http.domainController</param-name>
            <param-value>hostname</param-value>
        </init-param>

        <init-param>
            <param-name>jcifs.smb.client.domain</param-name>
            <param-value>FINANCE</param-value>
        </init-param>
        <init-param>
            <param-name>jcifs.netbios.wins</param-name>
            <param-value>hostname</param-value>
        </init-param>
</filter>

    <servlet>
        <servlet-name>NetworkExplorer</servlet-name>
        <servlet-class>jcifs.http.NetworkExplorer</servlet-class>

        <init-param>
            <param-name>jcifs.smb.client.domain</param-name>
            <param-value>FINANCE</param-value>
        </init-param>
        <init-param>
            <param-name>jcifs.smb.client.username</param-name>
            <param-value>username</param-value>
        </init-param>
        <init-param>
            <param-name>jcifs.smb.client.password</param-name>
            <param-value>password</param-value>
        </init-param>
        <init-param>
            <param-name>jcifs.netbios.baddr</param-name>
            <param-value>hostname</param-value>
        </init-param>
    </servlet>


smb.conf

[global]
   workgroup = FINANCE
   encrypt passwords = Yes
   security = user
   domain logons = Yes
   load printers = No
   lock directory = /var/lock
   wins support = Yes

[NET]
   path = /home/net
   read only = No
   public = Yes
   guest ok = No
   writeable = Yes
   valid users= username,username,username
   strict locking = Yes
   shares modes = Yes

I'm using jcifs 0.7.1, tomcat 4.1.18,and samba 3.0a20


Can anyone offer suggestions how to get this working?




More information about the jcifs mailing list