summaryrefslogtreecommitdiff
path: root/lib/ldb-samba
diff options
context:
space:
mode:
authorAaron Haslett <aaronhaslett@catalyst.net.nz>2018-05-01 11:10:40 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-12 09:15:07 +0200
commit6a09162df6bd38098253b50a7ac32bfdc8dbf9d4 (patch)
treef92397dc5ca044d488c568ae543fe1b722a1f522 /lib/ldb-samba
parentb9d01fddc651798a50c2a2bf0d596d5f9d7eb6a1 (diff)
downloadsamba-6a09162df6bd38098253b50a7ac32bfdc8dbf9d4.tar.gz
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 <aaronhaslett@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r--lib/ldb-samba/ldif_handlers.c3
1 files changed, 2 insertions, 1 deletions
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