我已经在kubernetes集群中设置了一个freeradius服务器。我已经按照说明设置了测试用户以使用radtest进行测试,但是,在运行测试时,我仍然收到“ Access-Reject”。
这是用户文件的开头,我将测试用户放在顶部:
testing Cleartext-Password := "password"
#
# Configuration file for the rlm_files module.
# Please see rlm_files(5) manpage for more information.
#
# This file contains authentication security and configuration
# information for each user. Accounting requests are NOT processed
# through this file. Instead, see 'accounting', in this directory.
这是我要测试的命令:
radtest testing password 127.0.0.1 1812 password
其中“ testing”是用户名,“ password”是用户的密码,127.0.0.1是服务器的地址(本地测试)1812是端口,第二个“ password”是两者之间的预共享密码客户端和服务器。 这是该命令的输出:
Sent Access-Request Id 24 from 0.0.0.0:53513 to 127.0.0.1:1812 length 77
User-Name = "testing"
User-Password = "password"
NAS-IP-Address = 10.233.64.70
NAS-Port = 1812
Message-Authenticator = 0x00
Cleartext-Password = "password"
Received Access-Reject Id 24 from 127.0.0.1:1812 to 127.0.0.1:53513 length 20
(0) -: Expected Access-Accept got Access-Reject
此外,即使容器应该以调试模式启动freeradius,但当我通过Kubernetes在容器中打开bash shell时,我实际上看不到任何调试消息到达STDOUT。
答案 0 :(得分:0)
事实证明,LDAP配置的一部分意味着禁用用户文件。抱歉,我应该提到它。