From 2723be12397c1ddadecac501fb2484c5aa56a564 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Aug 2004 19:57:41 +0000 Subject: r1661: Changed the password history format so that each history entry consists of a 16 byte salt, followed by the 16 byte MD5 hash of the concatination of the salt plus the NThash of the historical password. Allows these to be exposed in LDAP without security issues. Jeremy. (This used to be commit 82e4036aaa2d283534a5bd8149857320fcf0d0dc) --- source3/include/smb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/include/smb.h') diff --git a/source3/include/smb.h b/source3/include/smb.h index a802e96226..32dba0cf78 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -625,6 +625,11 @@ typedef struct { #define NT_HASH_LEN 16 #define LM_HASH_LEN 16 +/* Password history contants. */ +#define PW_HISTORY_SALT_LEN 16 +#define SALTED_MD5_HASH_LEN 16 +#define PW_HISTORY_ENTRY_LEN (PW_HISTORY_SALT_LEN+SALTED_MD5_HASH_LEN) + /* * Flags for account policy. */ -- cgit