【发布时间】:2015-09-16 14:20:12
【问题描述】:
我需要从基于 Windows 的代理迁移到 Linux 代理。 在旧服务器中,Squid 使用 mswin_auth.exe 针对 Active Directory 域对用户进行身份验证。出于这个原因,我的用户现在在浏览器弹出窗口中输入 ntdomain\username 进行代理身份验证。
在 linux Centos 服务器中 Squid 将使用 basic_ldap_auth,在这种情况下用户不能输入 ntdomain。我的用户改变旧习惯会很烦人。有没有办法从输入的用户名中自动删除 ntdomain?
在 squid.conf 我有
auth_param basic program /usr/lib64/squid/basic_ldap_auth -R -b "dc=ntdomain,dc=parentd,dc=it" -D "CN=squid,OU=Squid,OU=Sede,DC=ntdomain,DC=parentd,DC=it" -W /etc/squid/squid.adpwd -f sAMAccountName=%s -h vfdc1.ntdomain.parentd.it
...
external_acl_type ldap_group %LOGIN /usr/lib64/squid/ext_ldap_group_acl -R -b "dc=ntdomain,dc=parentd,dc=it" -D "CN=squid,OU=Squid,OU=Sede,DC=ntdomain,DC=parentd,DC=it" -W /etc/squid/squid.adpwd -f "(&(objectclass=person) (sAMAccountname=%u)(memberof:1.2.840.113556.1.4.1941:=cn=%g,OU=Squid,OU=Sede,DC=ntdomain,DC=parentd,DC=it))" -h vfdc1.ntdomain.parentd.it -S
提前致谢
【问题讨论】:
标签: linux authentication active-directory ldap squid