[jcifs] Hmmm... one more query about passwords.

Christopher R. Hertel crh at ubiqx.mn.org
Mon Nov 11 14:25:30 EST 2002

"Allen, Michael B (RSCH)" wrote:
> > -----Original Message-----
> > From: Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> > Sent: Sunday, November 10, 2002 3:23 PM
> > To:   jCIFS
> > Subject:      [jcifs] Hmmm... one more query about passwords.
> >
> > Looking at encrypted passwords, I note that smbclient does add a nul
> > padding byte following the CaseSensitivePassword field (Ethereal
> > calls this the Unicode Password).  This nul byte aligns the rest
> > of the message (I don't know why that's needed, but it might be a
> > Unicode thing).
> >
> > The SNIA doc says (on pg. 54):
> >
> >   UCHAR Reserved2;    Present if Unicode negotiated to even byte
> >                       boundary
> >
> > Any reason jCIFS leaves this out?
> >
>         No. I was unaware of this rule. But I am aware of some
>	  variation in this field.
>         I'll look at putting the appropriate padding in as if it were
>         a string.

It's not a hard and fast rule.  I asked because you often have really good
answers when we're not in sync with the SNIA doc.  In the limited testing
I've been able to do I also see a lot of variation.  Smbclient seems to
include that byte, but I'm not sure yet about how Windows does it.

> >   Is this related to the problem that the
> > Novell folks had?
> >
>         No. But I don't remember the Novell problem exactly. I think
>         there were a couple of problems with Novell.

I remember something about padding... I just don't remember the details.

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