I'm trying to configure freeradius2.0.3 to authenticate wireless users
against AD.
I followed the steps as mentioned in http://deployingradius.com/ and
installation document still not working. The ntlm_auth command is success
and it lists the users and groups from AD using wbinfo -u and wbinfo -g. Now
i see new error message after reconfiguring freeradius server, issue with
SSL.
Installed CA.der certificate alone on the windows xp supplicant, i didnt
generate individual client certificate as i dont want the users to be have
less task to configure wireless . As per my understanding and in previous
freeradius it worked this way installing root.der certificate alone and
without individual supplicant certificate.
I'm unable to authenticate the users against AD. can someone throw some
light here. Attached the log message.
snip =>
rlm_eap_tls: Length Included
eaptls_verify returned 11
(other): before/accept initialization
TLS_accept: before/accept initialization
TLS_accept: SSLv3 read client hello A
TLS_accept: SSLv3 write server hello A
TLS_accept: SSLv3 write certificate A
TLS Alert write:fatal:handshake failure
TLS_accept:error in SSLv3 write key exchange A
rlm_eap: SSL error error:1409B0AC:SSL
routines:SSL3_SEND_SERVER_KEY_EXCHANGE:missing tmp rsa key
rlm_eap_tls: SSL_read failed in a system call (-1), TLS session fails.
eaptls_process returned 13
rlm_eap_peap: EAPTLS_HANDLED
rlm_eap: Freeing handler
++[eap] returns reject
auth: Failed to validate the user.
Login incorrect: [DOMAIN\\kartthikr/<via Auth-Type = EAP>] (from client
10.20.0.0 port 60 cli 0014a526c319)
FreeRADIUS Version 2.0.3, for host i686-pc-linux-gnu, built on May 20 2008 at
11:06:16
Copyright (C) 1999-2008 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.
Starting - reading configuration files ...
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/radiusd.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/proxy.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/clients.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/snmp.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/eap.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/sql.conf
including configuration file
/tools/IT/freeradius2.0.3/etc/raddb/sql/mysql/dialup.conf
including configuration file
/tools/IT/freeradius2.0.3/etc/raddb/sql/mysql/counter.conf
including configuration file /tools/IT/freeradius2.0.3/etc/raddb/policy.conf
including files in directory /tools/IT/freeradius2.0.3/etc/raddb/sites-enabled/
including configuration file
/tools/IT/freeradius2.0.3/etc/raddb/sites-enabled/default
including dictionary file /tools/IT/freeradius2.0.3/etc/raddb/dictionary
main {
prefix = "/tools/IT/freeradius2.0.3"
localstatedir = "/tools/IT/freeradius2.0.3/var"
logdir = "/tools/IT/freeradius2.0.3/var/log/radius"
libdir = "/tools/IT/freeradius2.0.3/lib"
radacctdir = "/tools/IT/freeradius2.0.3/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 2560
allow_core_dumps = no
pidfile = "/tools/IT/freeradius2.0.3/var/run/radiusd/radiusd.pid"
checkrad = "/tools/IT/freeradius2.0.3/sbin/checkrad"
debug_level = 0
proxy_requests = no
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
}
client 10.20.0.0/24 {
require_message_authenticator = no
secret = "<stripped>"
shortname = "10.20.0.0"
nastype = "other"
}
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
zombie_period = 40
status_check = "status-server"
ping_check = "none"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating exec
exec {
wait = yes
input_pairs = "request"
shell_escape = yes
}
Module: Linked to module rlm_expr
Module: Instantiating expr
Module: Linked to module rlm_expiration
Module: Instantiating expiration
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating logintime
logintime {
reply-message = "You are calling outside your allowed timespan "
minimum-timeout = 60
}
}
radiusd: #### Loading Virtual Servers ####
server {
modules {
Module: Checking authenticate {...} for more modules to load
Module: Instantiating ntlm_auth
exec ntlm_auth {
wait = no
program = "/usr/bin/ntlm_auth ntlm_auth --request-nt-key
--domain=DOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
input_pairs = "request"
shell_escape = yes
}
Module: Linked to module rlm_pap
Module: Instantiating pap
pap {
encryption_scheme = "auto"
auto_header = no
}
Module: Linked to module rlm_chap
Module: Instantiating chap
Module: Linked to module rlm_mschap
Module: Instantiating mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = no
ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key
--username=%{mschap:User-Name:-None} --domain=%{mschap:NT-Domain:-DOMAIN}
--challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"
}
Module: Linked to module rlm_unix
Module: Instantiating unix
unix {
radwtmp = "/tools/IT/freeradius2.0.3/var/log/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating eap
eap {
default_eap_type = "peap"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
}
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 = 512
dh_key_length = 512
verify_depth = 0
pem_file_type = yes
private_key_file =
"/tools/IT/freeradius2.0.3/etc/raddb/certs/server.pem"
certificate_file =
"/tools/IT/freeradius2.0.3/etc/raddb/certs/server.pem"
CA_file = "/tools/IT/freeradius2.0.3/etc/raddb/certs/ca.pem"
private_key_password = "<stripped>"
dh_file = "/tools/IT/freeradius2.0.3/etc/raddb/certs/dh"
random_file = "/tools/IT/freeradius2.0.3/etc/raddb/certs/random"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
}
Module: Linked to sub-module rlm_eap_ttls
Module: Instantiating eap-ttls
ttls {
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
}
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 = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
}
Module: Linked to sub-module rlm_eap_mschapv2
Module: Instantiating eap-mschapv2
mschapv2 {
with_ntdomain_hack = no
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating preprocess
preprocess {
huntgroups = "/tools/IT/freeradius2.0.3/etc/raddb/huntgroups"
hints = "/tools/IT/freeradius2.0.3/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 suffix
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
Module: Linked to module rlm_files
Module: Instantiating files
files {
usersfile = "/tools/IT/freeradius2.0.3/etc/raddb/users"
acctusersfile = "/tools/IT/freeradius2.0.3/etc/raddb/acct_users"
preproxy_usersfile =
"/tools/IT/freeradius2.0.3/etc/raddb/preproxy_users"
compat = "no"
}
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating acct_unique
acct_unique {
key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address,
NAS-Port"
}
Module: Checking accounting {...} for more modules to load
Module: Linked to module rlm_detail
Module: Instantiating detail
detail {
detailfile =
"/tools/IT/freeradius2.0.3/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Linked to module rlm_radutmp
Module: Instantiating radutmp
radutmp {
filename = "/tools/IT/freeradius2.0.3/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
perm = 384
callerid = yes
}
Module: Linked to module rlm_attr_filter
Module: Instantiating attr_filter.accounting_response
attr_filter attr_filter.accounting_response {
attrsfile =
"/tools/IT/freeradius2.0.3/etc/raddb/attrs.accounting_response"
key = "%{User-Name}"
}
Module: Checking session {...} for more modules to load
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
Module: Instantiating attr_filter.access_reject
attr_filter attr_filter.access_reject {
attrsfile = "/tools/IT/freeradius2.0.3/etc/raddb/attrs.access_reject"
key = "%{User-Name}"
}
}
}
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
}
listen {
type = "acct"
ipaddr = *
port = 0
}
main {
snmp = no
smux_password = ""
snmp_write_access = no
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Ready to process requests.
rad_recv: Access-Request packet from host 10.20.0.253 port 3072, id=0,
length=141
User-Name = "DOMAIN\\kartthikr"
NAS-IP-Address = 10.20.0.253
Called-Station-Id = "0014bf72d6be"
Calling-Station-Id = "0014a526c319"
NAS-Identifier = "0014bf72d6be"
NAS-Port = 60
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
EAP-Message = 0x0200001301434f52505c6b6172747468696b72
Message-Authenticator = 0xef0d5c1960aeb2ddb50413db89c8754a
+- entering group authorize
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
rlm_realm: No '@' in User-Name = "DOMAIN\kartthikr", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
rlm_eap: EAP packet type response id 0 length 19
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[unix] returns notfound
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
rlm_pap: WARNING! No "known good" password found for the user. Authentication
may fail because of this.
++[pap] returns noop
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
+- entering group authenticate
rlm_eap: EAP Identity
rlm_eap: processing type tls
rlm_eap_tls: Initiate
rlm_eap_tls: Start returned 1
++[eap] returns handled
Sending Access-Challenge of id 0 to 10.20.0.253 port 3072
EAP-Message = 0x010100061920
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x8a0c18108a0d01ab8ea025cd6d60e9c9
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 10.20.0.253 port 3072, id=0,
length=252
Cleaning up request 0 ID 0 with timestamp +54
User-Name = "DOMAIN\\kartthikr"
NAS-IP-Address = 10.20.0.253
Called-Station-Id = "0014bf72d6be"
Calling-Station-Id = "0014a526c319"
NAS-Identifier = "0014bf72d6be"
NAS-Port = 60
Framed-MTU = 1400
State = 0x8a0c18108a0d01ab8ea025cd6d60e9c9
NAS-Port-Type = Wireless-802.11
EAP-Message =
0x0201007019800000006616030100610100005d03014834b68f4798fad683f62a21b49b9024c40661e716346e929274cdc1d57d1a17205538f424057b88eb60c9b85621ecea4266ed394996cbb23afe516cdd199d1063001600040005000a000900640062000300060013001200630100
Message-Authenticator = 0xbf0f8c0db5bd1b79c96122406e977093
+- entering group authorize
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
rlm_realm: No '@' in User-Name = "DOMAIN\kartthikr", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
rlm_eap: EAP packet type response id 1 length 112
rlm_eap: Continuing tunnel setup.
++[eap] returns ok
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
+- entering group authenticate
rlm_eap: Request found, released from the list
rlm_eap: EAP/peap
rlm_eap: processing type peap
rlm_eap_peap: Authenticate
rlm_eap_tls: processing TLS
TLS Length 102
rlm_eap_tls: Length Included
eaptls_verify returned 11
(other): before/accept initialization
TLS_accept: before/accept initialization
TLS_accept: SSLv3 read client hello A
TLS_accept: SSLv3 write server hello A
TLS_accept: SSLv3 write certificate A
TLS Alert write:fatal:handshake failure
TLS_accept:error in SSLv3 write key exchange A
rlm_eap: SSL error error:1409B0AC:SSL
routines:SSL3_SEND_SERVER_KEY_EXCHANGE:missing tmp rsa key
rlm_eap_tls: SSL_read failed in a system call (-1), TLS session fails.
eaptls_process returned 13
rlm_eap_peap: EAPTLS_HANDLED
rlm_eap: Freeing handler
++[eap] returns reject
auth: Failed to validate the user.
Login incorrect: [DOMAIN\\kartthikr/<via Auth-Type = EAP>] (from client
10.20.0.0 port 60 cli 0014a526c319)
Found Post-Auth-Type Reject
+- entering group REJECT
expand: %{User-Name} -> DOMAIN\kartthikr
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 1 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 1
Sending Access-Reject of id 0 to 10.20.0.253 port 3072
EAP-Message = 0x04010004
Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 4.9 seconds.
Cleaning up request 1 ID 0 with timestamp +54
Ready to process requests.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html