Make the error message more clear.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2014-03-19 13:00:44 +00:00
parent 2111435b59
commit e6954b999d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263356

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");