zhxp 发表于 2011-4-14 19:09:58

没救了,上次碰运气可以了,这次又不行了!!求救啊!!

我郁闷.上次装3.8的,碰运气,到是搞通了...
这次重装,又不行了

Freeradius 这个是在官方下的..

freeradius-server-2.1.8-dmamod-2.tar.gz.tar

大伙帮我看看吧...

我按

http://bbs.routerclub.com/forum.php?mod=viewthread&tid=46613&extra=

这个贴子又一次重装,完了


Sending Access-Request of id 205 to 127.0.0.1 port 1812
      User-Name = "user"
      User-Password = "1111"
      NAS-IP-Address = 113.105.171.180
      NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=205, length=36
      Reply-Message = "NAS not found!"

不通了....

下面日志

rad_recv: Access-Request packet from host 127.0.0.1 port 51013, id=205, length=56
      User-Name = "user"
      User-Password = "1111"
      NAS-IP-Address = 113.105.171.180
      NAS-Port = 1812
+- entering group authorize {...}
++ returns ok
++ returns noop
++ returns noop
No '@' in User-Name = "user", looking up realm NULL
No such realm "NULL"
++ returns noop
No EAP-Message, not doing EAP
++ returns noop
users: Matched entry DEFAULT at line 50
         expand: /usr/local/bin/rmauth "%{NAS-IP-Address}" "%{User-Name}" "%{Calling-Station-Id}" -> /usr/local/bin/rmauth "113.105.171.180" "user" ""
++ returns ok
   expand: %{User-Name} -> user
sql_set_user escaped user --> 'user'
rlm_sql (sql): Reserving sql socket id: 3
   expand: SELECT id, username, attribute, value, op         FROM radcheck         WHERE username = '%{SQL-User-Name}'         ORDER BY id -> SELECT id, username, attribute, value, op         FROM radcheck         WHERE username = 'user'         ORDER BY id
User found in radcheck table
   expand: SELECT id, username, attribute, value, op         FROM radreply         WHERE username = '%{SQL-User-Name}'         ORDER BY id -> SELECT id, username, attribute, value, op         FROM radreply         WHERE username = 'user'         ORDER BY id
   expand: SELECT groupname         FROM radusergroup         WHERE username = '%{SQL-User-Name}'         ORDER BY priority -> SELECT groupname         FROM radusergroup         WHERE username = 'user'         ORDER BY priority
rlm_sql (sql): Released sql socket id: 3
++ returns ok
++ returns noop
++ returns noop
Found existing Auth-Type, not changing it.
++ returns noop
Found Auth-Type = Local
WARNING: Please update your configuration, and remove 'Auth-Type = Local'
WARNING: Use the PAP or CHAP modules instead.
User-Password in the request is correct.
+- entering group session {...}
   expand: %{User-Name} -> user
sql_set_user escaped user --> 'user'
   expand: SELECT COUNT(*)                              FROM radacct                              WHERE username = '%{SQL-User-Name}'                              AND acctstoptime IS NULL -> SELECT COUNT(*)                              FROM radacct                              WHERE username = 'user'                              AND acctstoptime IS NULL
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql (sql): Released sql socket id: 2
++ returns ok
+- entering group post-auth {...}
Exec-Program output: Reply-Message="NAS not found!"
Exec-Program-Wait: value-pairs: Reply-Message="NAS not found!"
Exec-Program: returned: 1
Login incorrect (external check said so)
++ returns reject
Using Post-Auth-Type Reject
+- entering group REJECT {...}
   expand: %{User-Name} -> user
attr_filter: Matched entry DEFAULT at line 11
++ returns updated
Delaying reject of request 6 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 6
Sending Access-Reject of id 205 to 127.0.0.1 port 51013
      Reply-Message = "NAS not found!"
Waking up in 4.9 seconds.
Cleaning up request 6 ID 205 with timestamp +210
Ready to process requests.

大侠们帮我分析分析...

9939781 发表于 2011-4-14 22:32:00

:L搞个一键安装,神马都是浮云了

权威 发表于 2011-4-14 23:50:15

我认为Reply-Message = "NAS not found!" 已经好明显了

zhxp 发表于 2011-4-15 01:15:10

本帖最后由 zhxp 于 2011-4-15 01:16 编辑

这个可是本地测试哦,怎么可能出现这个.......

而且 clients.conf 文件中有 127.0.0.1的nas了啊

云中$漫步 发表于 2011-4-15 01:18:11

下载一个自动安装版CD一切OK

论坛已经有人公布了一个!

jt00278 发表于 2011-4-16 05:21:51

NAS的问题……

alinney 发表于 2011-4-16 22:48:09

在本机测试?
那这公网地址113.105.171.180哪来的?

fjingxu 发表于 2011-4-17 00:18:38

是不是和我一样的问题,看我的帖子有一个ros和usermanager在同一台电脑上安装时认证不成功的解决办法。

wyl1212 发表于 2014-7-25 10:36:49

这个问题谁解决了

persist86 发表于 2014-7-25 14:44:15

不用radius,问题多,不方便,

9939781 发表于 2014-7-25 15:17:57

一键安装无此问题,一直用radius
页: [1]
查看完整版本: 没救了,上次碰运气可以了,这次又不行了!!求救啊!!