mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
store hostname of the user, and pass it to scripts.
This commit is contained in:
@@ -343,6 +343,10 @@ struct cmd_auth_req_st areq;
|
||||
snprintf(areq.user, sizeof(areq.user), "%s", username);
|
||||
snprintf(areq.pass, sizeof(areq.pass), "%s", password);
|
||||
}
|
||||
|
||||
if (req->hostname[0] != 0) {
|
||||
memcpy(areq.hostname, req->hostname, sizeof(areq.hostname));
|
||||
}
|
||||
|
||||
ret = auth_user(ws, &areq);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user