samba-technical@lists.samba.org
[Top] [All Lists]

Re: W2008RC1 Samba 3.2 Join Fails with NT_STATUS_WRONG_PASSWORD

Subject: Re: W2008RC1 Samba 3.2 Join Fails with NT_STATUS_WRONG_PASSWORD
From: Jeremy Allison
Date: Wed, 23 Jan 2008 12:59:59 -0800
On Wed, Jan 23, 2008 at 12:09:42PM -0800, Matt Geddes wrote:
> Hi,
> 
> On Jan 22, 2008 2:05 AM, David Holder <david.holder@xxxxxxxxxxx> wrote:
> 
> > Specifcally I am getting:
> >
> > # net ads join -Uadministrator%password123!
> 
> It' s not an shell escaping problem, is it? That exclamation mark
> might disappear once the shell gets to it.
> 
> That being said, I've taken a look at your packet captures and I can
> see why you can't change the password on the machine account.
> 
> Leighton's DCE/RPC book has two characters transposed (can't find the
> page now...) on the flags field set in the samr createuser2 (and
> others) function and it seems like all-but-one instance of these flags
> across the Samba source have the same problem. It's a permissions mask
> on the created account and by using the wrong value, we're preventing
> ourselves from changing our own machine account password.
> 
> This isn't a Windows 2008 specific problem -- I can reproduce it
> against Windows 2003 trying to join as a non-Administrator user that
> sports SeMachineAccountPrivilege only.
> 
> I've attached a patch that gives these bits a symbolic name and
> creates the 32-bit field in the packet in a consistent manner. It
> applies to late 3.0.x trees fine, but that code hasn't changed much
> recently, so I imagine it'll probably apply cleanly to HEAD branch.
> 
> David, can you apply this patch to your tree and test it? You'll have
> to delete the machine account (fedora8) before trying to rejoin, or
> the flags will still be set the same on the machine account.

This looks good to me. I'm forward porting to 3.2.x and
Jerry has promised to test (I'm in OOXML-hell right now :-).

Jeremy.

<Prev in Thread] Current Thread [Next in Thread>