mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s3:passdb: Use generate_secret_buffer() for generating passwords
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
a3e36dd8f4
commit
6fa3e4de7c
@ -814,7 +814,8 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods,
|
||||
got_clear_text_pw = True;
|
||||
}
|
||||
} else {
|
||||
generate_random_buffer((unsigned char *)clear_text_pw, 24);
|
||||
/* This is a long term key */
|
||||
generate_secret_buffer((unsigned char *)clear_text_pw, 24);
|
||||
clear_text_pw[24] = '\0';
|
||||
DEBUG(5,("pdb_nds_update_login_attempts: using random password %s\n", clear_text_pw));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user