eap module change between 2.1.11 & 2.1.12 ?
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.
On 25/10/11 10:54, Fred wrote:
rlm_eap: SSL error error:140DB111:SSL routines:SSL_CTX_set_session_id_context:ssl session id context too long
Ugh. OpenSSL really is a horrible, horrible piece of software. Are you sure there is absolutely no other change than going from 2.1.11 to 2.1.12 - there's nothing in the EAP & SSL routines that should cause this - or rather, it should break under 2.1.11 just the same. If you downgrade, using the exact same config as you have now, does it work? The problem seems to be that OpenSSL has this tedious thing where, if you are caching sessions, you have to set a "name" for a given SSL context. Then if the programmer stores a session to e.g. SQL and tries to re-import it, if the "name" doesn't match, it errors out. This name field is short, and FreeRADIUS is probably trying to put too much data into it. You have two options - name your other EAP module shorter: eap pt-eap { ... } Or, try this: eap partner-eap { ... tls { cache { name = A } } } I'll roll a patch up for the underlying issue. It's odd that no-one else is seeing it though.
Hi Alan, While waiting for a fix on github, (I will not be able to rebuild my servers today) I try to make a workaround, as due to this SSL problem, I cannot have anymore default eap config including virtual_server = inner-tunnel partners eap config including some virtual_server = partners.inner-tunnel When server sees Inner-Identity, it normally proxies request to inner-tunnel (by setting FreeRADIUS-Proxied-To = 127.0.0.1) Here is what I would like to get : default inner-tunnel proxied to LOCAL (127.0.0.1) partners inner-tunnel proxied to ???? (127.0.0.2) Please confirm if those loopback IPs refer to a proxy listen or to inner-tunnels author and authent listen IPs ? Best regards, Fred 2011/10/25 Alan DeKok <aland@deployingradius.com>:
Phil Mayers wrote:
Ugh. OpenSSL really is a horrible, horrible piece of software.
Yup.
I'll roll a patch up for the underlying issue. It's odd that no-one else is seeing it though.
I've taken your fix from github and added it to v2.1.x && master branches.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 25/10/11 14:25, Fred wrote:
Hi Alan, While waiting for a fix on github, (I will not be able to rebuild my servers today) I try to make a workaround, as due to this SSL problem, I cannot have anymore
As per my email - there are other options. You can make your EAP module name shorter; or you can specify the: eap { tls { cache { name = A } } } ...the idea being to make "name" a SHORT string. Then it should work. Have you tried this?
Hi Phil, Unfortunately, shortening eap module instance name to eap2 seems to give same result. Best regards, Fred 2011/10/25 Phil Mayers <p.mayers@imperial.ac.uk>:
On 25/10/11 14:25, Fred wrote:
Hi Alan, While waiting for a fix on github, (I will not be able to rebuild my servers today) I try to make a workaround, as due to this SSL problem, I cannot have anymore
As per my email - there are other options.
You can make your EAP module name shorter; or you can specify the:
eap { tls { cache { name = A } } }
...the idea being to make "name" a SHORT string. Then it should work. Have you tried this? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
radiusd -Xxxxx follows : 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/eap.conf 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/policy.conf including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/inner-tunnel including configuration file /etc/raddb/sites-enabled/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/default including configuration file /etc/raddb/sites-enabled/control-socket including configuration file /etc/raddb/sites-enabled/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 127.0.0.1 { ipaddr = 127.0.0.1 require_message_authenticator = no secret = "testing123" } client 127.0.0.2 { ipaddr = 127.0.0.2 require_message_authenticator = no secret = "testing123" } 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_mschap Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap mschap { use_mppe = yes require_encryption = yes require_strong = yes 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 = "cn" groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))" 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: 0x2b56200fcc90 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 = no 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: 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_realm Module: Instantiating module "suffix" from file /etc/raddb/modules/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } Module: Linked to module rlm_detail 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 "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: 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: Linked to module rlm_attr_filter 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 "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 inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel modules { Module: Checking authenticate {...} for more modules to load Module: Linked to module rlm_chap Module: Instantiating module "chap" from file /etc/raddb/modules/chap Module: Checking authorize {...} for more modules to load Module: Linked to module rlm_always Module: Instantiating module "reject" from file /etc/raddb/modules/always always reject { rcode = "reject" simulcount = 0 mpp = no } Module: Checking post-proxy {...} for more modules to load Module: Checking post-auth {...} for more modules to load } # modules } # server server partners { # from file /etc/raddb/sites-enabled/partners modules { Module: Creating Auth-Type = eap2 Module: Checking authenticate {...} for more modules to load Module: Instantiating module "eap2" from file /etc/raddb/partners/modules/partners.eap eap eap2 { 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_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 = no lifetime = 6 max_entries = 8192 name = "A" } } 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 "eap2" /etc/raddb/partners/default[43]: Failed to load module "eap2". /etc/raddb/partners/default[30]: Errors parsing authenticate section. 2011/10/25 Fred <fred.maison@gmail.com>:
Hi Phil, Unfortunately, shortening eap module instance name to eap2 seems to give same result. Best regards, Fred
2011/10/25 Phil Mayers <p.mayers@imperial.ac.uk>:
On 25/10/11 14:25, Fred wrote:
Hi Alan, While waiting for a fix on github, (I will not be able to rebuild my servers today) I try to make a workaround, as due to this SSL problem, I cannot have anymore
As per my email - there are other options.
You can make your EAP module name shorter; or you can specify the:
eap { tls { cache { name = A } } }
...the idea being to make "name" a SHORT string. Then it should work. Have you tried this? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 25/10/11 16:10, Fred wrote:
cache { enable = no lifetime = 6 max_entries = 8192 name = "A" } } rlm_eap: SSL error error:140DB111:SSL routines:SSL_CTX_set_session_id_context:ssl session id context too long
I don't know why this isn't working. The un-patched 2.1.12 code builds the "session id context" as: "FreeRADIUS EAP-TLS %s" eap->tls->cache->name If "name" is a one-char string, that should be <32 characters which is the value of SSL_MAX_SSL_SESSION_ID_LENGTH (on my system). Sorry. Can't help. Try the patch and see if it works. Maybe this isn't your problem; are you SURE it works using the EXACT same config under 2.1.11?
Phil, Yes, I am sure, but I don't have traces on hand... I will try to get some radiusd -X on 2.1.11 ASAP, as I can't do it now because I try to find a solution as I have to restart production in the next few hours ... Anyway, Thank a lot for your kind help attempts. Fred 2011/10/25 Phil Mayers <p.mayers@imperial.ac.uk>:
On 25/10/11 16:10, Fred wrote:
cache { enable = no lifetime = 6 max_entries = 8192 name = "A" } } rlm_eap: SSL error error:140DB111:SSL routines:SSL_CTX_set_session_id_context:ssl session id context too long
I don't know why this isn't working. The un-patched 2.1.12 code builds the "session id context" as:
"FreeRADIUS EAP-TLS %s" eap->tls->cache->name
If "name" is a one-char string, that should be <32 characters which is the value of SSL_MAX_SSL_SESSION_ID_LENGTH (on my system).
Sorry. Can't help. Try the patch and see if it works.
Maybe this isn't your problem; are you SURE it works using the EXACT same config under 2.1.11? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
2011/10/25 Fred <fred.maison@gmail.com>:
Phil, Yes, I am sure, but I don't have traces on hand... I will try to get some radiusd -X on 2.1.11 ASAP, as I can't do it now because I try to find a solution as I have to restart production in the next few hours ... Anyway, Thank a lot for your kind help attempts. Fred
2011/10/25 Phil Mayers <p.mayers@imperial.ac.uk>:
On 25/10/11 16:10, Fred wrote:
cache { enable = no lifetime = 6 max_entries = 8192 name = "A" } } rlm_eap: SSL error error:140DB111:SSL routines:SSL_CTX_set_session_id_context:ssl session id context too long
I don't know why this isn't working. The un-patched 2.1.12 code builds the "session id context" as:
"FreeRADIUS EAP-TLS %s" eap->tls->cache->name
If "name" is a one-char string, that should be <32 characters which is the value of SSL_MAX_SSL_SESSION_ID_LENGTH (on my system).
Sorry. Can't help. Try the patch and see if it works.
Maybe this isn't your problem; are you SURE it works using the EXACT same config under 2.1.11? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Fred wrote:
Hi Phil, Unfortunately, shortening eap module instance name to eap2 seems to give same result.
See http://git.freeradius.org/ Grab the v2.1.x branch. It should work. Alan DeKok.
participants (3)
-
Alan DeKok -
Fred -
Phil Mayers