normify(request, vp, 16);
}
if (vp->vp_length != 16) {
- REDEBUG("\"known-good\" MD5 password has incorrect length");
+ REDEBUG("\"known-good\" MD5 password has incorrect length, expected 16 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
normify(request, vp, 16);
}
if (vp->vp_length <= 16) {
- REDEBUG("\"known-good\" SMD5-Password has incorrect length");
+ REDEBUG("\"known-good\" SMD5-Password has incorrect length, expected 16 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
normify(request, vp, 20);
}
if (vp->vp_length != 20) {
- REDEBUG("\"known-good\" SHA1-password has incorrect length");
+ REDEBUG("\"known-good\" SHA1-password has incorrect length, expected 20 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
normify(request, vp, 20);
}
if (vp->vp_length <= 20) {
- REDEBUG("\"known-good\" SSHA-Password has incorrect length");
+ REDEBUG("\"known-good\" SSHA-Password has incorrect length, expected > 20 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
}
if (vp->vp_length != 16) {
- REDEBUG("\"known good\" NT-Password has incorrect length");
+ REDEBUG("\"known good\" NT-Password has incorrect length, expected 16 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
normify(request, vp, 16);
}
if (vp->vp_length != 16) {
- REDEBUG("\"known good\" LM-Password has incorrect length");
+ REDEBUG("\"known good\" LM-Password has incorrect length, expected 16 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}
RDEBUG("Using NT-MTA-MD5-Password");
if (vp->vp_length != 64) {
- REDEBUG("\"known good\" NS-MTA-MD5-Password has incorrect length");
+ REDEBUG("\"known good\" NS-MTA-MD5-Password has incorrect length, expected 64 got %zu", vp->vp_length);
return RLM_MODULE_INVALID;
}