eap module change between 2.1.11 & 2.1.12 ?

Fred fred.maison at gmail.com
Tue Oct 25 11:54:26 CEST 2011


Hi all,

I have a configuration with 2 wifi instances :
* default & inner-tunnel for internal users
* partners & partners.inner-eap for partners users.
for internal user, I have an eap.conf for outer and inner.eap.conf for inner
for partners, I have a partners.eap. with eap partners.eap
{...virtual_server = partners.inner-tunnel} and so on.

Actually, it only works if I only start one site and fails at loading
second site ...

All those eap configs shares the same parameters, the only difference
are references to virtual servers :
for partners, virtual_server points to partners ...

This worked perfectly until 2.1.12.
In 2.1.12, I got an SSL error message at eap module instantiation :

rlm_eap: SSL error error:140DB111:SSL
routines:SSL_CTX_set_session_id_context:ssl session id context too
long
rlm_eap_tls: Error reading certificate file /etc/raddb/certs/acs_cert.pem
rlm_eap: Failed to initialize type tls
/etc/raddb/partners/modules/partners.eap[1]: Instantiation failed for
module "partners.eap"
/etc/raddb/partners/default[41]: Failed to load module "partners.eap".
/etc/raddb/partners/default[28]: Errors parsing authenticate section.

Depending of the order of loading, the second eap declaration fails :

If I start default and inner-tunnel first, parners eap fails.
If I start parners-default and partners.inner-tunnel first, eap for
internal user fails when loading default site ...

I saw the new version of eap module doc on the wiki, where I can see
it's not possible to have multiple instances of eap modules, which I
did not saw before.

How can I solve this problem which did not occured with 2.1.11 ?

FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on
Sep 27 2011 at 11:59:05
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
Starting - reading configuration files ...
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/radius-fr-ny-wifi.listen.conf
including configuration file /etc/raddb/radius-fr-ny-wifi.proxy.conf
including configuration file /etc/raddb/local.clients.conf
including configuration file /etc/raddb/loadmodules
including configuration file /etc/raddb/modules/acct_unique
including configuration file /etc/raddb/modules/always
including configuration file /etc/raddb/modules/attr_filter
including configuration file /etc/raddb/modules/attr_rewrite
including configuration file /etc/raddb/modules/chap
including configuration file /etc/raddb/modules/detail
including configuration file /etc/raddb/modules/detail.log
including configuration file /etc/raddb/modules/exec
including configuration file /etc/raddb/modules/expiration
including configuration file /etc/raddb/modules/expr
including configuration file /etc/raddb/modules/files
including configuration file /etc/raddb/modules/ldap
including configuration file /etc/raddb/modules/logintime
including configuration file /etc/raddb/modules/mschap
including configuration file /etc/raddb/modules/pap
including configuration file /etc/raddb/modules/policy
including configuration file /etc/raddb/modules/preprocess
including configuration file /etc/raddb/modules/realm
including configuration file /etc/raddb/partners/modules/partners.preprocess
including configuration file /etc/raddb/partners/modules/partners.files
including configuration file /etc/raddb/partners/modules/partners.mschap
including configuration file /etc/raddb/partners/modules/partners.eap
including configuration file /etc/raddb/partners/modules/partners.inner-eap
including configuration file /etc/raddb/eap.conf
including configuration file /etc/raddb/modules/inner-eap
including configuration file /etc/raddb/policy.conf
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/control-socket
including configuration file /etc/raddb/sites-enabled/03-default
including configuration file /etc/raddb/sites-enabled/02-partners
including configuration file /etc/raddb/local.clients.conf
including configuration file /etc/raddb/partners/radius-fr-ny-wifi.listen.conf
including configuration file /etc/raddb/partners/default
including configuration file /etc/raddb/sites-enabled/01-partners.inner-tunnel
main {
	user = "radiusd"
	group = "radiusd"
	allow_core_dumps = no
}
including dictionary file /etc/raddb/dictionary
main {
	name = "radiusd"
	prefix = "/usr"
	localstatedir = "/var"
	sbindir = "/usr/sbin"
	logdir = "/var/log/radius"
	run_dir = "/var/run/radiusd"
	libdir = "/usr/lib64/freeradius"
	radacctdir = "/var/log/radius/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 1024
	pidfile = "/var/run/radiusd/radiusd.pid"
	checkrad = "/usr/sbin/checkrad"
	debug_level = 4
	proxy_requests = yes
 log {
	stripped_names = no
	auth = yes
	auth_badpass = no
	auth_goodpass = no
 }
 security {
	max_attributes = 200
	reject_delay = 1
	status_server = no
 }
}
radiusd: #### Loading Realms and Home Servers ####
 proxy server {
	retry_delay = 5
	retry_count = 3
	default_fallback = no
	dead_time = 120
	wake_all_if_all_dead = no
 }
 home_server localhost {
	ipaddr = 127.0.0.1
	port = 1812
	type = "auth"
	secret = "testing123"
	response_window = 20
	max_outstanding = 65536
	require_message_authenticator = yes
	zombie_period = 40
	status_check = "status-server"
	ping_interval = 30
	check_interval = 30
	num_answers_to_alive = 3
	num_pings_to_alive = 3
	revive_interval = 120
	status_check_timeout = 4
  coa {
	irt = 2
	mrt = 16
	mrc = 5
	mrd = 30
  }
 }
 realm carrefour.com {
	nostrip
	authhost = 10.48.184.69:1812
	accthost = 10.48.184.69:1813
	secret = cisco
 }
 realm LOCAL {
 }
 home_server_pool my_auth_failover {
	type = fail-over
	home_server = localhost
 }
