mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Fix handling for empty auth-groups. Without it, ctld child process
would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. MFC after: 2 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ca5b58f5b1
commit
b30f0d901a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259182
@ -1007,6 +1007,14 @@ login(struct connection *conn)
|
||||
return;
|
||||
}
|
||||
|
||||
if (ag->ag_type == AG_TYPE_UNKNOWN) {
|
||||
/*
|
||||
* This can happen with empty auth-group.
|
||||
*/
|
||||
login_send_error(request, 0x02, 0x01);
|
||||
log_errx(1, "auth-group type not set, denying access");
|
||||
}
|
||||
|
||||
log_debugx("CHAP authentication required");
|
||||
|
||||
auth_method = keys_find(request_keys, "AuthMethod");
|
||||
|
Loading…
Reference in New Issue
Block a user