Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5702934
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: LINUX

2009-04-06 22:36:30

给squid增加ldap认证

查看squid与ldap server的连接:
pact518:/etc/squid# /usr/lib/squid/ldap_auth -R -b "dc=pact518,dc=hit,dc=edu,dc=cn" -f "uid=%s" -h 127.0.0.1
wangyao xxxxxxxx
ERR Success

pact518:/etc/squid# /usr/lib/squid/ldap_auth -R -b "dc=pact518,dc=hit,dc=edu,dc=cn" -f "uid=%s" -h 127.0.0.1 -v 3
wangyao xxxxxx
OK


原因:squid_ldap_auth默认使用openldap version 2。
解决方法:
1> 在/etc/ldap/slapd.conf中添加
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
2> squid_ldap_auth使用openldap版本3连接

参考:

阅读(1894) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~