Deleted Added
full compact
29c29
< * $FreeBSD: stable/10/usr.sbin/ctld/login.c 259305 2013-12-13 15:23:07Z trasz $
---
> * $FreeBSD: stable/10/usr.sbin/ctld/login.c 263720 2014-03-25 12:01:55Z trasz $
942a943,969
> * Enforce initiator-name and initiator-portal.
> */
> if (auth_name_defined(ag)) {
> if (auth_name_find(ag, initiator_name) == NULL) {
> login_send_error(request, 0x02, 0x02);
> log_errx(1, "initiator does not match allowed "
> "initiator names");
> }
> log_debugx("initiator matches allowed initiator names");
> } else {
> log_debugx("auth-group does not define initiator name "
> "restrictions");
> }
>
> if (auth_portal_defined(ag)) {
> if (auth_portal_find(ag, conn->conn_initiator_addr) == NULL) {
> login_send_error(request, 0x02, 0x02);
> log_errx(1, "initiator does not match allowed "
> "initiator portals");
> }
> log_debugx("initiator matches allowed initiator portals");
> } else {
> log_debugx("auth-group does not define initiator portal "
> "restrictions");
> }
>
> /*