Lines Matching defs:ag
278 login_receive_chap_r(struct connection *conn, struct auth_group *ag,
310 assert(ag->ag_type == AG_TYPE_CHAP ||
311 ag->ag_type == AG_TYPE_CHAP_MUTUAL);
312 auth = auth_find(ag, chap_n);
402 login_chap(struct ctld_connection *conn, struct auth_group *ag)
431 request = login_receive_chap_r(&conn->conn, ag, chap, &auth);
841 struct auth_group *ag;
931 ag = conn->conn_port->p_auth_group;
932 if (ag == NULL)
933 ag = conn->conn_target->t_auth_group;
934 if (ag->ag_name != NULL) {
938 ag->ag_name);
945 ag = pg->pg_discovery_auth_group;
946 if (ag->ag_name != NULL) {
948 "discovery session; auth-group \"%s\"", ag->ag_name);
954 if (ag->ag_type == AG_TYPE_DENY) {
959 if (ag->ag_type == AG_TYPE_UNKNOWN) {
970 if (auth_name_check(ag, initiator_name) != 0) {
975 if (auth_portal_check(ag, &conn->conn_initiator_sa) != 0) {
986 if (ag->ag_type != AG_TYPE_NO_AUTHENTICATION) {
1005 if (ag->ag_type == AG_TYPE_NO_AUTHENTICATION) {
1051 if (ag->ag_type != AG_TYPE_NO_AUTHENTICATION) {
1052 login_chap(conn, ag);