From: Aaron Haslett Date: Mon, 30 Apr 2018 23:10:40 +0000 (+1200) Subject: ldb: removing prior secret from logs X-Git-Tag: ldb-1.4.0~277 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a09162df6bd38098253b50a7ac32bfdc8dbf9d4;p=thirdparty%2Fsamba.git ldb: removing prior secret from logs priorSecret, like secret, can contain a machine account password (for secrets.ldb) and so should not be printed in a debug trace. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13353 Signed-off-by: Aaron Haslett Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/lib/ldb-samba/ldif_handlers.c b/lib/ldb-samba/ldif_handlers.c index 591bd1ee217..ecc02e51c1d 100644 --- a/lib/ldb-samba/ldif_handlers.c +++ b/lib/ldb-samba/ldif_handlers.c @@ -1706,7 +1706,8 @@ const struct ldb_schema_syntax *ldb_samba_syntax_by_lDAPDisplayName(struct ldb_c return s; } -static const char *secret_attributes[] = {DSDB_SECRET_ATTRIBUTES, "secret", NULL}; +static const char *secret_attributes[] = {DSDB_SECRET_ATTRIBUTES, "secret", + "priorSecret", NULL}; /* register the samba ldif handlers