From: Stefan Metzmacher Date: Thu, 2 Jun 2016 17:57:15 +0000 (+0200) Subject: s4:dsdb/password_hash: explicitly set SUPPLEMENTAL_CREDENTIALS_SIGNATURE X-Git-Tag: tdb-1.3.10~305 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9a4d0d2a03d9c95e202604585fddcec44a36cb2;p=thirdparty%2Fsamba.git s4:dsdb/password_hash: explicitly set SUPPLEMENTAL_CREDENTIALS_SIGNATURE Typically this is automatically set in ndr_push_supplementalCredentialsBlob(), but we need to change that behavior in order to handle strange formated values. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11441 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index d52ad2d7f55..6052f643e90 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1666,6 +1666,7 @@ static int setup_supplemental_field(struct setup_password_fields_io *io) * setup 'supplementalCredentials' value */ ZERO_STRUCT(scb); + scb.sub.signature = SUPPLEMENTAL_CREDENTIALS_SIGNATURE; scb.sub.num_packages = num_packages; scb.sub.packages = packages;