radiusd: #### Loading Clients ####
 client 10.48.184.18 {
	ipaddr = 10.48.184.18
	require_message_authenticator = yes
	secret = "radius"
	shortname = "neuilly-local-wifi-partners"
 }
 client 10.48.184.20 {
	ipaddr = 10.48.184.20
	require_message_authenticator = yes
	secret = "radius"
 }
 client 10.49.64.18 {
	require_message_authenticator = yes
	secret = "radius"
 }
 client 10.49.64.20 {
	ipaddr = 10.49.64.20
	require_message_authenticator = yes
	secret = "radius"
	shortname = "m2-local-wifi"
 }
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating module "exec" from file /etc/raddb/modules/exec
  exec {
	wait = no
	input_pairs = "request"
	shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating module "expr" from file /etc/raddb/modules/expr
 Module: Linked to module rlm_expiration
 Module: Instantiating module "expiration" from file
/etc/raddb/modules/expiration
  expiration {
	reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating module "logintime" from file /etc/raddb/modules/logintime
  logintime {
	reply-message = "You are calling outside your allowed timespan  "
	minimum-timeout = 60
  }
 }
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
 modules {
  Module: Creating Auth-Type = LDAP
  Module: Creating Autz-Type = Status-Server
  Module: Creating Acct-Type = Status-Server
  Module: Creating Post-Proxy-Type = Fail
  Module: Creating Post-Auth-Type = REJECT
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating module "pap" from file /etc/raddb/modules/pap
  pap {
	encryption_scheme = "auto"
	auto_header = yes
  }
 Module: Linked to module rlm_chap
 Module: Instantiating module "chap" from file /etc/raddb/modules/chap
 Module: Linked to module rlm_mschap
 Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap
  mschap {
	use_mppe = yes
	require_encryption = no
	require_strong = no
	with_ntdomain_hack = no
	allow_retry = yes
  }
 Module: Linked to module rlm_ldap
 Module: Instantiating module "ldap" from file /etc/raddb/modules/ldap
  ldap {
	server = "10.49.64.25"
	port = 389
	password = "uVgDRrEJ"
	identity = "cn=syncuser,dc=carrefour,dc=com"
	net_timeout = 1
	timeout = 4
	timelimit = 3
	tls_mode = no
	start_tls = no
	tls_require_cert = "allow"
   tls {
	start_tls = no
	require_cert = "allow"
   }
	basedn = "ou=People,dc=corp,dc=carrefour,dc=com"
	filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})"
	base_filter = "(&(objectclass=radiusprofile)(!(pwdAccountLockedTime=000001010000Z))
)"
	password_attribute = "User-Password"
	auto_header = yes
	access_attr_used_for_allow = yes
	groupname_attribute = "radiusGroupName"
	groupmembership_filter =
"(&(uid=%{%{Stripped-User-Name}:-%{User-Name}})(objectclass=radiusProfile))"
	groupmembership_attribute = "radiusGroupName"
	dictionary_mapping = "/etc/raddb/ldap.attrmap"
	ldap_debug = 0
	ldap_connections_number = 10
	compare_check_items = no
	do_xlat = yes
	set_auth_type = yes
  }
