passdb: Do not routinely clear the global memory returned by get_global_sam_sid()
commita4c1e9ad257342717a7eb5d1b3fbc6a4fcc82c0e
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 May 2014 05:47:03 +0000 (13 17:47 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:13 +0000 (15 12:46 +0200)
tree2fda3e42343c6f68fcf709babbec7c099c07cdb5
parent656e363578971189d3350b51e7e669ec58207cb0
passdb: Do not routinely clear the global memory returned by get_global_sam_sid()

This avoids use-after-free errors and tdb database churn.

Andrew Bartlett

Change-Id: If7ab2e24556d9dffc7ad22c0489d665dd75a0cab
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
(cherry picked from commit cda32d4e47aa3efb040eb60f1a0332ea8dd58417)

The last 9 patches address bug #10701 - backport dsdb related crash fixes and
build fixes.
source3/passdb/machine_account_secrets.c
source3/passdb/pdb_samba_dsdb.c