Actually, all the way from the beginning, "CleartextPassword" has been set (without an Auth-Type) but for some reason the program chooses Local automatically. It is probably a default setting of FreeRadius to go Local when it doesn't find an Auth method.
<br><br>However, what I don't understand is why it doesn't find an authentication method if I have already configured the EAP.conf file with MD5 and have it in the Authorize and Authenticate sections of radiusd.conf
<br><br><div><span class="gmail_quote">O.n 10/9/07, <b class="gmail_sendername"><a href="mailto:tnt@kalik.co.yu">tnt@kalik.co.yu</a></b> <<a href="mailto:tnt@kalik.co.yu">tnt@kalik.co.yu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Now read my first reply again. It looks like you have replaced the<br>password attribute, but left the Auth-Type.<br><br>Ivan Kalik<br>Kalik Informatika ISP<br><br><br>Dana 9/10/2007, "inl2goal" <<a href="mailto:syaoran.sakura@gmail.com">
syaoran.sakura@gmail.com</a>> piše:<br><br>><br>>Here is the debug output<br>><br>>When I run the server I get:<br>><br>># ./radiusd -X<br>>Starting - reading configuration files ...<br>>reread_config: reading
radiusd.conf<br>>Config: including file: /usr/local/etc/raddb/clients.conf<br>>Config: including file: /usr/local/etc/raddb/eap.conf<br>>Config: including file: /usr/local/etc/raddb/sql.conf<br>> main: prefix = "/usr/local"
<br>> main: localstatedir = "/usr/local/var"<br>> main: logdir = "/usr/local/var/log/radius"<br>> main: libdir = "/usr/local/lib"<br>> main: radacctdir = "/usr/local/var/log/radius/radacct"
<br>> main: hostname_lookups = no<br>> main: snmp = 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 = 16214
<br>> main: allow_core_dumps = no<br>> main: log_stripped_names = no<br>> main: log_file = "/usr/local/var/log/radius/radius.log"<br>> main: log_auth = no<br>> main: log_auth_badpass = no<br>> main: log_auth_goodpass = no
<br>> main: pidfile = "/usr/local/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 = "/usr/local/sbin/checkrad"<br>> main: proxy_requests = 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 /usr/local/lib
<br>>Module: Loaded eap<br>> eap: default_eap_type = "md5"<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>>Module: Instantiated eap (eap)<br>>Module: Loaded preprocess<br>> preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"<br>> preprocess: hints = "/usr/local/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 = yes<br>> preprocess: with_alvarion_vsa_hack = no
<br>>Module: Instantiated preprocess (preprocess)<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 SQL<br>> sql: driver = "rlm_sql_mysql"<br>> sql: server = "localhost"<br>> sql: port = ""<br>> sql: login = "root"
<br>> sql: password = "watchdog"<br>> sql: radius_db = "radius"<br>> sql: nas_table = "nas"<br>> sql: sqltrace = yes<br>> sql: sqltracefile = "/usr/local/var/log/radius/sqltrace.sql"
<br>> sql: readclients = yes<br>> sql: deletestalesessions = yes<br>> sql: num_sql_socks = 5<br>> sql: sql_user_name = "%{User-Name}"<br>> sql: default_user_profile = ""<br>> sql: query_on_not_found = no
<br>> sql: authorize_check_query = "SELECT id, UserName, Attribute, Value, op<br>>FROM radcheck WHERE Username = '%{SQL-User-Name}' ORDER<br>>BY id"<br>> sql: authorize_reply_query = "SELECT id, UserName, Attribute, Value, op
<br>>FROM radreply WHERE Username = '%{SQL-User-Name}' ORDER<br>>BY id"<br>> sql: authorize_group_check_query = "SELECT<br>><a href="http://radgroupcheck.id">radgroupcheck.id
</a>,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op<br>>FROM radgroupcheck,usergroup WHERE usergroup.Username = '%{SQL-User-Name}'<br>>AND usergroup.GroupName = radgroupcheck.GroupName
ORDER BY <a href="http://radgroupcheck.id">radgroupcheck.id</a>"<br>> sql: authorize_group_reply_query = "SELECT<br>><a href="http://radgroupreply.id">radgroupreply.id</a>,radgroupreply.GroupName,radgroupreply.Attribute
,radgroupreply.Value,radgroupreply.op<br>>FROM radgroupreply,usergroup WHERE usergroup.Username = '%{SQL-User-Name}'<br>>AND usergroup.GroupName = radgroupreply.GroupName ORDER BY <a href="http://radgroupreply.id">
radgroupreply.id</a>"<br>> sql: accounting_onoff_query = "UPDATE radacct SET AcctStopTime='%S',<br>>AcctSessionTime=unix_timestamp('%S') - unix_timestamp(AcctStartTime),<br>>AcctTerminateCause='%{Acct-Terminate-Cause}', AcctStopDelay =
<br>>'%{Acct-Delay-Time}' WHERE AcctSessionTime=0 AND AcctStopTime=0 AND<br>>NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime <= '%S'"<br>> sql: accounting_update_query = " UPDATE radacct SET
<br>>FramedIPAddress = '%{Framed-IP-Address}', AcctSessionTime =<br>>'%{Acct-Session-Time}', + AcctInputOctets =<br>>'%{Acct-Input-Gigawords:-0}' << 32 |
<br>>'%{Acct-Input-Octets:-0}', AcctOutputOctets =<br>>'%{Acct-Output-Gigawords:-0}' << 32 |<br>>'%{Acct-Output-Octets:-0}' WHERE AcctSessionId =<br>>'%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}'
<br>>AND NASIPAddress = '%{NAS-IP-Address}'"<br>> sql: accounting_update_query_alt = " INSERT INTO radacct<br>>(AcctSessionId, AcctUniqueId, UserName, Realm,<br>
>NASIPAddress, NASPortId, NASPortType, AcctStartTime,<br>>AcctSessionTime, AcctAuthentic, ConnectInfo_start,<br>>AcctInputOctets, AcctOutputOctets, CalledStationId,
<br>>CallingStationId, ServiceType, FramedProtocol,<br>>FramedIPAddress, AcctStartDelay, XAscendSessionSvrKey)<br>>VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}',
<br>>'%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}',<br>>'%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S',<br>>INTERVAL (%{Acct-Session-Time:-0} +
<br>>%{Acct-Delay-Time:-0}) SECOND),<br>>'%{Acct-Session-Time}', '%{Acct-Authentic}', '',<br>>'%{Acct-Input-Gigawords:-0}' << 32 | '%{Acct-Input-Octets:-0}',
<br>>'%{Acct-Output-Gigawords:-0}' << 32 |<br>>'%{Acct-Output-Octets:-0}', '%{Called-Station-Id}',<br>>'%{Calling-Station-Id}', '%{Service-Type}',
<br>>'%{Framed-Protocol}', '%{Framed-IP-Address}', '0',<br>>'%{X-Ascend-Session-Svr-Key}')"<br>> sql: accounting_start_query = " INSERT INTO radacct
<br>>(AcctSessionId, AcctUniqueId, UserName, Realm,<br>>NASIPAddress, NASPortId, NASPortType, AcctStartTime,<br>>AcctStopTime, AcctSessionTime, AcctAuthentic,
<br>>ConnectInfo_start, ConnectInfo_stop, AcctInputOctets,<br>>AcctOutputOctets, CalledStationId, CallingStationId,<br>>AcctTerminateCause, ServiceType, FramedProtocol,
<br>>FramedIPAddress, AcctStartDelay, AcctStopDelay,<br>>XAscendSessionSvrKey) VALUES ('%{Acct-Session-Id}',<br>>'%{Acct-Unique-Session-Id}', '%{SQL-User-Name}',
<br>>'%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}',<br>>'%{NAS-Port-Type}', '%S', '0', '0', '%{Acct-Authentic}',<br>>'%{Connect-Info}', '', '0', '0',
<br>>'%{Called-Station-Id}', '%{Calling-Station-Id}', '',<br>>'%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}',<br>>'%{Acct-Delay-Time:-0}', '0', '%{X-Ascend-Session-Svr-Key}')"
<br>> sql: accounting_start_query_alt = "UPDATE radacct SET AcctStartTime = '%S',<br>>AcctStartDelay = '%{Acct-Delay-Time}', ConnectInfo_start = '%{Connect-Info}'<br>>WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}'
<br>>AND NASIPAddress = '%{NAS-IP-Address}'"<br>> sql: accounting_stop_query = " UPDATE radacct SET<br>>AcctStopTime = '%S', AcctSessionTime =<br>>'%{Acct-Session-Time}', AcctInputOctets =
<br>>'%{Acct-Input-Gigawords:-0}' << 32 |<br>>'%{Acct-Input-Octets:-0}', AcctOutputOctets =<br>>'%{Acct-Output-Gigawords:-0}' << 32 |<br>>'%{Acct-Output-Octets:-0}', AcctTerminateCause =
<br>>'%{Acct-Terminate-Cause}', AcctStopDelay =<br>>'%{Acct-Delay-Time:-0}', ConnectInfo_stop = '%{Connect-Info}'<br>>WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName
<br>>= '%{SQL-User-Name}' AND NASIPAddress = '%{NAS-IP-Address}'"<br>> sql: accounting_stop_query_alt = " INSERT INTO radacct<br>>(AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress,
<br>>NASPortId, NASPortType, AcctStartTime, AcctStopTime,<br>>AcctSessionTime, AcctAuthentic, ConnectInfo_start,<br>>ConnectInfo_stop, AcctInputOctets, AcctOutputOctets,<br>>CalledStationId, CallingStationId, AcctTerminateCause,
<br>>ServiceType, FramedProtocol, FramedIPAddress, AcctStartDelay,<br>>AcctStopDelay) VALUES ('%{Acct-Session-Id}',<br>>'%{Acct-Unique-Session-Id}', '%{SQL-User-Name}',
<br>>'%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}',<br>>'%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL<br>>(%{Acct-Session-Time:-0} + %{Acct-Delay-Time:-0}) SECOND),
<br>>'%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '',<br>>'%{Connect-Info}', '%{Acct-Input-Gigawords:-0}' << 32 |<br>>'%{Acct-Input-Octets:-0}', '%{Acct-Output-Gigawords:-0}' << 32
<br>>| '%{Acct-Output-Octets:-0}',<br>>'%{Called-Station-Id}', '%{Calling-Station-Id}',<br>>'%{Acct-Terminate-Cause}', '%{Service-Type}',<br>>'%{Framed-Protocol}', '%{Framed-IP-Address}', '0',
<br>>'%{Acct-Delay-Time:-0}')"<br>> sql: group_membership_query = "SELECT GroupName FROM usergroup WHERE<br>>UserName='%{SQL-User-Name}'"<br>> sql: connect_failure_retry_delay = 60
<br>> sql: simul_count_query = ""<br>> sql: simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName,<br>>NASIPAddress, NASPortId, FramedIPAddress,<br>>CallingStationId, FramedProtocol FROM radacct
<br>>WHERE UserName='%{SQL-User-Name}' AND<br>>AcctStopTime = 0"<br>> sql: postauth_query = "INSERT into radpostauth (user, pass, reply, date)<br>>values ('%{User-Name}', '%{User-Password:-Chap-Password}',
<br>>'%{reply:Packet-Type}', NOW())"<br>> sql: safe-characters =<br>>"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br>>rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
<br>>rlm_sql (sql): Attempting to connect to root@localhost:/radius<br>>rlm_sql (sql): starting 0<br>>rlm_sql (sql): Attempting to connect rlm_sql_mysql #0<br>>rlm_sql_mysql: Starting connect to MySQL server for #0
<br>>rlm_sql (sql): Connected new DB handle, #0<br>>rlm_sql (sql): starting 1<br>>rlm_sql (sql): Attempting to connect rlm_sql_mysql #1<br>>rlm_sql_mysql: Starting connect to MySQL server for #1<br>>rlm_sql (sql): Connected new DB handle, #1
<br>>rlm_sql (sql): starting 2<br>>rlm_sql (sql): Attempting to connect rlm_sql_mysql #2<br>>rlm_sql_mysql: Starting connect to MySQL server for #2<br>>rlm_sql (sql): Connected new DB handle, #2<br>>rlm_sql (sql): starting 3
<br>>rlm_sql (sql): Attempting to connect rlm_sql_mysql #3<br>>rlm_sql_mysql: Starting connect to MySQL server for #3<br>>rlm_sql (sql): Connected new DB handle, #3<br>>rlm_sql (sql): starting 4<br>>rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
<br>>rlm_sql_mysql: Starting connect to MySQL server for #4<br>>rlm_sql (sql): Connected new DB handle, #4<br>>rlm_sql (sql): - generate_sql_clients<br>>rlm_sql (sql): Query: SELECT * FROM nas<br>>rlm_sql (sql): Reserving sql socket id: 4
<br>>rlm_sql_mysql: query: SELECT * FROM nas<br>>rlm_sql (sql): Read entry nasname=w.x.y.z,shortname=radius1,secret=holygrail<br>>rlm_sql (sql): Adding client w.x.y.z (radius1) to clients list<br>>rlm_sql (sql): Released sql socket id: 4
<br>>Module: Instantiated sql (sql)<br>>Module: Loaded Acct-Unique-Session-Id<br>> acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address,<br>>Client-IP-Address, NAS-Port"<br>>Module: Instantiated acct_unique (acct_unique)
<br>>Module: Loaded detail<br>> detail: detailfile =<br>>"/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"<br>> detail: detailperm = 384<br>> detail: dirperm = 493<br>> detail: locking = no
<br>>Module: Instantiated detail (detail)<br>>Module: Loaded radutmp<br>> radutmp: filename = "/usr/local/var/log/radius/radutmp"<br>> radutmp: username = "%{User-Name}"<br>> radutmp: case_sensitive = yes
<br>> radutmp: check_with_nas = yes<br>> radutmp: perm = 384<br>> radutmp: callerid = yes<br>>Module: Instantiated radutmp (radutmp)<br>>Listening on authentication *:16214<br>>Listening on accounting *:16215
<br>>Ready to process requests.<br>><br>>And when I send the request after connecting to the switch I get:<br>><br>>rad_recv: Access-Request packet from host w.x.y.z:1645, id=3, length=125<br>> User-Name = "power"
<br>> Service-Type = Framed-User<br>> Framed-MTU = 1500<br>> Called-Station-Id = "00-1A-A2-5B-43-83"<br>> Calling-Station-Id = "00-0B-CD-AA-ED-6D"<br>> EAP-Message = 0x0202000a01706f776572
<br>> Message-Authenticator = 0x58fa7799b0cf8b82e6216ce8048220d7<br>> NAS-Port = 50003<br>> NAS-Port-Type = Ethernet<br>> NAS-IP-Address = w.x.y.z<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>> rlm_realm: No '@' in User-Name = "power", looking up realm NULL
<br>> rlm_realm: No such realm "NULL"<br>> modcall[authorize]: module "suffix" returns noop for request 0<br>>radius_xlat: 'power'<br>>rlm_sql (sql): sql_set_user escaped user --> 'power'
<br>>radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM<br>>radcheck WHERE Username = 'power' ORDER BY id'<br>>rlm_sql (sql): Reserving sql socket id: 3<br>
>rlm_sql_mysql: query: SELECT id, UserName, Attribute, Value, op<br>>FROM radcheck WHERE Username = 'power' ORDER BY id<br>>radius_xlat: 'SELECT<br>><a href="http://radgroupcheck.id">
radgroupcheck.id</a>,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op<br>>FROM radgroupcheck,usergroup WHERE usergroup.Username = 'power' AND<br>>usergroup.GroupName = radgroupcheck.GroupName
ORDER BY <a href="http://radgroupcheck.id">radgroupcheck.id</a>'<br>>rlm_sql_mysql: query: SELECT<br>><a href="http://radgroupcheck.id">radgroupcheck.id</a>,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value
,radgroupcheck.op<br>>FROM radgroupcheck,usergroup WHERE usergroup.Username = 'power' AND<br>>usergroup.GroupName = radgroupcheck.GroupName ORDER BY <a href="http://radgroupcheck.id">radgroupcheck.id</a><br>
>radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM<br>>radreply WHERE Username = 'power' ORDER BY id'<br>>rlm_sql_mysql: query: SELECT id, UserName, Attribute, Value, op
<br>>FROM radreply WHERE Username = 'power' ORDER BY id<br>>radius_xlat: 'SELECT<br>><a href="http://radgroupreply.id">radgroupreply.id</a>,radgroupreply.GroupName,radgroupreply.Attribute
,radgroupreply.Value,radgroupreply.op<br>>FROM radgroupreply,usergroup WHERE usergroup.Username = 'power' AND<br>>usergroup.GroupName = radgroupreply.GroupName ORDER BY <a href="http://radgroupreply.id">radgroupreply.id
</a>'<br>>rlm_sql_mysql: query: SELECT<br>><a href="http://radgroupreply.id">radgroupreply.id</a>,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op<br>>FROM radgroupreply,usergroup WHERE
usergroup.Username = 'power' AND<br>>usergroup.GroupName = radgroupreply.GroupName ORDER BY <a href="http://radgroupreply.id">radgroupreply.id</a><br>>rlm_sql (sql): Released sql socket id: 3<br>> modcall[authorize]: module "sql" returns ok for request 0
<br>> modcall[authorize]: module "eap" returns noop for request 0<br>>modcall: leaving group authorize (returns ok) for request 0<br>>auth: type Local<br>>auth: No User-Password or CHAP-Password attribute in the request
<br>>auth: Failed to validate the user.<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 3 to w.x.y.z port 1645<br>>Waking up in 4 seconds...<br>
>--- Walking the entire request list ---<br>>Cleaning up request 0 ID 3 with timestamp 470bb882<br>>Nothing to do. Sleeping until we see a request.<br>><br>><br>>Thank you<br>><br>><br>><br>>tnt wrote:
<br>>><br>>> Post the whole debug (radiusd -X) then.<br>>><br>>> Ivan Kalik<br>>> Kalik Informatika ISP<br>>><br>><br>>--<br>>View this message in context: <a href="http://www.nabble.com/EAP%2BMD5%2BSQL-trouble-tf4571786.html#a13120808">
http://www.nabble.com/EAP%2BMD5%2BSQL-trouble-tf4571786.html#a13120808</a><br>>Sent from the FreeRadius - User mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>><br>>-<br>>List info/subscribe/unsubscribe? See
<a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><br>><br>><br><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html
</a><br></blockquote></div><br>