1. 29 Jun, 2018 2 commits
    • Tim Beale's avatar
      dbchecker: Fixing up incorrect DNs wasn't working · 29147aa7
      Tim Beale authored and Andrew Bartlett's avatar Andrew Bartlett committed
      dbcheck would fail to fix up attributes where the extended DN's GUID is
      correct, but the DN itself is incorrect. The code failed attempting to
      remove the old/incorrect DN, e.g.
       NOTE: old (due to rename or delete) DN string component for
       objectCategory in object CN=alice,CN=Users,DC=samba,DC=example,DC=com -
       Change DN to <GUID=7bfdf9d8-62f9-420c-8a71-e3d3e931c91e>;
       [y/N/all/none] y
       Failed to fix old DN string on attribute objectCategory : (16,
       "attribute 'objectCategory': no matching attribute value while deleting
       attribute on 'CN=alice,CN=Users,DC=samba,DC=example,DC=com'")
      The problem was the LDB message specified the value to delete with its
      full DN, including the GUID. The LDB code then helpfully corrected this
      value on the way through, so that the DN got updated to reflect the
      correct DN (i.e. 'DC=example,DC=com') of the object matching that GUID,
      rather than the incorrect DN (i.e. 'DC=bad,DC=com') that we were trying
      to remove. Because the requested value and the existing DB value didn't
      match, the operation failed.
      We can avoid this problem by passing down just the DN (not the extended
      DN) of the value we want to delete. Without the GUID portion of the DN,
      the LDB code will no longer try to correct it on the way through, and
      the dbcheck operation will succeed.
      BUG: https://bugzilla.samba.org/show_bug.cgi?id=13495
      Signed-off-by: Tim Beale's avatarTim Beale <timbeale@catalyst.net.nz>
    • Andrew Bartlett's avatar
      dbcheck: Use symbolic control name for DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS · 80999671
      Andrew Bartlett authored
      While we do not wish to encourage use of this control, manually typed OIDs are
      even more trouble, so pass out via pydsdb.
      Signed-off-by: Andrew Bartlett's avatarAndrew Bartlett <abartlet@samba.org>
  2. 28 Jun, 2018 15 commits
  3. 27 Jun, 2018 5 commits
  4. 26 Jun, 2018 14 commits
  5. 25 Jun, 2018 4 commits