Search squid archive

Using group names that include white spaces with external auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I'm trying to use group names that include white spaces (such as
"Group Name") with external auths.

I got some ACLs defined like this:

external_acl_type ldap_group %LOGIN /usr/lib/squid/squid_ldap_group -W
/etc/squid/squid_ldap.secret -D "cn=Manager,dc=test,dc=local" -b
"ou=Internet,ou=Groups,dc=test,dc=local" -f
"(&(objectclass=posixGroup)(cn=%g)(memberUid=%u))" -h 127.0.0.1 -P -v
3 -B "ou=People,ou=Users,dc=test,dc=local"

acl group_name external ldap_group Group%20Name
acl anotheracl external ldap_group anothergroup

http_access allow group_name
http_access allow anotheracl
http_access deny all

It actually works for anotheracl (which doesn't have white spaces) ,
but it doesn't for group_name.  The problem: the white space.

If I get that string and feed that directly to the squid_ldap program,
it works!, I tried this:

run:
/usr/lib/squid/squid_ldap_group -W /etc/squid/squid_ldap.secret -D
"cn=Manager,dc=test,dc=local" -b
"ou=Internet,ou=Groups,dc=test,dc=local" -f
"(&(objectclass=posixGroup)(cn=%g)(memberUid=%u))" -h 127.0.0.1 -P -v
3 -B "ou=People,ou=Users,dc=test,dc=local"

type:
user1 Group%20Name
and it answered:
OK

off course, user1 is a member of "Group Name"

So, the %20 trick should work, but then.... from the squid.conf , it doesn't.

I also tried these variations without success:
acl group_name external ldap_group Group Name
acl group_name external ldap_group Group\ Name
acl group_name external ldap_group "Group Name"
acl group_name external ldap_group Group%%20Name
acl group_name external ldap_group Group\%20Name

Any ideas?

Thanks in advance,

Ildefonso Camargo

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux