version 1.316, 2017/10/25 00:17:08 |
version 1.317, 2017/10/25 00:19:47 |
|
|
ci.address = ssh_remote_ipaddr(ssh); |
ci.address = ssh_remote_ipaddr(ssh); |
ci.laddress = ssh_local_ipaddr(ssh); |
ci.laddress = ssh_local_ipaddr(ssh); |
ci.lport = ssh_local_port(ssh); |
ci.lport = ssh_local_port(ssh); |
|
ci.rdomain = ssh_packet_rdomain_in(ssh); |
return &ci; |
return &ci; |
} |
} |
|
|
|
|
ci->laddress, port, line); |
ci->laddress, port, line); |
else |
else |
result = 0; |
result = 0; |
|
} else if (strcasecmp(attrib, "rdomain") == 0) { |
|
if (ci == NULL || ci->rdomain == NULL) { |
|
result = 0; |
|
continue; |
|
} |
|
if (match_pattern_list(ci->rdomain, arg, 0) != 1) |
|
result = 0; |
|
else |
|
debug("user %.100s matched 'RDomain %.100s' at " |
|
"line %d", ci->rdomain, arg, line); |
} else { |
} else { |
error("Unsupported Match attribute %s", attrib); |
error("Unsupported Match attribute %s", attrib); |
return -1; |
return -1; |
|
|
ci->user = xstrdup(p + 5); |
ci->user = xstrdup(p + 5); |
} else if (strncmp(p, "laddr=", 6) == 0) { |
} else if (strncmp(p, "laddr=", 6) == 0) { |
ci->laddress = xstrdup(p + 6); |
ci->laddress = xstrdup(p + 6); |
|
} else if (strncmp(p, "rdomain=", 8) == 0) { |
|
ci->rdomain = xstrdup(p + 8); |
} else if (strncmp(p, "lport=", 6) == 0) { |
} else if (strncmp(p, "lport=", 6) == 0) { |
ci->lport = a2port(p + 6); |
ci->lport = a2port(p + 6); |
if (ci->lport == -1) { |
if (ci->lport == -1) { |