This means that your authentication doesn't work properly

What do you have in cache.log? in winnbind.log?

---
St�phane Davy - Consultant Alc�ve



                                                                                       
                                                               
                      [EMAIL PROTECTED]                                                
                                                          
                                                Pour :   [EMAIL PROTECTED]             
                                                                   
                      11/05/2004 16:42          cc : [EMAIL PROTECTED]                 
                                                     
                                                Objet :  Re: [squid-users] NTLM 
username logging problem                                              
                                                                                       
                                                               








hm no it' doesnt work... in the access.log is written: Denied!


so

acl authorizedusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl our_networks src 82.29.1.0/24
http_access allow all authorizedusers
http_access allow our_networks
http_access deny allw

works and

acl authorizedusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
http_access allow all authorizedusers
http_access deny all

works not...

but if the fing that was told me bevor is right, I've a failure in the
working one...
and it jups over this faiure, probably it works because of this jump.
(remember: the sting: http_access allow our_networks is not used because
this schould stay in the upper allow line ....)


strange...

Lukas




             [EMAIL PROTECTED]

             11.05.2004 16:55                                           To

                                       [EMAIL PROTECTED]
                                                                        cc
                                       [EMAIL PROTECTED]




                                                                   Subject
                                       [squid-users] NTLM username logging
                                       problem











and with that:

acl authorizedusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
http_access allow all authorizedusers
http_access deny all

what happens?


---
St�phane Davy - Consultant Alc�ve





                      [EMAIL PROTECTED]

                                                Pour :
[EMAIL PROTECTED]

                      11/05/2004 14:18          cc :

                                                Objet :  [squid-users] Re:
R�f. : [squid-users] NTLM username logging problem









      Hm ok. Sorry my fault... In other words: My problem is not the
security with ACL's...
   I just want to log the usernames with NTLM into a file ( access.log).
   Maybe I should try it without ACL's... Ok on a minimum reduced it looks
like this:

squid.conf:
...
debug_options ALL,1

auth_param ntlm program /usr/bin/ntlm_auth3 \
--helper-protocol=squid-2.5-ntlmssp

auth_param basic program /usr/bin/ntlm_auth3 \
--helper-protocol=squid-2.5-basic

acl authorizedusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl our_networks src 82.29.1.0/24
http_access allow all authorizedusers
http_access allow our_networks
http_access deny all

=====================================================

Now, if somebody tries to connect to the internet, he has to be authorized,
I think???
Ok if he's really authorized, I want do write (it should write!) the
username in a file (perhaps access.log),
that I can read out, who has which website on which time visited...

@ the moment, it works, but the access.log still looks like:

1084264501.855   3416 82.29.1.18 TCP_MISS/200 3980 GET
http://www.google.ch/ - DIRECT/www.google.ch text/html

   there is an ip, but no username... I don't know what to do to become
this username! It's confusing...
   But I think the acl authorizedusers proxy_auth REQUIRED is the key to
this problem...

   Thanks for your help!

   Lukas





             [EMAIL PROTECTED]

             11.05.2004 15:10                                           To

                                       [EMAIL PROTECTED]
                                                                        cc
                                       [EMAIL PROTECTED]




                                                                   Subject
                                       R�f. : [squid-users] NTLM username
                                       logging problem











I think i have it:
you define a acl called our_network based on a src IP, and you allow it
http_access. i think you probably want to allow access to servers inside
your network, and then use a "dst" acl definition instead of a "src" one.
Is it what you want to do?

---
St�phane Davy - Consultant Alc�ve





                      [EMAIL PROTECTED]

                                                Pour :
[EMAIL PROTECTED]

                      11/05/2004 10:30          cc :

                                                Objet :  [squid-users] NTLM
username logging problem









hi!
I've Squid 2.5 with NTLM, Samba 3 with Winbind, and Mandrake 9.2 running.
My problem is, that I want to log the usernames and their visited websites.
I want to do this with NTLM / Winbind. The user ID's are stored on a
WinNT-PDC.
And I don't want that the user must enter his key everytime, he connects to
the interet.
I think my Winbind works properly, so it must be something wrong with my
squid.conf...

squid.conf:
...
log_ip_on_direct off # off=hostname, on=ip ?
debug_options ALL,1
client_db on

auth_param ntlm program /usr/bin/ntlm_auth3 \
--helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 5
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 2 minutes

auth_param basic program /usr/bin/ntlm_auth3 \
--helper-protocol=squid-2.5-basic
auth_param basic realm basic-squid-cache
auth_param basic children 5
auth_param basic credentialsttl 2 hours

acl authorizedusers proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl our_networks src 82.29.1.0/24
acl localhost src 82.29.1.26/255.255.255.255
acl safe_ports port 80              # http
acl safe_ports port 21              # ftp
acl safe_ports port 443             # https
acl safe_ports port 563             # https
acl safe_ports port 1025-65535      # unregistered ports
acl CONNECT method CONNECT
acl allowed_hosts src 82.29.1.0/255.255.255.0
http_access allow localhost
http_access deny !safe_ports
http_access deny CONNECT !safe_ports
http_access allow allowed_hosts
http_access allow our_networks
http_access allow all authorizedusers
http_access deny all
http_reply_access allow all

I think its probably something with the ACL's... Can you help me please?
Thanks!!!

Lukas























Reply via email to