Hello,<br><br>I&#39;m using jcifs in an application to read files on Windows shares.<br>I had to use pre-authentication because without it I got occasional SmbAuthExceptions.<br>My code looks something like this:<br>        System.setProperty(&quot;jcifs.smb.client.domain&quot;, domain);<br>
        System.setProperty(&quot;jcifs.smb.client.username&quot;, user);<br>        System.setProperty(&quot;jcifs.smb.client.password&quot;, pw);<br>        SmbFile smbFile = new SmbFile(&quot;smb://server/share/&quot;);<br>
        .....<br><br>which works okay.<br>But sometimes I have to switch user credentials to access other shares.<br>Just setting the system properties again does not work since they seem to be cached somewhere.<br><br>So how do I reset the pre-authentication credentials?<br>
<br>Is there another way to use pre-authentication without using system properties?<br><br>Thanks in advance, bye,<br>Marko<br><br clear="all"><br>-- <br>exthex GmbH - explore the excellence<br>Marko Mocnik<br>Software Engineer<br>
<br>Göstinger Straße 213<br>A-8051 Graz<br>phone: +43 316 269 898-0<br>mobile:+43 676 898 464 100<br>fax:   +43 316 269 898 269<br><a href="http://www.exthex.com">http://www.exthex.com</a><br>- - - - - - - - - - - - - - -<br>
<br>be e-nnovative, be excellent!<br><br>- - - - - - - - - - - - - - -<br>The informations in this message serve only for purposes of information, must be kept strictly confidential and are intended solely for the addressee. The sender does not make any legally binding statements via e-mail. If the recipient of this message is not the addressee, one of his employees or his authorized representative, he gets hereby notified that the content of the message may not be used, forwarded or reproduced. If you have received this message erroneously, please notify the sender immediately and delete the message from your system!<br>
- - - - - - - - - - - - - -<br>Die Informationen in dieser Nachricht dienen ausschließlich Informationszwecken, sind vertraulich und ausschließlich für den Adressaten bestimmt. Der Absender äußert keine rechtsgeschäftlichen Erklärungen via E-Mail. Der Empfänger dieser Nachricht, der nicht der Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmächtigter ist, wird hiermit davon in Kenntnis gesetzt, dass er deren Inhalt nicht verwenden, weitergeben oder reproduzieren darf. Sollten sie diese Nachricht irrtümlicherweise erhalten haben, benachrichtigen sie bitte den Absender  unverzüglich und löschen sie die Nachricht von Ihrem System!<br>
<br>