<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Good day Alan,<br><br>As I had thought the issue with the EAP packet was the configuration of Cisco access-point. I solved this but now I can not authenticate against Windows 2003 AD using ntlm_auth. This is the complete log:<br><br><br>FreeRADIUS Version 2.1.8, for host i486-pc-linux-gnu, built on Mar 18 2010 at 04:07:54<br>Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. <br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A <br>PARTICULAR PURPOSE. <br>You may redistribute copies of FreeRADIUS under the terms of the <br>GNU General Public License v2. <br>Starting - reading configuration files ...<br>including configuration file /etc/freeradius/radiusd.conf<br>including configuration file /etc/freeradius/proxy.conf<br>including configuration file /etc/freeradius/clients.conf<br>including files in directory /etc/freeradius/modules/<br>including configuration file /etc/freeradius/modules/expr<br>including configuration file /etc/freeradius/modules/detail.example.com<br>including configuration file /etc/freeradius/modules/logintime<br>including configuration file /etc/freeradius/modules/ldap<br>including configuration file /etc/freeradius/modules/checkval<br>including configuration file /etc/freeradius/modules/realm<br>including configuration file /etc/freeradius/modules/mac2ip<br>including configuration file /etc/freeradius/modules/cui<br>including configuration file /etc/freeradius/modules/chap<br>including configuration file /etc/freeradius/modules/echo<br>including configuration file /etc/freeradius/modules/policy<br>including configuration file /etc/freeradius/modules/sql_log<br>including configuration file /etc/freeradius/modules/mschap<br>including configuration file /etc/freeradius/modules/krb5<br>including configuration file /etc/freeradius/modules/pam<br>including configuration file /etc/freeradius/modules/ippool<br>including configuration file /etc/freeradius/modules/attr_rewrite<br>including configuration file /etc/freeradius/modules/etc_group<br>including configuration file /etc/freeradius/modules/ntlm_auth<br>including configuration file /etc/freeradius/modules/perl<br>including configuration file /etc/freeradius/modules/passwd<br>including configuration file /etc/freeradius/modules/mschap.save<br>including configuration file /etc/freeradius/modules/attr_filter<br>including configuration file /etc/freeradius/modules/radutmp<br>including configuration file /etc/freeradius/modules/preprocess<br>including configuration file /etc/freeradius/modules/mac2vlan<br>including configuration file /etc/freeradius/modules/pap<br>including configuration file /etc/freeradius/modules/ntlm_auth.save<br>including configuration file /etc/freeradius/modules/smsotp<br>including configuration file /etc/freeradius/modules/sqlcounter_expire_on_login<br>including configuration file /etc/freeradius/modules/acct_unique<br>including configuration file /etc/freeradius/modules/expiration<br>including configuration file /etc/freeradius/modules/digest<br>including configuration file /etc/freeradius/modules/unix<br>including configuration file /etc/freeradius/modules/always<br>including configuration file /etc/freeradius/modules/otp<br>including configuration file /etc/freeradius/modules/files<br>including configuration file /etc/freeradius/modules/smbpasswd<br>including configuration file /etc/freeradius/modules/inner-eap<br>including configuration file /etc/freeradius/modules/wimax<br>including configuration file /etc/freeradius/modules/linelog<br>including configuration file /etc/freeradius/modules/exec<br>including configuration file /etc/freeradius/modules/detail.log<br>including configuration file /etc/freeradius/modules/detail<br>including configuration file /etc/freeradius/modules/sradutmp<br>including configuration file /etc/freeradius/modules/counter<br>including configuration file /etc/freeradius/eap.conf<br>including configuration file /etc/freeradius/policy.conf<br>including files in directory /etc/freeradius/sites-enabled/<br>including configuration file /etc/freeradius/sites-enabled/default<br>including configuration file /etc/freeradius/sites-enabled/inner-tunnel<br>main {<br> user = "freerad"<br> group = "freerad"<br> allow_core_dumps = no<br>}<br>including dictionary file /etc/freeradius/dictionary<br>main {<br> prefix = "/usr"<br> localstatedir = "/var"<br> logdir = "/var/log/freeradius"<br> libdir = "/usr/lib/freeradius"<br> radacctdir = "/var/log/freeradius/radacct"<br> hostname_lookups = no<br> max_request_time = 30<br> cleanup_delay = 5<br> max_requests = 1024<br> pidfile = "/var/run/freeradius/freeradius.pid"<br> checkrad = "/usr/sbin/checkrad"<br> debug_level = 0<br> proxy_requests = yes<br> log {<br> stripped_names = no<br> auth = no<br> auth_badpass = no<br> auth_goodpass = no<br> }<br> security {<br> max_attributes = 200<br> reject_delay = 1<br> status_server = yes<br> }<br>}<br>radiusd: #### Loading Realms and Home Servers ####<br> proxy server {<br> retry_delay = 5<br> retry_count = 3<br> default_fallback = no<br> dead_time = 120<br> wake_all_if_all_dead = no<br> }<br> home_server localhost {<br> ipaddr = 127.0.0.1<br> port = 1812<br> type = "auth"<br> secret = "testing123"<br> response_window = 20<br> max_outstanding = 65536<br> require_message_authenticator = no<br> zombie_period = 40<br> status_check = "status-server"<br> ping_interval = 30<br> check_interval = 30<br> num_answers_to_alive = 3<br> num_pings_to_alive = 3<br> revive_interval = 120<br> status_check_timeout = 4<br> irt = 2<br> mrt = 16<br> mrc = 5<br> mrd = 30<br> }<br> home_server_pool my_auth_failover {<br> type = fail-over<br> home_server = localhost<br> }<br> realm example.com {<br> auth_pool = my_auth_failover<br> }<br> realm LOCAL {<br> }<br>radiusd: #### Loading Clients ####<br> client localhost {<br> ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> secret = "testing123"<br> nastype = "other"<br> }<br> client localhost {<br> ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> secret = "testing123"<br> nastype = "other"<br> }<br>WARNING: Ignoring duplicate client 127.0.0.1<br> client "Cisco AP's IP address" {<br> require_message_authenticator = no<br> secret = "alejandro"<br> shortname = "cisco_ap1100"<br> nastype = "cisco"<br> }<br> client 129.90.73.0 {<br> require_message_authenticator = no<br> secret = "alejandro"<br> nastype = "cisco"<br> }<br>radiusd: #### Instantiating modules ####<br> instantiate {<br> Module: Linked to module rlm_exec<br> Module: Instantiating exec<br> exec {<br> wait = no<br> input_pairs = "request"<br> shell_escape = yes<br> }<br> Module: Linked to module rlm_expr<br> Module: Instantiating expr<br> Module: Linked to module rlm_expiration<br> Module: Instantiating expiration<br> expiration {<br> reply-message = "Password Has Expired "<br> }<br> Module: Linked to module rlm_logintime<br> Module: Instantiating logintime<br> logintime {<br> reply-message = "You are calling outside your allowed timespan "<br> minimum-timeout = 60<br> }<br> }<br>radiusd: #### Loading Virtual Servers ####<br>server inner-tunnel {<br> modules {<br> Module: Checking authenticate {...} for more modules to load<br> Module: Instantiating ntlm_auth<br> exec ntlm_auth {<br> wait = yes<br> program = "/usr/bin/ntlm_auth --request-nt-key --domain=MyDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"<br> input_pairs = "request"<br> shell_escape = yes<br> }<br> Module: Linked to module rlm_pap<br> Module: Instantiating pap<br> pap {<br> encryption_scheme = "auto"<br> auto_header = no<br> }<br> Module: Linked to module rlm_chap<br> Module: Instantiating chap<br> Module: Linked to module rlm_mschap<br> Module: Instantiating mschap<br> mschap {<br> use_mppe = yes<br> require_encryption = no<br> require_strong = no<br> with_ntdomain_hack = yes<br> ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{User-Name:-None}} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"<br> }<br> Module: Linked to module rlm_unix<br> Module: Instantiating unix<br> unix {<br> radwtmp = "/var/log/freeradius/radwtmp"<br> }<br> Module: Linked to module rlm_eap<br> Module: Instantiating eap<br> eap {<br> default_eap_type = "peap"<br> timer_expire = 60<br> ignore_unknown_eap_types = no<br> cisco_accounting_username_bug = no<br> max_sessions = 4096<br> }<br> Module: Linked to sub-module rlm_eap_md5<br> Module: Instantiating eap-md5<br> Module: Linked to sub-module rlm_eap_leap<br> Module: Instantiating eap-leap<br> Module: Linked to sub-module rlm_eap_gtc<br> Module: Instantiating eap-gtc<br> gtc {<br> challenge = "Password: "<br> auth_type = "PAP"<br> }<br> Module: Linked to sub-module rlm_eap_tls<br> Module: Instantiating eap-tls<br> tls {<br> rsa_key_exchange = no<br> dh_key_exchange = yes<br> rsa_key_length = 512<br> dh_key_length = 512<br> verify_depth = 0<br> pem_file_type = yes<br> private_key_file = "/etc/freeradius/certs/server_keycert.pem"<br> certificate_file = "/etc/freeradius/certs/server_keycert.pem"<br> CA_file = "/etc/freeradius/certs/cacert.pem"<br> private_key_password = "whatever"<br> dh_file = "/etc/freeradius/certs/dh"<br> random_file = "/etc/freeradius/certs/random"<br> fragment_size = 1024<br> include_length = yes<br> check_crl = no<br> check_cert_cn = "%{User-Name}"<br> cipher_list = "DEFAULT"<br> make_cert_command = "/etc/freeradius/certs/bootstrap"<br> cache {<br> enable = no<br> lifetime = 24<br> max_entries = 255<br> }<br> }<br> Module: Linked to sub-module rlm_eap_ttls<br> Module: Instantiating eap-ttls<br> ttls {<br> default_eap_type = "peap"<br> copy_request_to_tunnel = no<br> use_tunneled_reply = no<br> virtual_server = "inner-tunnel"<br> include_length = yes<br> }<br> Module: Linked to sub-module rlm_eap_peap<br> Module: Instantiating eap-peap<br> peap {<br> default_eap_type = "mschapv2"<br> copy_request_to_tunnel = no<br> use_tunneled_reply = no<br> proxy_tunneled_request_as_eap = yes<br> virtual_server = "inner-tunnel"<br> }<br> Module: Linked to sub-module rlm_eap_mschapv2<br> Module: Instantiating eap-mschapv2<br> mschapv2 {<br> with_ntdomain_hack = no<br> }<br> Module: Checking authorize {...} for more modules to load<br> Module: Linked to module rlm_realm<br> Module: Instantiating suffix<br> realm suffix {<br> format = "suffix"<br> delimiter = "@"<br> ignore_default = no<br> ignore_null = no<br> }<br> Module: Linked to module rlm_files<br> Module: Instantiating files<br> files {<br> usersfile = "/etc/freeradius/users"<br> acctusersfile = "/etc/freeradius/acct_users"<br> preproxy_usersfile = "/etc/freeradius/preproxy_users"<br> compat = "no"<br> }<br> Module: Checking session {...} for more modules to load<br> Module: Linked to module rlm_radutmp<br> Module: Instantiating radutmp<br> radutmp {<br> filename = "/var/log/freeradius/radutmp"<br> username = "%{User-Name}"<br> case_sensitive = yes<br> check_with_nas = yes<br> perm = 384<br> callerid = yes<br> }<br> Module: Checking post-proxy {...} for more modules to load<br> Module: Checking post-auth {...} for more modules to load<br> Module: Linked to module rlm_attr_filter<br> Module: Instantiating attr_filter.access_reject<br> attr_filter attr_filter.access_reject {<br> attrsfile = "/etc/freeradius/attrs.access_reject"<br> key = "%{User-Name}"<br> }<br> } # modules<br>} # server<br>server {<br> modules {<br> Module: Checking authenticate {...} for more modules to load<br> Module: Checking authorize {...} for more modules to load<br> Module: Linked to module rlm_preprocess<br> Module: Instantiating preprocess<br> preprocess {<br> huntgroups = "/etc/freeradius/huntgroups"<br> hints = "/etc/freeradius/hints"<br> with_ascend_hack = no<br> ascend_channels_per_line = 23<br> with_ntdomain_hack = no<br> with_specialix_jetstream_hack = no<br> with_cisco_vsa_hack = no<br> with_alvarion_vsa_hack = no<br> }<br> Module: Checking preacct {...} for more modules to load<br> Module: Linked to module rlm_acct_unique<br> Module: Instantiating acct_unique<br> acct_unique {<br> key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"<br> }<br> Module: Checking accounting {...} for more modules to load<br> Module: Linked to module rlm_detail<br> Module: Instantiating detail<br> detail {<br> detailfile = "/var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d"<br> header = "%t"<br> detailperm = 384<br> dirperm = 493<br> locking = no<br> log_packet_header = no<br> }<br> Module: Instantiating attr_filter.accounting_response<br> attr_filter attr_filter.accounting_response {<br> attrsfile = "/etc/freeradius/attrs.accounting_response"<br> key = "%{User-Name}"<br> }<br> Module: Checking session {...} for more modules to load<br> Module: Checking post-proxy {...} for more modules to load<br> Module: Checking post-auth {...} for more modules to load<br> } # modules<br>} # server<br>radiusd: #### Opening IP addresses and Ports ####<br>listen {<br> type = "auth"<br> ipaddr = *<br> port = 0<br>}<br>listen {<br> type = "acct"<br> ipaddr = *<br> port = 0<br>}<br>Listening on authentication address * port 1645<br>Listening on accounting address * port 1646<br>Listening on proxy address * port 1647<br>Ready to process requests.<br><br>rad_recv: Access-Request packet from host "Cisco AP's IP address" port 1645, id=55, length=236<br> User-Name = "MyDOMAIN\\ORTEGACA"<br> Framed-MTU = 1400<br> Called-Station-Id = "0040.96a0.088f"<br> Calling-Station-Id = "001f.3c28.46f3"<br> Service-Type = Login-User<br> Message-Authenticator = 0xe43ae3c3e67164ede561a0c37dd2b6e9<br> EAP-Message = 0x0203005019800000004616030100410100003d03014baba5286a0713455be389a185e990e164e70a5b93f45a52ebe45aaa1b85184000001600040005000a000900640062000300060013001200630100<br> NAS-Port-Type = Wireless-802.11<br> NAS-Port = 3127<br> State = 0x89f4148c89f70db4f66551dcf5baf778<br> NAS-IP-Address = "Cisco AP's IP address"<br> NAS-Identifier = "mw-ltqN1-P3-01"<br>+- entering group authorize {...}<br>++[preprocess] returns ok<br>++[chap] returns noop<br>++[mschap] returns noop<br>[suffix] No '@' in User-Name = "MyDOMAIN\ORTEGACA", looking up realm NULL<br>[suffix] No such realm "NULL"<br>++[suffix] returns noop<br>[eap] EAP packet type response id 3 length 80<br>[eap] Continuing tunnel setup.<br>++[eap] returns ok<br>Found Auth-Type = EAP<br>+- entering group authenticate {...}<br>[eap] Request found, released from the list<br>[eap] EAP/peap<br>[eap] processing type peap<br>[peap] processing EAP-TLS<br> TLS Length 70<br>[peap] Length Included<br>[peap] eaptls_verify returned 11 <br>[peap] (other): before/accept initialization <br>[peap] TLS_accept: before/accept initialization <br>[peap] <<< TLS 1.0 Handshake [length 0041], ClientHello <br>[peap] TLS_accept: SSLv3 read client hello A <br>[peap] >>> TLS 1.0 Handshake [length 002a], ServerHello <br>[peap] TLS_accept: SSLv3 write server hello A <br>[peap] >>> TLS 1.0 Handshake [length 05e9], Certificate <br>[peap] TLS_accept: SSLv3 write certificate A <br>[peap] >>> TLS 1.0 Handshake [length 0004], ServerHelloDone <br>[peap] TLS_accept: SSLv3 write server done A <br>[peap] TLS_accept: SSLv3 flush data <br>[peap] TLS_accept: Need to read more data: SSLv3 read client certificate A<br>In SSL Handshake Phase <br>In SSL Accept mode <br>[peap] eaptls_process returned 13 <br>[peap] EAPTLS_HANDLED<br>++[eap] returns handled<br>Sending Access-Challenge of id 55 to "Cisco AP's IP address" port 1645<br> EAP-Message = 0x0104040019c000000626160301002a0200002603014bab65d766175fa0a433d1d3a2bbd34b85a7d51bb315b370859504fb0c7925a70000040016030105e90b0005e50005e200029930820295308201fea003020102020101300d06092a864886f70d01010505003079310b30090603550406130256453110300e060355040813074d6972616e64613110300e060355040a1307496e7465766570310c300a060355040b1303414954311530130603550403130c4365736172204f72746567613121301f06092a864886f70d01090116126f727465676163614070647673612e636f6d301e170d3130303331383138353134315a170d3131303331383138<br> EAP-Message = 0x353134315a30818e310b30090603550406130256453110300e060355040813074d6972616e6461311330110603550407130a4c6f73205465717565733110300e060355040a1307496e7465766570310c300a060355040b1303414954311530130603550403130c4365736172204f72746567613121301f06092a864886f70d01090116126f727465676163614070647673612e636f6d30819f300d06092a864886f70d010101050003818d0030818902818100ad290c8fce123792ce45a4d273abb9074a42fcdbf596c9422a3aba43d1d9c9f9d28451acc5feea9991aa69c953a817179d222f09f7addc6b922fc69c21264f8673b0f43d62750e404bfc<br> EAP-Message = 0x7579371c0773ef3ccbc7c45e3b6d6bc87c546d67dcbc1f7abd684be108f0e0667592491e2a81bd8c4f3718a63e5692bbeb930dced3290203010001a317301530130603551d25040c300a06082b06010505070301300d06092a864886f70d010105050003818100152201193519d3213811a4b4cc453d0e1125201691d1d59b1337b16d89766b6c81bc55d5b81a648e3fe842319045d63b953039bc9178c0d15ab70947db33bcba8299e09bdc6ac3cfdc610624085ac42b92a145b0db6e92015e1452a25bd7b858291e832df06920153e4b4b3856c3be253a3286f6ab2a96e96a61795ae7dc6a970003433082033f308202a8a003020102020100300d06<br> EAP-Message = 0x092a864886f70d01010505003079310b30090603550406130256453110300e060355040813074d6972616e64613110300e060355040a1307496e7465766570310c300a060355040b1303414954311530130603550403130c4365736172204f72746567613121301f06092a864886f70d01090116126f727465676163614070647673612e636f6d301e170d3130303331383135323332375a170d3133303331373135323332375a3079310b30090603550406130256453110300e060355040813074d6972616e64613110300e060355040a1307496e7465766570310c300a060355040b1303414954311530130603550403130c4365736172204f727465<br> EAP-Message = 0x67613121301f06092a864886<br> Message-Authenticator = 0x00000000000000000000000000000000<br> State = 0x89f4148c88f00db4f66551dcf5baf778<br><br><font style="" color="#4f81bd"><br></font><font style="" color="#4f81bd">My /etc/freeradius/modules/mschap file is:</font><br><br>mschap {<br> with_ntdomain_hack = yes<br> ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{mschap:User-Name:-None} --domain=%{%{mschap:NT-Domain}:-PDVSA2000} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"<br>}<br><br><font style="" color="#4f81bd">eap.conf</font><br><br>eap { <br> default_eap_type = peap<br><br><br>tls {<br> certdir = ${confdir}/certs<br> cadir = ${confdir}/certs<br> private_key_password = whatever<br> private_key_file = ${certdir}/server_keycert.pem<br> certificate_file = ${certdir}/server_keycert.pem<br> CA_file = ${cadir}/cacert.pem<br> dh_file = ${certdir}/dh<br> random_file = ${certdir}/random<br> fragment_size = 1024<br> include_length = yes<br> check_cert_cn = %{User-Name}<br> cipher_list = "DEFAULT"<br> }<br>}<br> <br>Everything is default. The question is: Why EAP - PEAP with ntlm_auth does not works? I feel I am pretty close to get my freeradius server works... :-(<br><br>Thank you,<br><br>Cesar<br><br><hr id="stopSpelling">From: cesar8489@hotmail.com<br>To: freeradius-users@lists.freeradius.org<br>Subject: RE: EAP (PEAP)+ntlm_auth doesn't send password by it self<br>Date: Mon, 22 Mar 2010 19:49:41 -0400<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
Hi Alan,<br>
<br>
> Date: Sun, 21 Mar 2010 16:19:28 +0000<br>> From: A.L.M.Buxey@lboro.ac.uk<br>> To: freeradius-users@lists.freeradius.org<br>> Subject: Re: EAP (PEAP)+ntlm_auth doesn't send password by it self<br>> <br>> Hi,<br>> <br>> > [ntlm_auth] WARNING: Deprecated conditional expansion ":-". See "man unlang" for details<br>> > [ntlm_auth] ... expanding second conditional<br>> <br>> you still havent fixed that basic thing - check out the default config from<br>> the 2.1.8 tarball<br><br>
Today I tried unsuccessful to figure out how solve the ":-" issue. I read "man unlang" but I could not find anything...<br>
<br>> > [ntlm_auth] No MS-CHAP-Challenge in the request.<br>> > [ntlm_auth] expand: --challenge=%{mschap:Challenge:-00} -> --challenge=<br>> > [ntlm_auth] No MS-CHAP-Response or MS-CHAP2-Response was found in the request.<br>> > [ntlm_auth] expand: --nt-response=%{mschap:NT-Response:-00} -> --nt-response=<br>> > hex decode of failed! (only got 0 bytes)<br>> <br>> okay - so no challenge in the request - so what type of EAP authentication<br>> are you doing?<br><br>I have been thinking it could be by a wrong configuration of the Cisco AP 1100. I will follow the instructions described at <a href="http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c40b6.shtml#NetEAP">http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c40b6.shtml#NetEAP</a><br>
<br>However, I just want to do transparent authentications using PEAP with Microsoft Challenge Authentication Protocol (MS-CHAP) Version 2 without certificates (have you a recipe?)(<a href="http://cisco.com/en/US/prod/collateral/wireless/ps5678/ps430/prod_qas0900aecd801764f1_ps4570_Products_Q_and_A_Item.html">http://cisco.com/en/US/prod/collateral/wireless/ps5678/ps430/prod_qas0900aecd801764f1_ps4570_Products_Q_and_A_Item.html</a>)<br>
<br>I will let you know as soon as put my hands in action again.<br><br>
Cesar<br>
<br> <br> <br><hr>Connect to the next generation of MSN Messenger <a href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline">Get it now! </a> <br /><hr />Connect to the next generation of MSN Messenger <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>