Jump to content

Recommended Posts

Posted

OK--Here's the latest update on my system. Earlier, I tried to reset the permissions to grant squid access to winbind. However, in the process, something went very wrong and I now get the following error when I try to start winbind.

 

[2007/06/17 21:39:47, 0] lib/util_sock.c:create_pipe_sock(1285)
 invalid permissions on socket directory /var/lib/samba/winbindd_privileged
open_winbind_socket: Resource temporarily unavailable

 

Any tips on how to properly fix this? I have tried resetting the permissions to what the other folders are set to originally, and it still has the same error. I am really hoping I will not have to format the hard drive and start the Suse install from the beginning.

 

Luckily, my VNC connection continues to work, so this is making my troubleshooting much easier.

Posted
change the group ownership of '/var/lib/samba/winbindd_privileged' to whatever group squid runs as (most likely 'squid' or 'proxy').
Posted

OK, it looks like I had a corrupt file somewhere. I reinstalled Samba and got it configured like before. I can now manually start winbind.

 

However, when I try to change the permission settings (changing group to Squid) for the winbindd_privileged folder, winbind then stops and refuses to start itself, or be manually started.

 

Please see my attached image. This is my current permission settings for the folder. Please let me know if you have any advice.

screenhunter_01_jun._18_17.49.gif

Posted

OK, I discovered that the reason winbind kept crashing was that the server needed a restart after I reinstalled Samba. The permissions have been corrected.

 

However, when I try to access websites, I still get about 10-12 login prompts and it still does not accept the username/password.

 

The log file shows that it is recording the username, which is was not before, so this appears to be a good sign.

 

Do you think that http access is disabled for NTLM user ACL, or is it still a winbind problem?

screenhunter_01_jun._19_07.55.gif

Posted

Enabling NTLM keep alive is probably a good idea.

auth_param ntlm keep_alive on

 

I don't see anything obviously wrong with your http_access lines. I shall post mine tomorrow though so you can compare.

Posted

Thank you, Geoff, I'd appreciate that if you would post your settings.

 

I did notice one more thing, not sure if it's related- check the attachment to see the warning I get anytime squid starts or stops.

screenhunter_01_jun._19_21.32.gif

Posted

I am using the following version of squid

 

root@titan:/etc/squid# squid -v
Squid Cache: Version 2.5.STABLE12
configure options:  --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io --with-pthreads --enable-storeio=ufs,aufs,diskd,null --enable-linux-netfilter --enable-arp-acl --enable-removal-policies=lru,heap --enable-snmp --enable-delay-pools --enable-htcp --enable-poll --enable-cache-digests --enable-underscores --enable-referer-log --enable-useragent-log --enable-auth=basic,digest,ntlm --enable-carp --with-large-files i386-debian-linux

 

With the following configuration

 

#IP/Port squid listens for connections on

#for testing
#http_port 8080

#for dansguardian
http_port localhost:3128

# What we call ourselves

visible_hostname proxy.carrhill.lancs.sch.uk

#don't cache urls with these in them

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

# how much ram to use

cache_mem 256 MB

# largest file to cache

maximum_object_size  200 MB

#where the cache is on disk, how large it is (50Gb)

cache_dir ufs /var/spool/squid 50000 16 256

#Define upstream proxy

cache_peer proxy.lancsngfl.ac.uk        parent  8080    7       no-query default

#Authentication methods

#NTLM

auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 10
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 2 minutes

#Basic Auth (Just in case)

auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 5 hours

#define some acls

# basic stuff
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object

#Localhost
acl localhost src 127.0.0.1/255.255.255.255

#Local LEA
acl local_external dstdomain lancsngfl.ac.uk

#Local domain
acl local_servers dstdomain carrhill.lancs.ac.uk

#LAN IP Range
acl local_ip_range dst 10.73.24.0/255.255.252.0
acl local_lan_ip src 10.73.24.0/255.255.252.0

#Software that doesn't support user authentication

#For windows updates
acl windowsupdates dstdomain .microsoft.com .windowsupdate.com

#For food software
acl food dstdomain .cls-bfh.co.uk

#Standard ACLs
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 777         # multiling http
acl purge method PURGE
acl CONNECT method CONNECT

#Authentication ACL
acl AuthorizedUsers proxy_auth REQUIRED

# Allow manager from Localhost
http_access allow manager localhost
http_access allow manager local_lan_ip
http_access deny manager

# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge

# Deny requests to unknown ports
http_access deny !Safe_ports

# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

#Allow without authentication
#http_access allow localhost

#Allow software  with no authentication
http_access allow windowsupdates
http_access allow food

#allow authenticated users
http_access allow AuthorizedUsers

# Don't go via another proxy for these addresses
always_direct allow local_external
always_direct allow local_servers
always_direct allow local_ip_range
never_direct allow all

# And finally deny all other access to this proxy
http_access deny all

Posted

Thank you, Geoff. That's very helpful.

I am now trying to install Squid version 2.5, like on your system, so the configuration file will be more similar, and hopefully, easier for me to find the problem.

 

One odd problem occurred after I reinstalled it and editted the config file. The attached error message appears anytime squid starts/stops.

 

This appeared a few minutes after Squid "terminated abnormally" and said warning: Squid killed!

 

Have you seen this message before?

screenhunter_01_jun._20_21.54.gif

Posted

^It turns out I had accidentally copied the Squid 2.6 init script. A quick squid reinstall fixed that problem and I now get the authentication dialog.

 

However, I am still getting 6+ dialogs and it is not accepting the username and password. I have updated the config file to be very similar to yours.

 

I do not know if I missed something in the config file, or what.

 

Do you have any more ideas? (I can get any file that might be helpful).

 

Thanks again.

squid_-_notepad.pdf

screenhunter_02_jun._22_14.19.gif

screenhunter_01_jun._22_14.12.gif

Posted

You have a broken acl. You wrote

http_access allow all AuthorizedUsers

It should read as

http_access allow AuthorizedUsers

Posted

I now fixed the broken ACL.

 

However, it is still not accepting the username/password.

I did notice something odd: the first few login prompts just say

Enter username and password for proxy "" at 192.168.0.2:3128.

then the last few login prompts say

Enter username and password for proxy "Squid proxy-caching web server" at 192.168.0.2:3128.

 

The username is only recorded in the log for the second style of login prompt.

 

Does this mean something is still not configured correctly, and could cause it to not accept any username/password? Thanks.

Posted

I checked the Samba and Winbind logs and found a few interesting events that might be related to the NTLM problem. Screenshots are attached. These events occur after every system restart.

 

Any thoughts on whether these are a likely cause, and tips on how to correct these? Thanks.

screenhunter_03_jun._24_10.57.gif

screenhunter_02_jun._24_10.56.gif

Posted

wbinfo -t produces the following result:

 

checking the trust secret via RPC calls succeeded  

 

Is this is a good response?

 

 

In addition, wbinfo -g lists all domain user groups (not sure if that helps any).

Posted

root@titan:~# ntlm_auth -V
Version 3.0.22

In theory, the version of ntlm_auth should be the same as the version of samba your using.

root@titan:~# smbd -V
Version 3.0.22

 

If not, or they are both really old. This might be why your having problems.

Posted

Thanks.

 

Samba is version 3.023d-6-1083-SUSE-SL10.2

NTLM_auth keeps saying unknown option when I try -V.

 

Does this mean it needs to be reinstalled? Any tips on reinstalling it? It does not appear in Yast as an install option.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...