[Bug 908905] Re: upstart problems with S20squid script

2012-02-22 Thread b1
I dist-upgraded from an ubuntu 10.04.2 LTS. But this problem also occurs
with a "normal" upgrade.

sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 10.04.2 LTS
Release:10.04
Codename:   lucid

I have a VM-Snapshot of the system before the update and the failure is
always reproducable. Since there is now private Data on that Machine
(its a testing environment), I could upload the Snapshot, if you like.

Thanks for your efforts.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908905

Title:
  upstart problems with S20squid script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908905/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 908905] Re: upstart problems with S20squid script

2012-01-05 Thread b1
Thanks for your answer. The output is

sudo dpkg -L squid
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/squid
/usr/share/doc
/usr/share/doc/squid
/usr/share/doc/squid/examples
/usr/share/doc/squid/examples/default.squid
/usr/share/doc/squid/examples/squid.conf
/usr/share/doc/squid/README.Debian.gz
/usr/share/doc/squid/copyright
/usr/share/doc/squid/NEWS.Debian.gz
/usr/share/doc/squid/changelog.Debian.gz
/usr/share/doc/squid/changelog.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/squid_ldap_group.8.gz
/usr/share/man/man8/squid_unix_group.8.gz
/usr/share/man/man8/squid_session.8.gz
/usr/share/man/man8/squid.8.gz
/usr/lib
/usr/lib/squid
/usr/lib/squid/yp_auth
/usr/lib/squid/ldap_auth
/usr/lib/squid/msnt_auth
/usr/lib/squid/squid_ldap_group
/usr/lib/squid/pam_auth
/usr/lib/squid/diskd-daemon
/usr/lib/squid/logfile-daemon
/usr/lib/squid/unlinkd
/usr/lib/squid/ntlm_auth
/usr/lib/squid/smb_auth
/usr/lib/squid/ip_user_check
/usr/lib/squid/squid_kerb_auth
/usr/lib/squid/wbinfo_group.pl
/usr/lib/squid/digest_pw_auth
/usr/lib/squid/ncsa_auth
/usr/lib/squid/squid_unix_group
/usr/lib/squid/getpwnam_auth
/usr/lib/squid/smb_auth.sh
/usr/lib/squid/squid_session
/usr/sbin
/usr/sbin/squid
/var
/var/log
/var/log/squid
/var/spool
/var/spool/squid
/etc
/etc/resolvconf
/etc/resolvconf/update-libc.d
/etc/resolvconf/update-libc.d/squid
/etc/squid
/etc/init.d
/etc/init
/etc/init/squid.conf
/etc/logrotate.d
/etc/logrotate.d/squid
/etc/init.d/squid

As you already suspected the files are not present and I have therefore
deleted them, as you suggested. Squid is booting up fine.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908905

Title:
  upstart problems with S20squid script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908905/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 909181] Re: wbinfo_group.pl does not recognize domain names containing spaces

2011-12-28 Thread b1
I am sorry for the inconvenience but I just realized that squid replaces
all whitespaces with %20 so there is no need to patch anything. Its even
the contrary. The above patch does harm if wbinfo_group.pl gets a text-
file containing multiple newline seperated groups.

So please just close this bug. I am sorry for the inconvenience and I
will make more intense testing the next time before I file a bug report.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/909181

Title:
  wbinfo_group.pl does not recognize domain names containing spaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/909181/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 909181] Re: wbinfo_group.pl does not recognize domain names containing spaces

2011-12-27 Thread b1
** Patch added: "wbinfo_group_new.pl.patch"
   
https://bugs.launchpad.net/bugs/909181/+attachment/2648641/+files/wbinfo_group_new.pl.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/909181

Title:
  wbinfo_group.pl does not recognize domain names containing spaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/909181/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 909181] [NEW] wbinfo_group.pl does not recognize domain names containing spaces

2011-12-27 Thread b1
Public bug reported:

Today I ran into the problem that the wbinfo_group.pl script supplied by
squid is incable of handling domain names containing spaces. For example
the group name "staff" is ok, "domain admins" however is not. I found
this great blog post: http://harlekwin.info/2008/12/10/how-to-squid-ad-
authentication/ which proposes a fix. I tested the fix and it works.

I have created a corresponding patch and have attached it to this bug-report.
ATTENTION: The patch was created against a version of wbinfo_group.pl, which 
has the patch from BugReport: 908908 applied.

If you need a patch against the original wbinfo_group.pl, just tell me
and I will create one.

Thanks for your efforts

B. Brandt

** Affects: squid (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/909181

Title:
  wbinfo_group.pl does not recognize domain names containing spaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/909181/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 908905] Re: upstart problems with S20squid script

