This is needed when NTLMSSP_NEGOTIATE_LM_KEY is used at lower,
LM_COMPTE_LEVEL (eg, level 0) by a client and NTLMv1 auth.
cred->cred.user.nt_hash.length = 16;
ret = NTOWFv1(cred_store->elements[i].value,
&cred->cred.user.nt_hash);
+
+ if (gssntlm_get_lm_compatibility_level() < 3) {
+ cred->cred.user.lm_hash.length = 16;
+ ret = LMOWFv1(cred_store->elements[i].value,
+ &cred->cred.user.lm_hash);
+ if (ret) return ret;
+ }
+
if (ret) return ret;
}
}