ldap認證配置時候遇到不解的地方
auth_param basic program /usr/lib/squid/ldap_auth -R
-b "dc=vm-domain,dc=papercut,dc=biz"
-D "cn=Administrator,cn=Users,dc=your,dc=domain,dc=com"
-w "password" -f sAMAccountName=%s -h 192.168.1.75
auth_param basic children 5
auth_param basic realm Your Organisation Name
auth_param basic credentialsttl 5 minutes
請各位指導以下這裡的 -f參數是什麼意思,我英文比較搓,資料看不太懂
《解決方案》
squid_ldap_auth -h
Usage: squid_ldap_auth -b basedn ]...
-b basedn (REQUIRED) base dn under which to search 搜索指定的base dn
-f filter search filter to locate user DN 本地的DN用戶信息搜索過濾條件
-u userattr username DN attribute 用戶名的DN屬性
-D binddn DN to bind as to perform searches 綁定其他的DN搜索
-w bindpasswd password for binddn 綁定DN的密碼
-W secretfile read password for binddn from file secretfile 搜索綁定DN時使用的密碼
-H URI LDAPURI (defaults to ldap://localhost) 指向其他LDAP服務器
-h server LDAP server (defaults to localhost) 一般都指為本地LDAP
-p port LDAP server port LDAP埠
-P persistent LDAP connection 不中斷對LDAP服務器的連接
-c timeout connect timeout 連接超時的時間段
-t timelimit search time limit 最小的搜索時間
-v 2|3 LDAP version LDAP的版本