MFC r263356:

Make the error message more clear.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2014-03-25 12:38:43 +00:00
parent 4a35e9f814
commit 59337a66a6

View File

@ -1032,7 +1032,7 @@ login(struct connection *conn)
if (ag->ag_type == AG_TYPE_DENY) {
login_send_error(request, 0x02, 0x01);
log_errx(1, "auth-group type is \"deny\"");
log_errx(1, "auth-type is \"deny\"");
}
if (ag->ag_type == AG_TYPE_UNKNOWN) {
@ -1040,7 +1040,7 @@ login(struct connection *conn)
* This can happen with empty auth-group.
*/
login_send_error(request, 0x02, 0x01);
log_errx(1, "auth-group type not set, denying access");
log_errx(1, "auth-type not set, denying access");
}
log_debugx("CHAP authentication required");