<div dir="ltr"><div><div>Thanks Fajar<br><br></div>I tried with the suggestions and using RadiusTest client from Radutils.<br><br><br></div>debug output is given below. Pls suggest what is wrong here?<br><br><br><br>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
<br>Starting - reading configuration files ...<br>reread_config:  reading radiusd.conf<br>Config:   including file: ../etc/raddb/proxy.conf<br>Config:   including file: ../etc/raddb/clients.conf<br>Config:   including file: ../etc/raddb/snmp.conf<br>
Config:   including file: ../etc/raddb/eap.conf<br>Config:   including file: ../etc/raddb/sql.conf<br> main: prefix = ".."<br> main: localstatedir = "../var"<br> main: logdir = "../var/log/radius"<br>
 main: libdir = "../lib"<br> main: radacctdir = "../var/log/radius/radacct"<br> main: hostname_lookups = no<br> main: max_request_time = 30<br> main: cleanup_delay = 5<br> main: max_requests = 1024<br>
 main: delete_blocked_requests = 0<br> main: port = 0<br> main: allow_core_dumps = no<br> main: log_stripped_names = yes<br> main: log_file = "../var/log/radius/radius.log"<br> main: log_auth = yes<br> main: log_auth_badpass = yes<br>
 main: log_auth_goodpass = yes<br> main: pidfile = "../var/run/radiusd/radiusd.pid"<br> main: user = "(null)"<br> main: group = "(null)"<br> main: usercollide = no<br> main: lower_user = "no"<br>
 main: lower_pass = "no"<br> main: nospace_user = "no"<br> main: nospace_pass = "no"<br> main: checkrad = "../sbin/checkrad"<br> main: proxy_requests = yes<br> proxy: retry_delay = 5<br>
 proxy: retry_count = 3<br> proxy: synchronous = no<br> proxy: default_fallback = yes<br> proxy: dead_time = 120<br> proxy: post_proxy_authorize = no<br> proxy: wake_all_if_all_dead = no<br> security: max_attributes = 200<br>
 security: reject_delay = 1<br> security: status_server = no<br> main: debug_level = 0<br>read_config_files:  reading dictionary<br>read_config_files:  reading naslist<br>Using deprecated naslist file.  Support for this will go away soon.<br>
read_config_files:  reading clients<br>read_config_files:  reading realms<br>radiusd:  entering modules setup<br>Module: Library search path is ../lib<br>Module: Loaded exec<br> exec: wait = yes<br> exec: program = "(null)"<br>
 exec: input_pairs = "request"<br> exec: output_pairs = "(null)"<br> exec: packet_type = "(null)"<br>rlm_exec: Wait=yes but no output defined. Did you mean output=none?<br>Module: Instantiated exec (exec)<br>
Module: Loaded expr<br>Module: Instantiated expr (expr)<br>Module: Loaded PAP<br> pap: encryption_scheme = "crypt"<br> pap: auto_header = yes<br>Module: Instantiated pap (pap)<br>Module: Loaded CHAP<br>Module: Instantiated chap (chap)<br>
Module: Loaded MS-CHAP<br> mschap: use_mppe = yes<br> mschap: require_encryption = no<br> mschap: require_strong = no<br> mschap: with_ntdomain_hack = no<br> mschap: passwd = "(null)"<br> mschap: ntlm_auth = "(null)"<br>
Module: Instantiated mschap (mschap)<br>Module: Loaded System<br> unix: cache = no<br> unix: passwd = "(null)"<br> unix: shadow = "(null)"<br> unix: group = "(null)"<br> unix: radwtmp = "../var/log/radius/radwtmp"<br>
 unix: usegroup = no<br> unix: cache_reload = 600<br>Module: Instantiated unix (unix)<br>Module: Loaded eap<br> eap: default_eap_type = "tls"<br> eap: timer_expire = 60<br> eap: ignore_unknown_eap_types = no<br>
 eap: cisco_accounting_username_bug = no<br>rlm_eap: Loaded and initialized type md5<br>rlm_eap: Loaded and initialized type leap<br> gtc: challenge = "Password: "<br> gtc: auth_type = "PAP"<br>rlm_eap: Loaded and initialized type gtc<br>
 tls: rsa_key_exchange = no<br> tls: dh_key_exchange = yes<br> tls: rsa_key_length = 512<br> tls: dh_key_length = 512<br> tls: verify_depth = 0<br> tls: CA_path = "(null)"<br> tls: pem_file_type = yes<br> tls: private_key_file = "../etc/raddb/certs/FreeRADIUS.net/DemoCerts/FreeRADIUS<br>
