Hi guys ,<br><br>Im trying to authenticate freeradius against passwd , but i keep getting Login Incorrect error , im doing EAP/PEAP mschapv2<br>I dont know what im missing<br>I can perform a radtest with sucess .<br>Here is the ouput <br>
<br>rad_recv: Access-Request packet from host 192.168.0.1 port 2048, id=187, length=232<br> User-Name = "momo"<br> NAS-Port = 0<br> Called-Station-Id = "00-22-B0-45-DF-69:SapoNet"<br> Calling-Station-Id = "00-22-FB-73-31-DA"<br>
Framed-MTU = 1400<br> NAS-Port-Type = Wireless-802.11<br> Connect-Info = "CONNECT 11Mbps 802.11b"<br> EAP-Message = 0x02080050190017030100201c877f9482d13faf8e1619e14f1e0d909fa7983b184bb9f05c95a6cb6a845796170301002049a23598867fa02bfcf83108e8cb2130d7ebda59dd41304c300ea048c8bfa68d<br>
State = 0xad18a6f8aa10bf33ac12d56bfa8b4024<br> Message-Authenticator = 0xc8a9f7c084d0b839d9340a38c5e328aa<br>+- entering group authorize {...}<br>++[preprocess] returns ok<br> ++[unix] returns updated<br>[eap] EAP packet type response id 8 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>
[peap] eaptls_verify returned 7 <br>[peap] Done initial handshake<br>[peap] eaptls_process returned 7 <br>[peap] EAPTLS_OK<br>[peap] Session established. Decoding tunneled attributes.<br>[peap] Received EAP-TLV response.<br>
[peap] The users session was previously rejected: returning reject (again.)<br>[peap] *** This means you need to read the PREVIOUS messages in the debug output<br>[peap] *** to find out the reason why the user was rejected.<br>
[peap] *** Look for "reject" or "fail". Those earlier messages will tell you.<br>[peap] *** what went wrong, and how to fix the problem.<br>[eap] Handler failed in EAP/peap<br>[eap] Failed in EAP select<br>
++[eap] returns invalid<br>Failed to authenticate the user.<br>Login incorrect: [momo/<via Auth-Type = EAP>] (from client SapoNet port 0 cli 00-22-FB-73-31-DA)<br>Delaying reject of request 26 for 1 seconds<br>Going to the next request<br>
Waking up in 0.9 seconds.<br>Sending delayed reject for request 26<br>Sending Access-Reject of id 187 to 192.168.0.1 port 2048<br> EAP-Message = 0x04080004<br> Message-Authenticator = 0x00000000000000000000000000000000<br>
Waking up in 1.0 seconds.<br><br><br>Here is the conf<br>main {<br> user = "root"<br> group = "root"<br> allow_core_dumps = no<br>}<br>including dictionary file /etc/raddb/dictionary<br>main {<br>
prefix = "/usr"<br> localstatedir = "/var"<br> logdir = "/var/log/radius"<br> libdir = "/usr/lib/freeradius"<br> radacctdir = "/var/log/radius/radacct"<br>
hostname_lookups = no<br> max_request_time = 30<br> cleanup_delay = 5<br> max_requests = 1024<br> pidfile = "/var/run/radiusd/radiusd.pid"<br> checkrad = "/usr/sbin/checkrad"<br> debug_level = 0<br>
proxy_requests = yes<br> log {<br> stripped_names = no<br> auth = yes<br> auth_badpass = yes<br> auth_goodpass = yes<br> }<br> security {<br> max_attributes = 200<br> reject_delay = 1<br> status_server = yes<br>
}<br>} client localhost {<br> ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> secret = "testing123"<br> nastype = "other"<br> }<br> client 192.168.0.1 {<br> require_message_authenticator = no<br>
secret = "teste123"<br> shortname = "SapoNet"<br> nastype = "other"<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 {<br> modules {<br> Module: Checking authenticate {...} for more modules to load<br> Module: Linked to module rlm_mschap<br> Module: Instantiating mschap<br>
mschap {<br> use_mppe = yes<br> require_encryption = yes<br> require_strong = no<br> with_ntdomain_hack = no<br> }<br> Module: Linked to module rlm_unix<br> Module: Instantiating unix<br> unix {<br> radwtmp = "/var/log/radius/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_tls<br>
Module: Instantiating eap-tls<br> tls {<br> rsa_key_exchange = no<br> dh_key_exchange = yes<br> rsa_key_length = 512 pem_file_type = yes<br> private_key_file = "/etc/raddb/certs/server.pem"<br>
certificate_file = "/etc/raddb/certs/server.pem"<br> CA_file = "/etc/raddb/certs/ca.pem"<br> private_key_password = "whatever"<br> dh_file = "/etc/raddb/certs/dh"<br> random_file = "/etc/raddb/certs/random"<br>
fragment_size = 1024<br> include_length = yes<br> check_crl = no<br> cipher_list = "DEFAULT"<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 = "md5"<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>
} mschapv2 {<br> with_ntdomain_hack = no<br> }<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/raddb/huntgroups"<br> hints = "/etc/raddb/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 accounting {...} 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: Linked to module rlm_radutmp<br> Module: Instantiating radutmp<br> radutmp {<br> filename = "/var/log/radius/radutmp"<br>
username = "%{User-Name}"<br> case_sensitive = yes<br> check_with_nas = yes<br> perm = 384<br> callerid = yes<br> }<br> } # modules<br>} # serverlisten {<br> type = "auth"<br> ipaddr = *<br>
port = 0<br>}<br>Listening on authentication address * port 1812<br>Listening on proxy address * port 1814<br>Ready to process requests.<br><br><br>Hope somebody can help me out ! <br>Thanks ,<br><br>radiusd: #### Opening IP addresses and Ports ####<br>
<br> Module: Linked to sub-module rlm_eap_mschapv2<br> Module: Instantiating eap-mschapv2<br><br> dh_key_length = 512<br> verify_depth = 0<br><br>radiusd: #### Loading Realms and Home Servers ####<br>radiusd: #### Loading Clients ####<br>
<br><br>