[jcifs] Upper-casing the username and password.

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Mon Nov 11 11:33:43 EST 2002

> -----Original Message-----
> From:	Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> Sent:	Sunday, November 10, 2002 3:17 PM
> To:	jcifs at samba.org
> Subject:	[jcifs] Upper-casing the username and password.
> Mike, et. al.,
> No further news on whether the username should be upcased in the
	You could test by removing the toUpperCase on line 109 in

> SESSION_SETUP_ANDX but I found this in the smbclient(1) man page:
>               Note:  Some servers (including OS/2 and Windows for
>               Workgroups) insist on an uppercase password. Lower
>               case  or  mixed  case  passwords may be rejected by
>               these servers.
> So that's why W/9x up-cases plaintext passwords.  jCIFS only speaks the
> NT LM 0.12 dialect, however, so we can't talk to those older systems
> anyway.  That means that it probably doesn't matter.  The SNIA doc uses
> the name "CaseInsensitivePassword" for the ANSI password field, which
> suggests that, in plaintext mode, it doesn't matter whether the password
> is upcased or not.  The server will do a case-insensitive comparison to
> see if it's valid.  That's all guess-work, mind you, but as theories go
> it seems to be holding up.
	In NT+ passwords are case sensitive.

> Chris -)-----
> -- 
> Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
> jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
> ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
> OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org

More information about the jcifs mailing list