.net-Server.pem"<br> tls: certificate_file = "../etc/raddb/certs/FreeRADIUS.net/DemoCerts/FreeRADIUS<br>.net-Server.crt"<br> tls: CA_file = "../etc/raddb/certs/FreeRADIUS.net/DemoCerts/FreeRADIUS.net-CA.c<br>
rt"<br> tls: private_key_password = "demo"<br> tls: dh_file = "../etc/raddb/certs/FreeRADIUS.net/DemoCerts/dh"<br> tls: random_file = "../etc/raddb/certs/FreeRADIUS.net/DemoCerts/random"<br>
 tls: fragment_size = 1024<br> tls: include_length = yes<br> tls: check_crl = no<br> tls: check_cert_cn = "%{User-Name}"<br> tls: cipher_list = "(null)"<br> tls: check_cert_issuer = "(null)"<br>
rlm_eap_tls: Loading the certificate file as a chain<br>WARNING: rlm_eap_tls: Unable to set DH parameters.  DH cipher suites may not wor<br>k!<br>WARNING: Fix this by running the OpenSSL command listed in eap.conf<br>rlm_eap: Loaded and initialized type tls<br>
 ttls: default_eap_type = "md5"<br> ttls: copy_request_to_tunnel = no<br> ttls: use_tunneled_reply = yes<br>rlm_eap: Loaded and initialized type ttls<br> peap: default_eap_type = "mschapv2"<br> peap: copy_request_to_tunnel = no<br>
 peap: use_tunneled_reply = no<br> peap: proxy_tunneled_request_as_eap = yes<br>rlm_eap: Loaded and initialized type peap<br> mschapv2: with_ntdomain_hack = no<br>rlm_eap: Loaded and initialized type mschapv2<br>Module: Instantiated eap (eap)<br>
Module: Loaded preprocess<br> preprocess: huntgroups = "../etc/raddb/huntgroups"<br> preprocess: hints = "../etc/raddb/hints"<br> preprocess: with_ascend_hack = no<br> preprocess: ascend_channels_per_line = 23<br>
 preprocess: with_ntdomain_hack = no<br> preprocess: with_specialix_jetstream_hack = no<br> preprocess: with_cisco_vsa_hack = no<br> preprocess: with_alvarion_vsa_hack = no<br>Module: Instantiated preprocess (preprocess)<br>
Module: Loaded detail<br> detail: detailfile = "../var/log/radius/radacct/%{Client-IP-Address}/auth-detai<br>l-%Y%m%d.log"<br> detail: detailperm = 511<br> detail: dirperm = 493<br> detail: locking = no<br>Module: Instantiated detail (auth_log)<br>
Module: Loaded realm<br> realm: format = "suffix"<br> realm: delimiter = "@"<br> realm: ignore_default = no<br> realm: ignore_null = no<br>Module: Instantiated realm (suffix)<br>Module: Loaded files<br>
 files: usersfile = "../etc/raddb/users"<br> files: acctusersfile = "../etc/raddb/acct_users"<br> files: preproxy_usersfile = "../etc/raddb/preproxy_users"<br> files: compat = "no"<br>
Module: Instantiated files (files)<br>Module: Loaded Acct-Unique-Session-Id<br> acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Addre<br>ss, NAS-Port"<br>Module: Instantiated acct_unique (acct_unique)<br>
 detail: detailfile = "../var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%<br>m%d.log"<br> detail: detailperm = 511<br> detail: dirperm = 493<br> detail: locking = no<br>Module: Instantiated detail (detail)<br>
Module: Loaded Counter<br> counter: filename = "../etc/raddb/db.daily"<br> counter: key = "User-Name"<br> counter: reset = "daily"<br> counter: count-attribute = "Acct-Session-Time"<br>
 counter: counter-name = "Daily-Session-Time"<br> counter: check-name = "Max-Daily-Session"<br> counter: allowed-servicetype = "Framed-User"<br> counter: cache-size = 5000<br>rlm_counter: Counter attribute Daily-Session-Time is number 1830<br>
rlm_counter: Current Time: 1369651200 [2013-05-27 16:10:00], Next reset 13696794<br>00 [2013-05-28 00:00:00]<br>Module: Instantiated counter (daily)<br>Module: Loaded radutmp<br> radutmp: filename = "../var/log/radius/radutmp"<br>
 radutmp: username = "%{User-Name}"<br> radutmp: case_sensitive = yes<br> radutmp: check_with_nas = yes<br> radutmp: perm = 511<br> radutmp: callerid = yes<br>Module: Instantiated radutmp (radutmp)<br> detail: detailfile = "../var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-<br>
