遵循本指南,我正在尝试设置FreeRADIUS来对Active进行身份验证。当我以明文(使用Access-Accept方法)发送密码时,我可以获得一条DEFAULT Auth-Type = ntlm_auth消息;但是,我希望使用mschapv2,这样密码就不会以明文发送。
当我这么做时:radtest -t mschap user pass 10.10.1.21 0 d34db33f
我得到:
Sending Access-Request Id 144 from 0.0.0.0:41971 to 10.10.1.21:1812
User-Name = 'user'
NAS-IP-Address = 10.10.7.178
NAS-Port = 0
Message-Authenticator = 0x00
MS-CHAP-Challenge = 0xc118ac9d5a2fbfd0
MS-CHAP-Response = 0x00010000000000000000000000000000000000000000000000003f0b91a63532bc231468ae3034fa0788e64e28efa4832ecf
Received Access-Reject Id 144 from 10.10.1.21:1812 to 10.10.7.178:41971 length 38
MS-CHAP-Error = '\000E=691 R=1'
(0) Expected Access-Accept got Access-Reject在服务器上,如果我这样做了:
/usr/bin/ntlm_auth --request-nt-key --username=user --challenge=0xc118ac9d5a2fbfd0 --nt-response=0x00010000000000000000000000000000000000000000000000003f0b91a63532bc231468ae3034fa0788e64e28efa4832ecf我得到:
Logon failure (0xc000006d)在我看来,我对转换到mschap有问题。我需要编辑什么才能正确地验证身份?
发布于 2014-07-07 22:08:36
结果发现,我遇到的问题与freerad用户无法访问winbind套接字有关。更多信息这里
引用:
Ubuntu (12.04) places the socket in /var/run/samba/winbindd_privileged
The socket itself is owned root:root permissions s777
The directory is owned root:winbindd_privileged permissions 750
Adding the user freerad to the group winbindd_privileged did the trick.https://serverfault.com/questions/609950
复制相似问题