[jcifs] Account Locking
Michael B Allen
ioplex at gmail.com
Fri Apr 9 09:22:30 MDT 2010
Hi Rick,
I have added your fix to the TODO list. I'm not sure when it will make
it in because it's a non-trivial change and I don't have much Free
time anymore. But your diagnosis and fix sound good.
Thanks for the feedback,
Mike
--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/
On Fri, Apr 9, 2010 at 10:14 AM, Rick Poleshuck <RickPoleshuck at gmail.com> wrote:
> There is a problem with SmbFile.connect() when the target has more than one IP
> address and the target implements account locking on repetitive Auth Exceptions.
> I have fixed the problem in my copy of the source.
>
> public void connect() throws IOException {
> SmbTransport trans;
> SmbSession ssn;
> UniAddress addr;
>
> if( isConnected() ) {
> return;
> }
>
> getUncPath0();
> getFirstAddress();
> for ( ;; ) {
> try {
> doConnect();
> return;
> } catch(SmbAuthException sae) {
> throw sae; // Fail on first Auth exception, otherwise account could get locked
> } catch(SmbException se) {
> if (getNextAddress() == null)
> throw se;
> if (log.level >= 3)
> se.printStackTrace(log);
> }
> }
> }
>
>
More information about the jCIFS
mailing list