Improve badPwdCount, lastLogon and logonCount updates
Andrew Bartlett
abartlet at samba.org
Fri Jul 8 19:51:45 UTC 2016
On Fri, 2016-07-08 at 16:10 +0200, Stefan Metzmacher wrote:
> Hi Andrew,
>
> > > > UNEXPECTED(failure):
> > > > samba4.tombstone_reanimation.python.tombstone_reanimation.Resto
> > > > reUs
> > > > erOb
> > > > jectTestCase.test_restore_user(ad_dc_ntvfs)
> > > > REASON: Exception: Exception: Traceback (most recent call
> > > > last):
> > > > File
> > > > "/data/samba/git/samba/source4/dsdb/tests/python/tombstone_rean
> > > > imat
> > > > ion.
> > > > py", line 364, in test_restore_user
> > > > self.assertAttributesEqual(obj, attr_orig, obj_restore,
> > > > attr_rest)
> > > > File
> > > > "/data/samba/git/samba/source4/dsdb/tests/python/tombstone_rean
> > > > imat
> > > > ion.
> > > > py", line 88, in assertAttributesEqual
> > > > % (str(attrs_orig.difference(attrs_rest)),
> > > > str(attrs_rest.difference(attrs_orig))))
> > > > AssertionError: Actual object does not have expected
> > > > attributes,
> > > > missing from expected (set(['pwdLastSet'])), extra (set([]))
> > > >
> > > > I'm sure I can figure it out - presumably pwdLastSet moved from
> > > > some
> > > > common code to a special case - but any clues give me more time
> > > > to
> > > > review your other patches ;-)
> > >
> > > So are we expecting pwdLastSet to be there and it's not or
> > > the other way?
> >
> > s.difference(t) s - t new set with elements in s
> > but
> > not in t
> >
> > It seems pwdLastSet isn't restored, but it expected it to be
> > restored.
> >
> > I'm going to validate the test against Windows. Currently hitting
> > what
> > I assume is the minPwdLen issue that seems common across all our
> > tests.
>
> I found and fixed the problems.
>
> https://git.samba.org/?p=metze/samba/wip.git;a=shortlog;h=refs/heads/
> master4-tombstone-reanimation
>
> I'm running a private autobuild with this.
>
> I think we need a dbcheck update that removes secret attributes from
> deleted objects,
> can you have a look and implement that?
I think that regression should only be in master, from when I moved
operational below repl_meta_data. But yes, I can do that.
Inspired by this, but untested, is the attached.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dsdb-Avoid-search-on-in-replmd_replicated_apply_next.patch
Type: text/x-patch
Size: 1285 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160709/a778cda0/0001-dsdb-Avoid-search-on-in-replmd_replicated_apply_next.bin>
More information about the samba-technical
mailing list