Название: проблема с радиусом
Отправлено: vikit от 22 Марта 2010, 21:47:23
поднял радиус по мануалу тестовый пользователь работал но после конфигурации sql.conf пользователей не видет в базе при вводе radtest babis 147852 127.0.0.1 0 hardpass5 выдаёт rad_recv: Access-Request packet from host 127.0.0.1:18216, id=193, length=57 User-Name = "babis" User-Password = "147852" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 Processing the authorize section of radiusd.conf modcall: entering group authorize for request 7 modcall[authorize]: module "preprocess" returns ok for request 7 modcall[authorize]: module "chap" returns noop for request 7 modcall[authorize]: module "mschap" returns noop for request 7 rlm_realm: No '@' in User-Name = "babis", looking up realm NULL rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 7 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 7 modcall[authorize]: module "files" returns notfound for request 7 radius_xlat: 'babis' rlm_sql (sql): sql_set_user escaped user --> 'babis' radius_xlat: 'SELECT NULL, 'test', 'Password', '123456', '=='' rlm_sql (sql): Reserving sql socket id: 2 radius_xlat: 'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE usergroup.Username = 'babis' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id' rlm_sql_mysql: MYSQL check_error: 1146 received rlm_sql_getvpdata: database query error radius_xlat: '' radius_xlat: 'SELECT radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op FROM radgroupreply,usergroup WHERE usergroup.Username = 'babis' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id' rlm_sql_mysql: MYSQL check_error: 1146 received rlm_sql_getvpdata: database query error rlm_sql (sql): Released sql socket id: 2 rlm_sql (sql): No matching entry in the database for request from user [babis] modcall[authorize]: module "sql" returns notfound for request 7 rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this. modcall[authorize]: module "pap" returns noop for request 7 modcall: leaving group authorize (returns ok) for request 7 auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user auth: Failed to validate the user. Delaying request 7 for 1 seconds Finished request 7 Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 193 to 127.0.0.1 port 18216 Waking up in 4 seconds... --- Walking the entire request list --- Cleaning up request 7 ID 193 with timestamp 4ba7c806 Nothing to do. Sleeping until we see a request.
вот файл sql.conf ####################################################################### # Authorization Queries ####################################################################### # These queries compare the check items for the user # in ${authcheck_table} and setup the reply items in # ${authreply_table}. You can use any query/tables # you want, but the return data for each row MUST # be in the following order: # # 0. Row ID (currently unused) # 1. UserName/GroupName # 2. Item Attr Name # 3. Item Attr Value # 4. Item Attr Operation ####################################################################### # Use these for case sensitive usernames. # authorize_check_query = "SELECT id, UserName, Attribute, Value, op \ # FROM ${authcheck_table} \ # WHERE Username = BINARY '%{SQL-User-Name}' \ # ORDER BY id" # authorize_reply_query = "SELECT id, UserName, Attribute, Value, op \ # FROM ${authreply_table} \ # WHERE Username = BINARY '%{SQL-User-Name}' \ # ORDER BY id"
# The default queries are case insensitive. (for compatibility with # older versions of FreeRADIUS)
authorize_check_query = "call radcheck('%{SQL-User-Name}')" authorize_reply_query = "call radreply('%{SQL-User-Name}')" accounting_update_query = "call radupdate('%{SQL-User-Name}')" accounting_stop_query = "call radstop('%{SQL-User-Name}')"
}
процедуры mysql -p вроде прошол без ошибок в чём может быть проблема
Название: Re: проблема с радиусом
Отправлено: Cell от 22 Марта 2010, 22:06:56
написано же черным по английски: WARNING! No "known good" password found for the user. Authentication may fail because of this.
Название: Re: проблема с радиусом
Отправлено: Elisium от 22 Марта 2010, 23:23:01
В радиусе не силен, но: rlm_sql_mysql: MYSQL check_error: 1146 received rlm_sql_getvpdata: database query error Ошибка 1146 - Table doesn't exist Все ли необходимые радиусные таблицы в есть в базе ?
Название: Re: проблема с радиусом
Отправлено: Elisium от 22 Марта 2010, 23:28:16
Вот, вдогонку тема похожая. Мб будет полезна) http://forum.nodeny.com.ua/index.php?topic=525.0
Название: Re: проблема с радиусом
Отправлено: vikit от 23 Марта 2010, 10:44:19
огромное спосибо разобрался а суть в малом )) всегото надо было радиус перегрузить
|