rlm_ldap: Registering ldap_groupcmp for Ldap-Group
rlm_ldap: Registering ldap_xlat with xlat_name ldap
rlm_ldap: reading ldap<->radius mappings from file /etc/raddb/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusGroupName mapped to RADIUS Ldap-Group
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
rlm_ldap: LDAP userPassword mapped to RADIUS Password-With-Header
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
conns: 0x2b1d9d963020
 Module: Linked to module rlm_eap
 Module: Instantiating module "eap" from file /etc/raddb/eap.conf
  eap {
	default_eap_type = "peap"
	timer_expire = 60
	ignore_unknown_eap_types = no
	cisco_accounting_username_bug = no
	max_sessions = 4096
  }
 Module: Linked to sub-module rlm_eap_md5
 Module: Instantiating eap-md5
 Module: Linked to sub-module rlm_eap_leap
 Module: Instantiating eap-leap
 Module: Linked to sub-module rlm_eap_gtc
 Module: Instantiating eap-gtc
   gtc {
	challenge = "Password: "
	auth_type = "PAP"
   }
 Module: Linked to sub-module rlm_eap_tls
 Module: Instantiating eap-tls
   tls {
	rsa_key_exchange = no
	dh_key_exchange = yes
	rsa_key_length = 1024
	dh_key_length = 1024
	verify_depth = 0
	pem_file_type = yes
	private_key_file = "/etc/raddb/certs/acs_privkey.pem"
	certificate_file = "/etc/raddb/certs/acs_cert.pem"
	CA_file = "/etc/raddb/certs/carrefourca.pem"
	private_key_password = "cisco"
	dh_file = "/etc/raddb/certs/dh"
	random_file = "/etc/raddb/certs/random"
	fragment_size = 1024
	include_length = yes
	check_crl = no
	cipher_list = "DEFAULT"
    cache {
	enable = yes
	lifetime = 6
	max_entries = 8192
    }
   }
 Module: Linked to sub-module rlm_eap_ttls
 Module: Instantiating eap-ttls
   ttls {
	default_eap_type = "mschapv2"
	copy_request_to_tunnel = yes
	use_tunneled_reply = yes
	virtual_server = "inner-tunnel"
	include_length = yes
   }
 Module: Linked to sub-module rlm_eap_peap
 Module: Instantiating eap-peap
   peap {
	default_eap_type = "mschapv2"
	copy_request_to_tunnel = yes
	use_tunneled_reply = yes
	proxy_tunneled_request_as_eap = yes
	virtual_server = "inner-tunnel"
	soh = no
   }
 Module: Linked to sub-module rlm_eap_mschapv2
 Module: Instantiating eap-mschapv2
   mschapv2 {
	with_ntdomain_hack = no
	send_error = no
   }
 Module: Linked to module rlm_attr_filter
 Module: Instantiating module "attr_filter.access_challenge" from file
/etc/raddb/modules/attr_filter
  attr_filter attr_filter.access_challenge {
	attrsfile = "/etc/raddb/attrs.access_challenge"
	key = "%{User-Name}"
	relaxed = no
  }
 Module: Linked to module rlm_always
 Module: Instantiating module "handled" from file /etc/raddb/modules/always
  always handled {
	rcode = "handled"
	simulcount = 0
	mpp = no
  }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating module "preprocess" from file
