按照这个指南 ,我试图设置FreeRADIUS来对Active Directory进行身份validation。 当我以明文forms发送密码时(使用DEFAULT Auth-Type = ntlm_auth方法),我可以得到一个Access-Accept消息。 但是,我想使用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的问题。 我需要编辑什么才能正确authentication?
原来我遇到的问题与freerad用户无法访问winbind socket有关。 更多信息在这里
引用:
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.