Package: openldap / 2.4.44+dfsg-5+deb9u3

heimdal-fix Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Mattias Ellert <mattias.ellert@fysast.uu.se>
Description: adapt parameters of hdb_generate_key_set_password() to heimdal 1.6~git20120311
 .
 With version heimdal 1.6~git20120311 heimdal schanged the number of parameters
 of function hdb_generate_key_set_password(), implementing a fallback to "default"
 values when NULL-values are passed for these parameters.
 .
 This patch does exactly that.
 .
Bug-Debian: 664930
Reviewed-by: Peter Marschall <peter@adpm.de>

--- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c
+++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c
@@ -470,7 +470,7 @@ static int smbk5pwd_exop_passwd(
 		}
 
 		ret = hdb_generate_key_set_password(context, ent.principal,
-			qpw->rs_new.bv_val, &ent.keys.val, &nkeys);
+			qpw->rs_new.bv_val, NULL, 0, &ent.keys.val, &nkeys);
 		ent.keys.len = nkeys;
 		hdb_seal_keys(context, db, &ent);
 		krb5_free_principal( context, ent.principal );