Samba Password Encryption vs. C209

Andrew Edem aedem at kaxis.cx
Fri Jan 26 00:36:39 GMT 2001


When I put an 8 byte value and a 7 byte key through the samba function, I
get very different results than if I put them through a normal
(IE: SSH) function. I'm wondering why this is. (Is there some other step
I'm missing?)

-Andrew

On Fri, 26 Jan 2001, Richard Sharpe wrote:

> At 05:44 PM 1/25/01 -0600, Gerald Carter wrote:
> >Andrew Edem wrote:
> >> 
> >> C208 (CAE Specification) Protocols for X/Open PC 
> >> Interworking: SMB, Version 2 says that lan 
> >> manager passwords should be encrypted against a
> >> string of eight question marks, then encrypted against 
> >> the challenge key presented by the server, yet samba 
> >> encrypts the password against "\x4B\x47\x53\x21\x40\x23\x24\x25".
> >
> >I think the ???????? was because they didn't know the 
> >encryption key :)  (no joke).
> >
> >> Secondly, the DES routines in Samba seem to vary 
> >> from the other algorithms I've seen. (I'm assuming these 
> >> are either related, or the X/Open standard is VERY off.)
> 
> Well, I guess we have to ask what the differences are? 
> 
> Secondly, it works! 
> 
> >> I guess I'm wondering why Samba differs from the standard.
> >
> >Not a clue on this one.  But as Chris said, "The way NT does it"
> >is really is the standard.  I don't think the X/Open folks had
> >all the details from MS when they wrote that spec.
> >
> >
> >
> >
> >
> >
> >Cheers, jerry
> >----------------------------------------------------------------------
> >   /\  Gerald (Jerry) Carter                     Professional Services
> > \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
> >       http://www.samba.org/       SAMBA Team          jerry at samba.org
> >       http://www.plainjoe.org/                     jerry at plainjoe.org
> >
> >       "...a hundred billion castaways looking for a home."
> >                                - Sting "Message in a Bottle" ( 1979 )
> >
> >
> 
> Regards
> -------
> Richard Sharpe, sharpe at ns.aus.com
> Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
> Contributing author, SAMS Teach Yourself Samba in 24 Hours
> Author, Special Edition, Using Samba
> 
> 
> 





More information about the samba-technical mailing list