summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-06-02 19:57:15 +0200
committerStefan Metzmacher <metze@samba.org>2016-07-20 21:27:17 +0200
commitf9a4d0d2a03d9c95e202604585fddcec44a36cb2 (patch)
tree99eaebe8db343e02da13edcf6c6d6b2a5a066632 /source4
parent5c1ce0e7e530feff55fd41a0be397b6dde4b2b27 (diff)
downloadsamba-f9a4d0d2a03d9c95e202604585fddcec44a36cb2.tar.gz
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 <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c1
1 files changed, 1 insertions, 0 deletions
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;