[squid-users] squid_ldap_group

From: Arturs Korneevs <[email protected]>
Date: Fri, 05 Mar 2004 13:26:27 +0200

Hello,

1) I haven't success with the following ldap request:

# /usr/local/squid/libexec/squid_ldap_group \ =
                               =20
> -b ou=3Ddepartments,ou=3Dgroups,ou=3Dcompany,dc=3Dint,dc=3Ddomain,dc=3Dl=
v \=20
> -B ou=3Dactive,ou=3Dcompany,dc=3Dint,dc=3Ddomain,dc=3Dlv \
> -D "cn=3Darturs korneevs,ou=3Dactive,ou=3Dcompany,dc=3Dint,dc=3Ddomain,d=
c=3Dlv" \
> -w secret \
> -F "(&(cn=3D%s)(objectclass=3Duser))" \
> -f "(&(cn=3D%g)(member=3D%u)(objectclass=3Dgroup))" \
> server_ip

ERR
Arturs%20Korneevs HBL%20Everyone
squid_ldap_group WARNING, User '(&(cn=3DArturs%20Korneevs)(objectclass=3Dus=
er))' not found
ERR

2) squid_ldap_auth working fine to me:
# /usr/local/squid/libexec/squid_ldap_auth \
> -b ou=3DActive,ou=3Dcompany,dc=3Dint,dc=3Ddomain,dc=3Dlv \
> -D "cn=3DArturs Korneevs,ou=3DActive,ou=3Dcompany,dc=3Dint,dc=3Ddomain,d=
c=3Dlv" \
> -w secret \
> -f "(&(cn=3D%s)(objectclass=3Duser))" \
> server_ip

ERR
Arturs%20Korneevs secret
OK

3) ldapsearch working fine too:
# ldapsearch -LLL -x \
> -b ou=3DDepartments,ou=3DGroups,ou=3Dcompany,dc=3Dint,dc=3Ddomain,dc=3Dl=
v \
> -D "cn=3DArturs Korneevs,ou=3DActive,ou=3Dcompany,dc=3Dint,dc=3Ddomain,d=
c=3Dlv" \
> -h server_ip -p 389 \
> -w secret \
> "(&(cn=3Dhbl everyone)(member=3Dcn=3Darturs korneevs,ou=3DActive,ou=3Dco=
mpany,dc=3Dint,dc=3Ddomain,dc=3Dlv)(objectclass=3Dgroup))" \
> "cn"

dn: CN=3DHBL Everyone,OU=3DDepartments,OU=3DGroups,OU=3Dcompany,DC=3Dint,DC=
=3Ddomain,DC=3Dlv
cn: HBL Everyone
#=20

User "Arturs Korneevs" is member of group "HBL Everyone".

Maybe do you know what wrong in my first ldap
request.

Thnak you in advance
Received on Fri Mar 05 2004 - 04:27:58 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:01 MST