detail-%Y%m%d.log"<br> detail: detailperm = 511<br> detail: dirperm = 493<br> detail: locking = no<br>Module: Instantiated detail (pre_proxy_log)<br> detail: detailfile = "../var/log/radius/radacct/%{Client-IP-Address}/post-proxy<br>
-detail-%Y%m%d.log"<br> detail: detailperm = 511<br> detail: dirperm = 493<br> detail: locking = no<br>Module: Instantiated detail (post_proxy_log)<br> detail: detailfile = "../var/log/radius/radacct/%{Client-IP-Address}/reply-deta<br>
il-%Y%m%d.log"<br> detail: detailperm = 511<br> detail: dirperm = 493<br> detail: locking = no<br>Module: Instantiated detail (reply_log)<br>Listening on authentication *:1812<br>Listening on accounting *:1813<br>Ready to process requests.<br>
rad_recv: Access-Request packet from host <a href="http://127.0.0.1:2308">127.0.0.1:2308</a>, id=119, length=46<br>        User-Name = "test1"<br>        CHAP-Password = 0x77d3c05edbcc4f08fa677f7c829d1592ba<br>  Processing the authorize section of radiusd.conf<br>
modcall: entering group authorize for request 0<br>  modcall[authorize]: module "preprocess" returns ok for request 0<br>radius_xlat:  '../var/log/radius/radacct/<a href="http://127.0.0.1/auth-detail-20130527.log">127.0.0.1/auth-detail-20130527.log</a>'<br>
rlm_detail: ../var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d.lo<br>g expands to ../var/log/radius/radacct/<a href="http://127.0.0.1/auth-detail-20130527.log">127.0.0.1/auth-detail-20130527.log</a><br>  modcall[authorize]: module "auth_log" returns ok for request 0<br>
  rlm_chap: Setting 'Auth-Type := CHAP'<br>  modcall[authorize]: module "chap" returns ok for request 0<br>  modcall[authorize]: module "mschap" returns noop for request 0<br>    rlm_realm: No '@' in User-Name = "test1", looking up realm NULL<br>
    rlm_realm: No such realm "NULL"<br>  modcall[authorize]: module "suffix" returns noop for request 0<br>  rlm_eap: No EAP-Message, not doing EAP<br>  modcall[authorize]: module "eap" returns noop for request 0<br>
    users: Matched entry DEFAULT at line 170<br>  modcall[authorize]: module "files" returns ok for request 0<br>rlm_pap: WARNING! No "known good" password found for the user.  Authentication m<br>ay fail because of this.<br>
  modcall[authorize]: module "pap" returns noop for request 0<br>modcall: leaving group authorize (returns ok) for request 0<br>  rad_check_password:  Found Auth-Type CHAP<br>auth: type "CHAP"<br>  Processing the authenticate section of radiusd.conf<br>
modcall: entering group CHAP for request 0<br>  rlm_chap: login attempt by "test1" with CHAP password<br>  rlm_chap: Could not find clear text password for user test1<br>  modcall[authenticate]: module "chap" returns invalid for request 0<br>
modcall: leaving group CHAP (returns invalid) for request 0<br>auth: Failed to validate the user.<br>Login incorrect (rlm_chap: Clear text password not available): [test1/<CHAP-Pass<br>word>] (from client localhost port 0)<br>
Delaying request 0 for 1 seconds<br>Finished request 0<br>Going to the next request<br>--- Walking the entire request list ---<br>Waking up in 1 seconds...<br>--- Walking the entire request list ---<br>Waking up in 1 seconds...<br>
--- Walking the entire request list ---<br>Sending Access-Reject of id 119 to 127.0.0.1 port 2308<br>Waking up in 4 seconds...<br>--- Walking the entire request list ---<br>Cleaning up request 0 ID 119 with timestamp 51a338b1<br>
Nothing to do.  Sleeping until we see a request.<br><br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 27, 2013 at 3:39 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, May 27, 2013 at 4:48 PM, Navodit Bhardwaj<br>
<<a href="mailto:navodit.bhardwaj@gmail.com">navodit.bhardwaj@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> Can someone guide me how to set CHAP only authentication.<br>
<br>
</div>Why?<br>
<div class="im"><br>
><br>
> I am using following entry in my users.conf<br>
><br>
><br>
> username                Auth-Type := Local, Password := password<br>
>                  Fall-Through = Yes<br>
><br>
<br>
</div>In most cases you will NOT need Auth-Type := Local. Remove that.<br>
<div class="im"><br>
><br>
><br>
> Can someone help me with detail steps for configuring CHAP<br>
<br>
</div>If you don't edit anything else, you should be to use PAP, CHAP, and<br>
MSCHAPv2 out of the box, and test it with "radtest" from localhost. To<br>
add more NAS you can edit clients.conf. See<br>
<a href="http://wiki.freeradius.org/guide/Basic-configuration-HOWTO" target="_blank">http://wiki.freeradius.org/guide/Basic-configuration-HOWTO</a><br>
<br>
--<br>
Fajar<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>br,<br>Navodit Bhardwaj<br>Hughes Systique Corporation<br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
</div>