Re: Intermittent issues. Getting the error jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
"Chakravarthy, Haragopal" <[email protected]>
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <D636425E092870418DDC38AF9051099EBC4BED@S1FLOKYDLEXCH04.AD001.InfoFTPS.COM> |
Mike, Thanks very much, this makes a lot of sense to me. I am not sure what has caused the issue in the first place, but I do have it in my list to catch a more detailed exception and log the full stack trace to figure it out if it happens again. Regards, Hara -----Original Message----- From: Michael B Allen [mailto:[email protected]] Sent: Tuesday, December 20, 2011 8:17 PM To: Chakravarthy, Haragopal Cc: [email protected] Subject: Re: [jcifs] Intermittent issues. Getting the error jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password. On Tue, Dec 20, 2011 at 11:57 AM, Chakravarthy, Haragopal <[email protected]> wrote: > We have been using jcifs in production for a few months now. > > > > We run the code on two JVMs, with it being active on any one node at a time. > This morning, we started seeing the following error on the active node: > > > > jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad > password. > > > > This is not occurring on the other node, though. The codebase and properties > (used in the Config class) are the same on both the nodes. > > > > For now, we have the code running on the node where there is no error. > > > > What could be causing this issue? > > > > Assuming the issue is due to corrupted credentials (in the properties file) > is there a way for me to refresh the "Config" without restarting the JVM? Hi Hara, I have no idea what the problem is but I should point out that the Config class should not be used to specify anything that is not static and global. The Config class is only used to set things that a Windows client would set in the registry like timeouts, write sizes and and so on. Meaning you should NOT be specifying credentials using the Config class. The jcifs.smb.client.{domain,username,password} properties are the default credentials that the client should use when it cannot find credentials using any other method. These default credentials are analogous to the Computer account credentials of a Windows client. The proper way to supply credentials is to use the NtlmPasswordAuthentication class and then pass the desired NPA to each SmbFile constructor. Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/ This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.