Blame SOURCES/0082-s3-passdb-Use-generate_secret_buffer-for-generating-.patch
|
|
b6b438 |
From 8057d84f33d96a3143b1908b47e65e6a89d4f861 Mon Sep 17 00:00:00 2001
|
|
|
b6b438 |
From: Andreas Schneider <asn@samba.org>
|
|
|
b6b438 |
Date: Mon, 12 Aug 2019 18:57:06 +0200
|
|
|
b6b438 |
Subject: [PATCH 082/187] s3:passdb: Use generate_secret_buffer() for
|
|
|
b6b438 |
generating passwords
|
|
|
b6b438 |
|
|
|
b6b438 |
Signed-off-by: Andreas Schneider <asn@samba.org>
|
|
|
b6b438 |
Reviewed-by: Alexander Bokovoy <ab@samba.org>
|
|
|
b6b438 |
(cherry picked from commit 6fa3e4de7c168dc7c869ec9966729a36bda27f57)
|
|
|
b6b438 |
---
|
|
|
b6b438 |
source3/passdb/pdb_nds.c | 3 ++-
|
|
|
b6b438 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
b6b438 |
|
|
|
b6b438 |
diff --git a/source3/passdb/pdb_nds.c b/source3/passdb/pdb_nds.c
|
|
|
b6b438 |
index 349ea0b6c38..216c9e6b50b 100644
|
|
|
b6b438 |
--- a/source3/passdb/pdb_nds.c
|
|
|
b6b438 |
+++ b/source3/passdb/pdb_nds.c
|
|
|
b6b438 |
@@ -814,7 +814,8 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods,
|
|
|
b6b438 |
got_clear_text_pw = True;
|
|
|
b6b438 |
}
|
|
|
b6b438 |
} else {
|
|
|
b6b438 |
- generate_random_buffer((unsigned char *)clear_text_pw, 24);
|
|
|
b6b438 |
+ /* This is a long term key */
|
|
|
b6b438 |
+ generate_secret_buffer((unsigned char *)clear_text_pw, 24);
|
|
|
b6b438 |
clear_text_pw[24] = '\0';
|
|
|
b6b438 |
DEBUG(5,("pdb_nds_update_login_attempts: using random password %s\n", clear_text_pw));
|
|
|
b6b438 |
}
|
|
|
b6b438 |
--
|
|
|
b6b438 |
2.23.0
|
|
|
b6b438 |
|