server inner-tunnel {
listen {
	ipaddr = 127.0.0.1
	$INCLUDE /usr/local/synoradius/rad_port_inner
	type = auth
}

authorize {
	chap
	mschap
	suffix
	synorad
	update control {
	       Proxy-To-Realm := LOCAL
	}
	eap {
		ok = return
	}
	files
	if ("%{request:User-Name}" =~ /^(.*)@(.*)/) {
		update request {
			Stripped-User-Name := "%{1}"
			Realm := "%{2}"
		}
	}
	ldap
	expiration
	logintime
	pap
}

authenticate {
	Auth-Type PAP {
		pap
	}
	Auth-Type CHAP {
		chap
	}
	Auth-Type MS-CHAP {
		mschap
	}
#	unix
	Auth-Type LDAP {
		ldap
	}
	eap
}

session {
	radutmp
}

post-auth {
#	ldap
	Post-Auth-Type REJECT {
		attr_filter.access_reject
	}
}

pre-proxy {
}

post-proxy {
	eap
}

} # inner-tunnel server block
