Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92247 - net-proxy/squid ebuild should change winbindd_privileged permissions?
Summary: net-proxy/squid ebuild should change winbindd_privileged permissions?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 07:53 UTC by Ricardo Nuno
Modified: 2005-05-19 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Nuno 2005-05-11 07:53:08 UTC
Ok this is not really a bug, it's more a lack of information or if you like an opinion request.

I have here a SAMBA-PDC + LDAP working great, then i remenber to add squid with the domain authentication, I did all the necessary configs and end up with this error:

2005/05/11 11:07:55| authenticateNTLMHandleReply: Error validating user via NTLM. Error returned 'BH NT_STATUS_ACCESS_DENIED'
[2005/05/11 11:07:58, 0] utils/ntlm_auth.c:winbind_pw_check(427)
  Login for user [MOONORG]\[RNUNO]@[PC0009] failed due to [winbind client not authorized to use winbindd_pam_auth_crap.  Ensure permissions on /var/cache/samba/winbindd_privileged are set correctly.]
[2005/05/11 11:07:58, 0] utils/ntlm_auth.c:manage_squid_ntlmssp_request(600)
  NTLMSSP BH: NT_STATUS_ACCESS_DENIED

witch was simply resonved with a:
chgrp squid /var/cache/samba/winbindd_privileged

should we warn the users about this? or maybe include a samba USE flag?
I leave it at your consideration.

regards,
RNuno

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-05-11 11:00:43 UTC
squid supports a plethora of authentication methods. If the message is targeted to a specific kind of authentication, you should provide a step by step procedure.

do you have a suggestion of how the warning message should sound?
is it short enough? if not, I suggest to post a howto document in forum.
Comment 2 Ricardo Nuno 2005-05-12 04:03:44 UTC
Well it's target to winbind authentication. That's why I sugested a samba flag or maybe winbind?

the procedure is this:
1. We already have a Samba PDC up and running in another machine.
2. on the PROXY machine we do: USE="winbind" emerge squid samba
3. edit /etc/squid/squid.conf to your needs and add the following:

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

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 2 hours

acl AuthorizedUsers proxy_auth REQUIRED
http_access allow all AuthorizedUsers



4. edit /etc/samba/smb.conf and add the following:

[global]
workgroup = YOURDOMAIN
netbios name = Squid
server string = Squid Server
security = domain
encrypt passwords = Yes
password server = pdcserver
log level = 2
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = False
local master = No
domain master = False
dns proxy = No
wins server = winsserver
winbind separator = /
template homedir = /dev/null
template shell = /dev/null
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
idmap uid = 10000-20000
idmap gid = 10000-20000

5. start samba and add it to the domain: net join -W YOURDOMAIN -U root
6. test it: wbinfo -t; wbinfo -u;
7. chgrp squid /var/cache/samba/winbindd_privileged
8. squid -z; /etc/init.d/squid start

and your set :)

Now about the message, maybe if we had a samba/winbind USE flag on the ebuild
we should post someting like:

* To winbind auth work with your squid your should change the 
* /var/cache/samba/winbindd_privileged group to the same one
* you use in the cache_effective_group option on your squid.conf

what do you think?
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-05-19 12:31:49 UTC
fixed in squid-2.5.10

maybe you should write a howto on forums.g.o