s4:dsdb/password_hash: explicitly set SUPPLEMENTAL_CREDENTIALS_SIGNATURE
authorStefan Metzmacher <metze@samba.org>
Thu, 2 Jun 2016 17:57:15 +0000 (19:57 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jul 2016 19:27:17 +0000 (21:27 +0200)
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>
source4/dsdb/samdb/ldb_modules/password_hash.c

index d52ad2d7f556b088cbd2b40e7320d90af94a5e1f..6052f643e90977cfd524ba4137770f16b203a157 100644 (file)
@@ -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;