/etc/raddb/modules/preprocess
  preprocess {
	huntgroups = "/etc/raddb/huntgroups"
	hints = "/etc/raddb/hints"
	with_ascend_hack = no
	ascend_channels_per_line = 23
	with_ntdomain_hack = no
	with_specialix_jetstream_hack = no
	with_cisco_vsa_hack = no
	with_alvarion_vsa_hack = no
  }
 Module: Linked to module rlm_detail
 Module: Instantiating module "auth_log" from file /etc/raddb/modules/detail.log
  detail auth_log {
	detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d"
	header = "%t Virtual-Server : %{%{Virtual-Server}:-DEFAULT}
Proxy:%{%{FreeRADIUS-proxied-To}:-NONE}  "
	detailperm = 416
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Linked to module rlm_realm
 Module: Instantiating module "suffix" from file /etc/raddb/modules/realm
  realm suffix {
	format = "suffix"
	delimiter = "@"
	ignore_default = no
	ignore_null = no
  }
 Module: Checking preacct {...} for more modules to load
 Module: Linked to module rlm_acct_unique
 Module: Instantiating module "acct_unique" from file
/etc/raddb/modules/acct_unique
  acct_unique {
	key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
  }
 Module: Linked to module rlm_files
 Module: Instantiating module "files" from file /etc/raddb/modules/files
  files {
	usersfile = "/etc/raddb/users"
	acctusersfile = "/etc/raddb/acct_users"
	preproxy_usersfile = "/etc/raddb/preproxy_users"
	compat = "no"
  }
 Module: Checking accounting {...} for more modules to load
 Module: Instantiating module "detail" from file /etc/raddb/modules/detail
  detail {
	detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
	header = "%t %{%{Virtual-Server}:-DEFAULT}"
	detailperm = 416
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Instantiating module "attr_filter.accounting_response" from
file /etc/raddb/modules/attr_filter
  attr_filter attr_filter.accounting_response {
	attrsfile = "/etc/raddb/attrs.accounting_response"
	key = "%{User-Name}"
	relaxed = no
  }
 Module: Checking pre-proxy {...} for more modules to load
 Module: Instantiating module "pre_proxy_log" from file
/etc/raddb/modules/detail.log
  detail pre_proxy_log {
	detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d"
	header = "%t Virtual-Server:%{%{control:Virtual-Server}:-DEFAULT}
Proxy:%{%{control:FreeRADIUS-Proxied-To}:-NONE}
%{%control:{Proxy-To-Realm}:-NoProxyToReal} "
	detailperm = 416
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Checking post-proxy {...} for more modules to load
 Module: Instantiating module "post_proxy_log" from file
/etc/raddb/modules/detail.log
  detail post_proxy_log {
	detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/post-proxy-detail-%Y%m%d"
	header = "%t Virtual-Server:%{%{Virtual-Server}:-DEFAULT}
Proxy:%{%{FreeRADIUS-Proxied-To}:-NONE}
%{%{Proxy-To-Realm}:-NoProxyToReal} "
	detailperm = 416
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Checking post-auth {...} for more modules to load
 Module: Instantiating module "fail" from file /etc/raddb/modules/always
  always fail {
	rcode = "fail"
	simulcount = 0
	mpp = no
  }
 Module: Instantiating module "reply_log" from file
/etc/raddb/modules/detail.log
  detail reply_log {
	detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/reply-detail-%Y%m%d"
	header = "%t Virtual-Server : %{%{Virtual-Server}:-DEFAULT}
Proxy:%{%{FreeRADIUS-Proxied-To}:-NONE}  "
	detailperm = 416
	dirperm = 493
	locking = no
	log_packet_header = no
  }
 Module: Instantiating module "attr_filter.access_reject" from file
/etc/raddb/modules/attr_filter
  attr_filter attr_filter.access_reject {
	attrsfile = "/etc/raddb/attrs.access_reject"
	key = "%{User-Name}"
	relaxed = no
  }
 } # modules
} # server
server partners { # from file /etc/raddb/sites-enabled/02-partners
 modules {
  Module: Creating Auth-Type = partners.eap
 Module: Checking authenticate {...} for more modules to load
 Module: Instantiating module "partners.eap" from file
/etc/raddb/partners/modules/partners.eap
  eap partners.eap {
	default_eap_type = "peap"
	timer_expire = 60
	ignore_unknown_eap_types = yes
	cisco_accounting_username_bug = no
	max_sessions = 4096
  }
 Module: Linked to sub-module rlm_eap_md5
 Module: Instantiating eap-md5
 Module: Linked to sub-module rlm_eap_leap
 Module: Instantiating eap-leap
 Module: Linked to sub-module rlm_eap_gtc
 Module: Instantiating eap-gtc
   gtc {
	challenge = "Password: "
	auth_type = "Local"
   }
 Module: Linked to sub-module rlm_eap_tls
 Module: Instantiating eap-tls
   tls {
	rsa_key_exchange = no
	dh_key_exchange = yes
	rsa_key_length = 512
	dh_key_length = 512
	verify_depth = 0
	pem_file_type = yes
	private_key_file = "/etc/raddb/certs/acs_privkey.pem"
	certificate_file = "/etc/raddb/certs/acs_cert.pem"
	CA_file = "/etc/raddb/certs/carrefourca.pem"
	private_key_password = "cisco"
	dh_file = "/etc/raddb/certs/dh"
	random_file = "/etc/raddb/certs/random"
	fragment_size = 1024
	include_length = yes
	check_crl = no
	cipher_list = "DEFAULT"
    cache {
	enable = yes
	lifetime = 6
	max_entries = 8192
    }
   }
rlm_eap: SSL error error:140DB111:SSL
routines:SSL_CTX_set_session_id_context:ssl session id context too
long
rlm_eap_tls: Error reading certificate file /etc/raddb/certs/acs_cert.pem
rlm_eap: Failed to initialize type tls
/etc/raddb/partners/modules/partners.eap[1]: Instantiation failed for
module "partners.eap"
/etc/raddb/partners/default[41]: Failed to load module "partners.eap".
/etc/raddb/partners/default[28]: Errors parsing authenticate section.



More information about the Freeradius-Users mailing list