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

swapnil rawat swapsid at gmail.com
Wed Oct 1 06:40:26 GMT 2008


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
> *************************************
>


More information about the jcifs mailing list