{
VALUE_PAIR *nt_password;
+ *ntpw = NULL; /* Init output pointer */
+
/*
* Look for NT-Password...
*/
return false;
}
} else if (inst->method == AUTH_INTERNAL) {
+ /*
+ * If we're doing internal auth, then this is an issue
+ */
RWDEBUG2("No Cleartext-Password configured. Cannot create NT-Password");
+ return false;
+
+ /*
+ * ..if we're not, then we can call out to external sources.
+ */
+ } else {
+ return false;
}
}
{
VALUE_PAIR *lm_password;
+ *lmpw = NULL; /* Init output pointer */
+
lm_password = fr_pair_find_by_da(request->control, attr_lm_password, TAG_ANY);
if (lm_password) {
VP_VERIFY(lm_password);
/*
* Only complain if we don't have NT-Password
*/
- } else if (inst->method == AUTH_INTERNAL && !nt_password) {
+ } else if ((inst->method == AUTH_INTERNAL) && !nt_password) {
RWDEBUG2("No Cleartext-Password configured. Cannot create LM-Password");
+ return false;
+ } else {
+ return false;
}
}
*lmpw = lm_password;
+
return true;
}