winbindd: trigger possible passdb_dsdb initialisation
authorRalph Boehme <slow@samba.org>
Wed, 29 Mar 2017 09:13:46 +0000 (11:13 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 1 Apr 2017 19:18:59 +0000 (21:18 +0200)
commit8b32fc4006ae338ddee7c0e5991958ec3463da0d
tree9912a13f914f55b82f959a02bffcdc7fae772db6
parent8bd5f774fdc1f4ea012885262eb0f40640504de8
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
selftest/knownfail
source3/winbindd/winbindd_util.c