2011-12-26 Thread b1
** Description changed:

  After performing a dist-upgrade of my lucid installation, I got the
  following upstart error in my boot.log:
  
  Rather than invoking init scripts through /etc/init.d, use the service(8)
  utility, e.g. service S20squid start
  
  Since the script you are attempting to invoke has been converted to an
  Upstart job, you may also use the start(8) utility, e.g. start S20squid
  start: Unknown job: S20squid
  
  One can reproduce this bug, by simply issuing "sudo
  /etc/rc(2-5).d/S20squid start". Since S20squid is simply a symlink to
  /etc/init.d/squid this affects all runlevels. However it seems to be non
  critical since squid is started anyway (I have no idea why).  The issue
- can be fixed by modifying line 8 in /etc/init.d/squid from
+ can be fixed by inserting
  
- JOB="${INITSCRIPT%.sh}"
+ if [ "$JOB" = "S20squid" ]; then
+ JOB="squid"
+ fi
  
- to
- 
- JOB="squid"
- 
- So there are two issues here, if I am not mistaken. First the redundancy
- since squid is started by two different scripts(?) and secondly the
- wrong line in /etc/init.d/squid.
+ into /etc/init.d/squid, see attached patch. However there are two issues
+ here, if I am not mistaken. First the redundancy since squid is started
+ by two different scripts(?) and secondly the wrong line in
+ /etc/init.d/squid.
  
  I am running Ubuntu 10.04.3 LTS
  My squid version is 2.7.STABLE7
  The system is up-to-date (aside from the grub package which is held back)
  
  If you need any more information I am happy to provide it.
  
  Thanks for your efforts
  
  B. Brandt

** Patch added: "inserting case discrimation in /etc/init.d/squid"
   
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908905/+attachment/2647875/+files/squid_new.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908905

Title:
  upstart problems with S20squid script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908905/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 908908] Re: uninitialized variable in wbinfo_group.pl causes false authentication results

2011-12-26 Thread b1
** Patch added: "patching unitialized variable and pack function call"
   
https://bugs.launchpad.net/bugs/908908/+attachment/2647870/+files/wbinfo_group_new.pl.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908908

Title:
  uninitialized variable in wbinfo_group.pl causes false authentication
  results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908908/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 908908] [NEW] uninitialized variable in wbinfo_group.pl causes false authentication results

2011-12-26 Thread b1
Public bug reported:

I am using squid version 2.7.STABLE7 with users authenticating via an
ActiveDirectory (AD). I am using the wbinfo_group.pl helper script for
checking group memberships. After a while internet access is denied at
random for some users. In the squid log I see

Use of uninitialized value in concatenation (.) or string at
/usr/lib/squid/wbinfo_group.pl line 67,  line 1.

this message repeats from time to time, with "line 1" increasing. As
described in http://www.linuxquestions.org/questions/linux-server-73
/squid-ntlm-authentication-only-first-logon-is-authenticated-723587/ I
explicitly set the variable $ans. After that I get some errors about

Character in 'c' format wrapped in pack at
/usr/lib/squid/wbinfo_group.pl line 92,  line 1.

So I changed the function call

pack("c",hex($1))

to

pack("C",hex($1))

everywhere in the script. Since then everything is running smoothly. No
more random errors. I have attached a diff file with the changes.

I am running Ubuntu 10.04.3 LTS
squid  version 2.7.STABLE7

If you need any more information I am happy to provide it.

Thanks for your efforts

B. Brandt

** Affects: squid (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908908

Title:
  uninitialized variable in wbinfo_group.pl causes false authentication
  results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908908/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 908905] [NEW] upstart problems with S20squid script

2011-12-26 Thread b1
Public bug reported:

After performing a dist-upgrade of my lucid installation, I got the
following upstart error in my boot.log:

Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service S20squid start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start S20squid
start: Unknown job: S20squid

One can reproduce this bug, by simply issuing "sudo
/etc/rc(2-5).d/S20squid start". Since S20squid is simply a symlink to
/etc/init.d/squid this affects all runlevels. However it seems to be non
critical since squid is started anyway (I have no idea why).  The issue
can be fixed by modifying line 8 in /etc/init.d/squid from

JOB="${INITSCRIPT%.sh}"

to

JOB="squid"

So there are two issues here, if I am not mistaken. First the redundancy
since squid is started by two different scripts(?) and secondly the
wrong line in /etc/init.d/squid.

I am running Ubuntu 10.04.3 LTS
My squid version is 2.7.STABLE7
The system is up-to-date (aside from the grub package which is held back)

If you need any more information I am happy to provide it.

Thanks for your efforts

B. Brandt

** Affects: squid (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in Ubuntu.
https://bugs.launchpad.net/bugs/908905

Title:
  upstart problems with S20squid script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/908905/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs