winbindd: trigger possible passdb_dsdb initialisation
authorRalph Boehme <slow@samba.org>
Wed, 29 Mar 2017 09:13:46 +0000 (11:13 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Apr 2017 10:23:18 +0000 (12:23 +0200)
commit8719babb7e49b30e764ce9fa687c432e043451dd
tree52ceb7f0c0662382d9c3f1f069b7f5f378cf6bb8
parentd0d8663eb2a00c83391d2433d445129ec7e9eb88
winbindd: trigger possible passdb_dsdb initialisation

If the passdb backend is passdb_dsdb the domain SID comes from dsdb, not
from secrets.tdb. As we use the domain SID in various places, we must
ensure the domain SID is migrated from dsdb to secrets.tdb before
get_global_sam_sid() is called the first time.

The migration is done as part of the passdb_dsdb initialisation, calling
pdb_get_domain_info() triggers it.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12729

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Apr  1 21:18:59 CEST 2017 on sn-devel-144

(cherry picked from commit 8b32fc4006ae338ddee7c0e5991958ec3463da0d)
selftest/knownfail
source3/winbindd/winbindd_util.c