mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
ITS#2899 NS-MTA-MD5 password len is exactly 64 bytes.
This commit is contained in:
parent
690f0111e9
commit
77dc2c479f
1 changed files with 2 additions and 1 deletions
|
|
@ -783,6 +783,7 @@ static int chk_lanman(
|
|||
#endif /* SLAPD_LMHASH */
|
||||
|
||||
#ifdef SLAPD_NS_MTA_MD5
|
||||
#define NS_MTA_MD5_PASSLEN 64
|
||||
static int chk_ns_mta_md5(
|
||||
const struct berval *scheme,
|
||||
const struct berval *passwd,
|
||||
|
|
@ -794,7 +795,7 @@ static int chk_ns_mta_md5(
|
|||
char buffer[LUTIL_MD5_BYTES*2];
|
||||
int i;
|
||||
|
||||
if( passwd->bv_len != LUTIL_MD5_BYTES*2 ) {
|
||||
if( passwd->bv_len != NS_MTA_MD5_PASSLEN ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue