login.c (263720) | login.c (263723) |
---|---|
1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: stable/10/usr.sbin/ctld/login.c 263720 2014-03-25 12:01:55Z trasz $ | 29 * $FreeBSD: stable/10/usr.sbin/ctld/login.c 263723 2014-03-25 12:10:30Z trasz $ |
30 */ 31 32#include <assert.h> 33#include <stdbool.h> 34#include <stdint.h> 35#include <stdio.h> 36#include <stdlib.h> 37#include <string.h> --- 879 unchanged lines hidden (view full) --- 917 /* 918 * At this point we know what kind of authentication we need. 919 */ 920 if (conn->conn_session_type == CONN_SESSION_TYPE_NORMAL) { 921 ag = conn->conn_target->t_auth_group; 922 if (ag->ag_name != NULL) { 923 log_debugx("initiator requests to connect " 924 "to target \"%s\"; auth-group \"%s\"", | 30 */ 31 32#include <assert.h> 33#include <stdbool.h> 34#include <stdint.h> 35#include <stdio.h> 36#include <stdlib.h> 37#include <string.h> --- 879 unchanged lines hidden (view full) --- 917 /* 918 * At this point we know what kind of authentication we need. 919 */ 920 if (conn->conn_session_type == CONN_SESSION_TYPE_NORMAL) { 921 ag = conn->conn_target->t_auth_group; 922 if (ag->ag_name != NULL) { 923 log_debugx("initiator requests to connect " 924 "to target \"%s\"; auth-group \"%s\"", |
925 conn->conn_target->t_iqn, | 925 conn->conn_target->t_name, |
926 conn->conn_target->t_auth_group->ag_name); 927 } else { 928 log_debugx("initiator requests to connect " | 926 conn->conn_target->t_auth_group->ag_name); 927 } else { 928 log_debugx("initiator requests to connect " |
929 "to target \"%s\"", conn->conn_target->t_iqn); | 929 "to target \"%s\"", conn->conn_target->t_name); |
930 } 931 } else { 932 assert(conn->conn_session_type == CONN_SESSION_TYPE_DISCOVERY); 933 ag = conn->conn_portal->p_portal_group->pg_discovery_auth_group; 934 if (ag->ag_name != NULL) { 935 log_debugx("initiator requests " 936 "discovery session; auth-group \"%s\"", ag->ag_name); 937 } else { --- 151 unchanged lines hidden --- | 930 } 931 } else { 932 assert(conn->conn_session_type == CONN_SESSION_TYPE_DISCOVERY); 933 ag = conn->conn_portal->p_portal_group->pg_discovery_auth_group; 934 if (ag->ag_name != NULL) { 935 log_debugx("initiator requests " 936 "discovery session; auth-group \"%s\"", ag->ag_name); 937 } else { --- 151 unchanged lines hidden --- |