[jcifs] RE: Quick question about the username field.
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Wed Oct 16 15:41:08 EST 2002
> -----Original Message-----
> From: Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> Sent: Wednesday, October 16, 2002 1:37 AM
> To: Allen, Michael B (RSCH)
> Cc: jcifs at lists.samba.org
> Subject: Re: Quick question about the username field.
> On Wed, Oct 16, 2002 at 12:53:01AM -0400, Allen, Michael B (RSCH) wrote:
> > You mean just on the wire.
> Yeah. In the SessionSetupAndX.
> > Usernames are case insensitive but Win9x requires uppercase.
> So usernames *are* case-sensitive under W/9x. That's got to be true in
> pass-through auth mode only. It's not an issue with share-mode
> authentication (which is what W/9x defaults to if there's no DC). Testing
> here showed that case wasn't important, but then the username really isn't
> important at all with share-level security.
So Win9x didn't care about lower case? Maybe it wasn't the username and I just
upcased that for some other reason. It might be the share name in the
SMB_COM_TREE_CONNECT_ANDX. If usernames don't need to be uppercase
to support all platforms then I don't think we should be doing that.
> The thing is, I didn't see smbclient up-case the username ever. I may
> have to dig into the code, though. I have this vague memory of Jeremy
> complaining about having to retry connections because Windows was
> inconsistent about something like this.
> > That's why we unconditionally upcase internally. There might be a
> > benifit to suppying usernames in the original case. If you find one
> > please let me know.
> On a Unix system, crh and CRH and cRh may not be the same. I'm not sure,
> though. I've never tried it but I vaguely recall that older Unixes would
> count them all equivalent so that very old terminals that only did
> upper-case (yes, there were such things) would still be usable.
> Just FYI, in my testing against a Samba server (running with share
> level security and forcing plaintext passwords):
> - smbclient left both username and password lower-case.
> - jCIFS up-cased only the username.
> - Win/95 upcased both username and password.
> Chridz -)-----
> 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