[squid-users] ldap_auth problem,stuck!!

From: ali batuhan dayioglugil <batuhandayioglugil_at_hotmail.com>
Date: Wed, 6 Aug 2008 17:15:08 +0000

Hi

i confiugured a proxy server (squid 2.6.STABLE14) on a machine (with ubuntu gutsy 7.10) and it has two ethernet cards,one of them for the wan and the other one is for lan (university lan).From my home i can use my proxy server very well (cache,acl...).the second thing that i want to do is to reach the ldap server in university but i can't.

i could never see 'OK' in the terminal,always 'ERR Success' or something else.

i searched a lot in google and tried alot of commands before si configure squid.conf but nothing.to give you some info i'm writing those commands here,

first of all i searched ldap server :

bim @ bimproxy:~$ ldapsearch -x -b dc=gsu,dc=edu -h 10.99.1.1 uid=abdayioglugil
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: uid=abdayioglugil
# requesting: ALL
#

# search reference
ref: ldap://gsu.edu/CN=Configuration,DC=gsu,DC=edu

# search result
search: 2
result: 0 Success

# numResponses: 2
# numReferences: 1

and i got the dn here,with that dn i tried to connect ldap server with my username and pass,which i use in university network for authentication,but no results.

if i use this command without username i see computers connected to university network and their dn are like:
dn: DC=gsu-pc,DC=gsu.edu,CN=MicrosoftDNS,CN=System,DC=gsu,DC=edu
the DC=gsu.edu,CN=MicrosoftDNS,CN=System,DC=gsu,DC=edupart is always the same (*)

now here some commands and results that i got:

bim @ bimproxy:~$ /usr/lib/squid/ldap_auth -b "dc=gsu,dc=edu" -f "uid=%s" 10.99.1.1
abdayioglugil
nothing

bim @ bimproxy:~$ /usr/lib/squid/ldap_auth -b "dc=gsu,dc=edu" -f "uid=%s" -h 10.99.1.1
abdayioglugil
squid_ldap_auth: WARNING, LDAP search error 'Can't contact LDAP server'
ERR Success

i didn't understand this because the ip and dn are exactly correct

bim @ bimproxy:~$ /usr/lib/squid/ldap_auth -b "dc=gsu,dc=edu" -h 10.99.1.1
abdayioglugil
ERR Success

after these commands i tried dn (*) that the other pc in the network use :

bim @ bimproxy:~$ /usr/lib/squid/ldap_auth -b "dc=gsu,dc=edu" -D "DC=gsu.edu,CN=MicrosoftDNS,CN=System,DC=gsu,DC=edu" -h 10.99.1.1
abdayioglugil
ERR Success

that's a short summary of what i have done,i started to use squid about 2 months ago,learned a lot but not enough as always,if you have time i would be thankful for your help,i am really stuck in this subject.

thanks

batu
_________________________________________________________________
Live.com'u deneyin: çevrimiçi dünyanızı bir araya getirin; haberler, spor, hava durumu ve çok daha fazlası.
http://www.live.com/getstarted
Received on Wed Aug 06 2008 - 17:15:15 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 06 2008 - 12:00:02 MDT