Dear all,

I am confused about the configuration of squid_ldap_auth in squid.conf.
Below is the format of the ldap built by my system administrator, he wants me to set up ldap authentication through squid.


DN:cn=root, dc=shinyang, dc=com, dc=my
|
|________DN:ou=qmail_users, cn=root, dc=shinyang, dc=com, dc=my
|
|________DN:cn=bfyong, ou=qmail_users,cn=root, dc=shinyang,dc=com,dc=my




I understand most steps about setting up ldap for squid, except the section that I have about :
"auth_param basic program" in squid.conf.


*In my squid.conf I set:
auth_param basic program /usr/lib/squid/squid_ldap_auth -b dc=shinyang, dc=com, dc=my -D cn=root,dc=shinyang,dc=com,dc=my -w -f(&(objectclass=person)(cn=%s)) -h 172.16.0.21


*Does it look right based on the LDAP tree I supplied above?
or is it as

*/usr/lib/squid/squid_ldap_auth -b -h 172.16.0.21 -D cn=root,dc=shinyang,dc=com,dc=my -f (&(objectclass=person)(cn=%s)

*or is it

*/usr/lib/squid/squid_ldap_auth -b o=root -h 172.16.0.21 -D cn=bfyong,ou=qmail_users,o=root -w "bfyongpassword" -f (&(objectclass=person)(cn=%s))

*Is any one of the above right? if not...can please show me how to get the right configuration....
thanks all...







Reply via email to