[squid-users] squid_ldap_auth referral issue

From: Stefano Mason <stefano.mason@dont-contact.us>
Date: Mon, 10 May 2004 12:47:18 +0200

squid_ldap_auth don't follow referral!

Test:

[smason@perry LDAP]$ ./squid_ldap_auth -b "o=t-systems,c=it" -f "uid=%s"
ldap
myworkroomtest1 livelink
OK

Issue (holly is another ldap with referral):
[smason@perry LDAP]$ ./squid_ldap_auth -b "o=t-systems,c=it" -f "uid=%s"
holly
myworkroomtest1 livelink
squid_ldap_auth: WARNING, LDAP search error 'Referral'
squid_ldap_auth: WARNING, LDAP search error 'Referral'
ERR

Same test with ldapsearch:

[smason@perry LDAP]$ ldapsearch -x -b "o=t-systems,c=it" -h holly
uid=myworkroomtest1
version: 2

#
# filter: uid=myworkroomtest1
# requesting: ALL
#

# search result
search: 2
result: 10 Referral
ref: ldap://ldap.debis.it:389/O%3dT-Systems,C%3dIT

# numResponses: 1

(ldapsearch with -C parameter)

[smason@perry LDAP]$ ldapsearch -C -x -b "o=t-systems,c=it" -h holly
uid=myworkroomtest1
version: 2

#
# filter: uid=myworkroomtest1
# requesting: ALL
#

# myworkroomtest1, User, T-Systems, IT
dn: CN=myworkroomtest1,OU=User,O=T-Systems,C=IT
mail: myworkroomtest1@t-systems.it
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
objectclass: top
sn: myworkroomtest1
uid: myworkroomtest1
ars: generale

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

squid_ldap_auth return 2 time the same error "squid_ldap_auth: WARNING,
LDAP search error 'Referral'", is possible the second time don't use the
new ldapurl/host?

Many thanks in advance.
Best regards.
Stefano
Received on Mon May 10 2004 - 04:47:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT