squid_ldap_auth don't follow referral!

Test:

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


Issue (holly is another ldap with referral):
[EMAIL PROTECTED] 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:

[EMAIL PROTECTED] 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)

[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
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

Reply via email to