[jcifs] Only the first login is successful
Andrew Miller
pulazzo at gmail.com
Tue Dec 6 17:05:34 GMT 2005
I had a similar problem. I don't have time right now for a more
thorough response, but you might want to see the thread from Nov 10th
called "Load balancing required for preauthentication?"
http://lists.samba.org/archive/jcifs/2005-November/005683.html
I don't think anything has changed in the source since that
discussion. You might just try turning on load balancing if it's not
already.
-Andy
On 12/6/05, Mike Bennett <mkb137 at gmail.com> wrote:
> If I put a valid normal user account in those parameters, then no
> login works. If this requires a special user account on the domain
> then I don't think it's viable for my situation, where the app will
> reside on another corporation's server.
>
> Thanks for the suggestion, though.
>
> On 12/6/05, Yannick <yannick at smellyfrog.com> wrote:
> > Hi Mike,
> >
> > You probably need to use pre-authentication. So you need to setup a user
> > account on the domain that you can use to do so, then add the following
> > parameters in your web.xml file:
> >
> > <init-param>
> > <param-name>jcifs.smb.client.username</param-name>
> > <param-value>UserAccountName</param-value>
> > </init-param>
> >
> > <init-param>
> > <param-name>jcifs.smb.client.password</param-name>
> > <param-value>PasswordOfTheUserAccount</param-value>
> > </init-param>
> >
> > Hope this helps
> > Regards
> > Yannick
> >
> > Mike Bennett wrote:
> >
> > >Using a plain jboss-3.2.7 server, I have a web app configured to use
> > >NTLM login through jcifs. Using jcifs-1.2.7.jar or jcifs-1.2.6.jar,
> > >multiple users/browsers cannot log on to the server at the same time.
> > >The first login goes through correctly and the user can access the
> > >app. Any login thereafter (from a different machine, from a different
> > >user, from the same user on the same computer but with a different
> > >browser) fails with no error message just as if the user or password
> > >were invalid. I have not had this problem with jcifs-1.1.8.jar, which
> > >I've been using for quite a while. I was hoping to upgrade to take
> > >advantage of some of the other fixes.
> > >
> > >Is this a configuration problem or something else? My web.xml section
> > >is pretty plain :
> > >
> > ><filter>
> > > <filter-name>NTML HTTP Authentication Filter</filter-name>
> > > <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
> > > <init-param>
> > > <param-name>jcifs.smb.client.domain</param-name>
> > > <param-value>MYDOMAIN</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>jcifs.http.domainController</param-name>
> > > <param-value>mydc</param-value>
> > > </init-param>
> > ></filter>
> > ><filter-mapping>
> > > <filter-name>NTML HTTP Authentication Filter</filter-name>
> > > <url-pattern>/*</url-pattern>
> > ></filter-mapping>
> > >
> > >
> > >
> >
> >
>
More information about the jcifs
mailing list