[jcifs] Password characters

Michael B Allen ioplex at gmail.com
Fri Mar 20 15:50:58 GMT 2009

On Fri, Mar 20, 2009 at 5:04 AM, Karel Vervaeke <karel at outerthought.org> wrote:
> Hi, quick question about jcifs (version 1.1.11 - I know it's getting a bit old)
> One of our users used the password “WdIdwm1n?” and couldn’t login. His
> password has now changed and NTLM works fine.
> I suspect the question mark has something to do with it - are there
> any known problems with specific characters in passwords?

Not really. Passwords can contain any characters including Unicode. It
should work. In fact I just tried it with the latest 1.2 and
"testpass?" worked fine.

> Here's how we do the authentication:
>        NtlmPasswordAuthentication mycreds = new
> NtlmPasswordAuthentication(domain, credentials.getLogin(),
> credentials.getPassword());

Look at the return value of getPassword() here to make sure the ? made
it to this point unmolested.


Michael B Allen
Java Active Directory Integration

More information about the jcifs mailing list