Yellow 就怕你碌碌无为,还安慰自己平凡可贵 -------------yolo

ldap+squid 实现

1 ldap+openldapadmin安装

这里面大量借鉴了其他博主的博文 一定要注意版本 2.4.44-2 [完全一样](https://www.cnblogs.com/swordfall/p/12119010.html#auto_id_10) https://www.pianshen.com/article/112350307/

安装squid

yum install squid

修改配置文件

/etc/squid/squid.conf
http_port 50443 dns_nameservers 114.114.114.114 \#认证 \#auth_param basic program /data/squid/libexec/basic_ncsa_auth /data/squid/etc/passwd auth_param basic program /usr/lib64/squid/basic_ldap_auth -R -b "dc=node3,dc=com" -D "uid=admin,dc=node3,dc=com" -w "123456" -f uid=%s -h 192.168.152.129 auth_param basic realm proxy \#acl acl authenticated proxy_auth REQUIRED \#应用acl http_access allow authenticated \#http_access allow all http_access deny all

配置浏览器测试

posted @ 2021-09-13 11:08  zfno11  阅读(195)  评论(0编辑  收藏  举报