[jcifs] Re: jcifs Digest, Vol 69, Issue 14

Asaf Mesika asaf.mesika at gmail.com
Wed Oct 1 11:20:26 GMT 2008


I don't think you have a way of avoiding it.First, the user name and
password you type in the web.xml is what I call a "machine" user. It is only
used to create the session between the web server and the Active Directory.
It's part of a process called SMB Signing. You can read about it in the FAQ.


On Wed, Oct 1, 2008 at 9:40 AM, swapnil rawat <swapsid at gmail.com> wrote:

> HI All,
>      I am new to jcifs . I am asked to achieve SSO in my application
>      I am using jcifs ntlm http authentication protocol.
>      I am successfully able to apply SSO to my application but the
> only problem    is  i have to provide username and password into my
> web.xml file.
>
> How could i achieve SSO without configuring the username and password
> in my web.xml file
> any help is truely appreciated
> Thankyou
>
> On 9/30/08, jcifs-request at lists.samba.org <jcifs-request at lists.samba.org>
> wrote:
> > Send jcifs mailing list submissions to
> >       jcifs at lists.samba.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >       https://lists.samba.org/mailman/listinfo/jcifs
> > or, via email, send a message with subject or body 'help' to
> >       jcifs-request at lists.samba.org
> >
> > You can reach the person managing the list at
> >       jcifs-owner at lists.samba.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of jcifs digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Potential concurrency problem (Ronny Schuetz)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 30 Sep 2008 12:56:13 +0200
> > From: Ronny Schuetz <Usenet.r96 at gishpuppy.com>
> > Subject: [jcifs] Potential concurrency problem
> > To: jcifs at lists.samba.org
> > Message-ID: <gbt0lu.12j8.1 at g4w0449g.houston.hp.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi,
> >
> > jCIFS version is 1.2.19. Just ran into an ArrayIndexOutOfBoundsException
> > in NbtAddress#getWINSAddress(). NbtAddress#NBNS contains 4 entries, Java
> > failed to access index 4.
> >
> > The only reason why the index was incremented to 4 is - as it looks like
> > - that NbtAddress#switchWINS() (at least the part incrementing
> > nbnsIndex) isn't synchronized, i.e. it could happen that it gets
> > incremented to a value outside the array bounds if executed by multiple
> > threads in parallel.
> >
> > This can be verified by using multiple threads calling
> > UniAddress#getByName() in loops in parallel (with
> > jcifs.netbios.cachePolicy set to 0 and all netbios timeouts set 1 to
> > enforce the switching) and replacing the line (NbtAddress#switchWINS()):
> >
> > nbnsIndex = (nbnsIndex + 1) < NBNS.length ? nbnsIndex + 1 : 0;
> >
> > by equivalent code that includes some sleeps at the right place
> >
> > if((nbnsIndex + 1) < NBNS.length)
> > {
> >  try { Thread.sleep(1000); } catch(InterruptedException e) {}
> >  nbnsIndex = nbnsIndex + 1;
> > }
> > else
> > {
> >  try { Thread.sleep(1000); } catch(InterruptedException e) {}
> >  nbnsIndex = 0;
> > }
> >
> > Synchronizing the method NbtAddress#switchWINS() in general or just the
> > line changing the index on the class object seems to help.
> >
> > Best regards,
> > Ronny
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > jcifs mailing list
> > jcifs at lists.samba.org
> > https://lists.samba.org/mailman/listinfo/jcifs
> >
> >
> > End of jcifs Digest, Vol 69, Issue 14
> > *************************************
> >
>
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list