[jcifs] jcifs.smb.SmbException: A duplicate name exists on the network

Coppens Benoît (All4IT) Benoit.Coppens at UCB-Group.com
Tue Dec 16 15:25:54 GMT 2008


Hi,
 
I'm using jcifs (1.2.21) for NTLM authentication. Up to now I was using jcifs.netbios.wins to configure the filter.
Our Active Directory team asked me to switch to jcifs.http.domainController and to set its value to a hostname.
 
Since that change I got sometimes a "jcifs.smb.SmbException: A duplicate name exists on the network" exception.
 
FYI, when I display the content of my DNS Resolver Cache, I can see that the hostname set for jcifs.http.domainController corresponds to multiple ip addresses:
 
***********
hostname.com
----------------------------------------
Record Name . . . . . : hostname.com
Record Type . . . . . : 1
Time To Live  . . . . : 3595
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.1.39.12
 

Record Name . . . . . : hostname.com
Record Type . . . . . : 1
Time To Live  . . . . : 3595
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.1.253.2
 

Record Name . . . . . : hostname.com
Record Type . . . . . : 1
Time To Live  . . . . : 3595
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 10.1.249.3
***********
 
Is it a normal behaviour of jcifs?
How is it possible to avoid this exception?
Should I use one of the proposed solution ( http://article.gmane.org/gmane.network.samba.java/6446 <http://article.gmane.org/gmane.network.samba.java/6446>  or http://article.gmane.org/gmane.network.samba.java/4990 <http://article.gmane.org/gmane.network.samba.java/4990>  ) ?
If yes, are these changes compatible with my version of JCIFS (1.2.21)?
 
Thanks a lot,
Benoit

Benoit Coppens • Senior Consultant
UCB <http://www.ucb-group.com/>  - IT Global Medical Information
Chemin du Foriest - 1420 Braine-l'Alleud - Belgium •  (  +32 2 386 25 71 •  7  +32 2 386 32 44 •  *   benoit.coppens at ucb-group.com
All4IT <http://www.all4it.com/> 
Drève Richelle 161 - 1410 Waterloo - Belgium •  (  +32 2 609 51 20 •  7  +32 2 609 51 38 •  *  bcoppens at all4it.com
P  Please consider your environmental responsibility before printing this email!
 
--------------------------------------------------------

Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107)
--------------------------------------------------------
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list