ldap {
	$INCLUDE /usr/local/synoradius/rad_ldap

#	sasl {
#	}

	update {
#		control:Password-With-Header    += 'userPassword'
       	control:NT-Password     := 'sambaNtPassword'
#       reply:Reply-Message     := 'radiusReplyMessage'
#       reply:Tunnel-Type       := 'radiusTunnelType'
#       reply:Tunnel-Medium-Type    := 'radiusTunnelMediumType'
#       reply:Tunnel-Private-Group-ID   := 'radiusTunnelPrivategroupId'
		control:User-Birthday           := 'apple-birthday'
		control:User-DepartmentNum      := 'departmentNumber'
		control:User-EmployeeNum        := 'employeeNumber'
		control:User-EmployeeType       := 'employeeType'
		control:User-HomePhone          := 'homePhone'
		control:User-MobilePhone        := 'mobile'
		control:User-PostalAddr         := 'postalAddress'
		control:User-Tel                := 'telephoneNumber'
		control:User-Title              := 'title'

        control:            += 'radiusControlAttribute'
        request:            += 'radiusRequestAttribute'
        reply:              += 'radiusReplyAttribute'		
	}

	user {
		base_dn = "${..base_dn}"
		filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})"
	}

	group {
		base_dn = "${..base_dn}"
		filter = '(objectClass=posixGroup)'
	}

#	profile {
#	}

#	client {
#	}

#	accounting {
#	}

#	post-auth {
#	}

	options {
		res_timeout = 10
		srv_timelimit = 3
		net_timeout = 1
	}

	tls {
		$INCLUDE /usr/local/synoradius/rad_ldap_starttls
#		$INCLUDE /usr/local/synoradius/rad_ldap_client_cert
	}

	pool {
		start = 0
		min = 1
		max = 5
		spare = 1
		uses = 0
		retry_delay = 10
		lifetime = 0
		idle_timeout = 60
	}

}

