Bug#722579: dlm-pcmk is missing dlm_tool

2013-09-12 Thread Daniel Heimann
Package: dlm-pcmk
Version: 3.0.12-3.2+deb7u2
Severity: wishlist

Dear Maintainer(s),

we are currently building a cluster with the following components:
corosync, pacemaker, dlm-pcmk, clvmd and ocfs2; OOTB Debian Packages.
It's working cman-free.

For debugging purposes we would like to use dlm_tool.
Sadly dlm_tool is only included in package cman.

We would need to install the whole cman dependency tree, just to
have dlm_tool for dlm_controld.pcmk (package dlm-pcmk).

Could you possibly repack dlm_tool into a separate package and
require/suggest to install that from cman and dlm-pcmk?


-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages dlm-pcmk depends on:
ii  libc6   2.13-38
ii  libcib1 1.1.7-1
ii  libconfdb4  1.4.2-3
ii  libcpg4 1.4.2-3
ii  libcrmcluster1  1.1.7-1
ii  libcrmcommon2   1.1.7-1
ii  libdlm3 3.0.12-3.2+deb7u2
ii  libglib2.0-02.33.12+really2.32.4-5
ii  libldap-2.4-2   2.4.31-1+nmu2
ii  liblogthread3   3.0.12-3.2+deb7u2
ii  libsackpt3  1.1.4-4.1
ii  libtotem-pg41.4.2-3
ii  libxml2 2.8.0+dfsg1-7+nmu1

dlm-pcmk recommends no packages.

dlm-pcmk suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#701110: adduser removes cloned-uid usernames, during gpasswd -M ... (get_group_members() bug)

2013-02-21 Thread Daniel Heimann
Package: adduser
Version: 3.112+nmu2
Severity: important
Tags: patch

if adduser needs to call gpasswd -M (e.g. when adding the new user to groups,
because of EXTRA_GROUPS in adduser.conf) it uses get_group_members() to first
retrieve other users that have been added to the group before. It then adds
the new user to the list and calls gpasswd with all users alltogether.

When uid-cloned systemusers (two usernames, same userid) are members of such
a group, all but the first (as listed in passwd) get removed, due to adduser's
wrong call to gpasswd. The reason is get_group_members() returns wrong
@members, because getpwuid(getpwnam($_)) eq $_ does not match for cloned uid's.
Instead the first matching username (as listed in passwd) is returned by
getpwuid which is not $_ in this case, so the uid-cloned users do not get
pushed to @members.

get_group_members() (contained in /usr/share/perl5/Debian/AdduserCommon.pm)
is defined as

sub get_group_members
  {
  my $group = shift;
  my @members;
  foreach (split(/ /, (getgrnam($group))[3])) {
  if (getpwuid(getpwnam($_)) eq $_ ) {
  push @members, $_;
  }
  }
  return @members;
  }

While searching for the reason why this is broken in Squeeze and Wheezy, but
not Etch, I found 
http://anonscm.debian.org/viewvc/adduser/trunk/AdduserCommon.pm?r1=646r2=732

It seems the getpwuid(getpwnam($_)) part was made, to prevent root from being 
removed
from groups (because UID 0 failed the if), which is nice. In order to have 
this still
fixed (allow root to be and stay part of groups), not break cloned-uids 
usernames and
still validate that processed users actually exist I'd propose the use of 
defined, like:

sub get_group_members
  {
  my $group = shift;
  my @members;
  foreach (split(/ /, (getgrnam($group))[3])) {
  if (defined getpwnam($_)) {
  push @members, $_;
  }
  }
  return @members;
  }

Works for me (in all described cases).


-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15) (ignored: 
LC_ALL set to de_DE@euro)
Shell: /bin/sh linked to /bin/bash

Versions of packages adduser depends on:
ii  debconf [de 1.5.36.1 Debian configuration management sy
ii  passwd  1:4.1.4.2+svn3283-2+squeeze1 change and administer password and
ii  perl-base   5.10.1-17squeeze4minimal Perl system

adduser recommends no packages.

Versions of packages adduser suggests:
ii  liblocale-gettext-perl 1.05-6Using libc functions for internati
ii  perl-modules   5.10.1-17squeeze4 Core Perl modules

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org