标签:domain lib64 grep 输入 star eal etc 代理 linux
用authentication helpers添加身份验证
有如下几种认证方式 :
=> NCSA: Uses an NCSA-style username and password file.
=> LDAP: Uses the Lightweight Directory Access Protocol
=> MSNT: Uses a Windows NT authentication domain.
=> PAM: Uses the Linux Pluggable Authentication Modules scheme.
=> SMB: Uses a SMB server like Windows NT or Samba.
=> getpwam: Uses the old-fashioned Unix password file.
=> SASL: Uses SALS libraries.
=> NTLM, Negotiate and Digest authentication
配置NCSA 认证
一、创建认证用户名/密码,用htpasswd
输入密码
New password:
Re-type new password:
二、确定squid是否支持authentication helper
yum 安装的
输出:
/usr/lib64/squid/ncsa_auth
三、配置SQUID认证
# vi /etc/squid/squid.conf
加入验证部分内容:
添加 acl 验证用户:
四、重启squid生效
# /etc/init.d/squid restart
标签:domain lib64 grep 输入 star eal etc 代理 linux
原文地址:https://www.cnblogs.com/smilezgy/p/9545513.html