Markus Wiederkehr
2006-Oct-23 18:35 UTC
Bug#394886: adduser does not work if libpam-smbpass is enabled
Package: adduser Version: 3.99 Severity: wishlist Adduser does not work if the PAM module libpam-smbpass was enabled by adding "password required pam_smbpass.so nullok use_authtok try_first_pass" to /etc/pam.d/common-password. This is what happens:> root@orion$ adduser --debug charly > Adding user `charly'' ... > Selecting UID from range 1000 to 29999 ... > Selecting GID from range 1000 to 29999 ... > Adding new group `charly'' (1001) ... > /usr/sbin/groupadd -g 1001 charly > Adding new user `charly'' (1001) with group `charly'' ... > /usr/sbin/useradd -d /home/charly -g charly -s /bin/bash -u 1001 charly > Creating home directory `/home/charly'' ... > Copying files from `/etc/skel'' ... > passwd: User not known to the underlying authentication module > passwd: password unchanged > Try again? [Y/n]The reason is that the adduser script invokes groupadd, useradd and passwd, in that order. The invocation of passwd fails because the user does not yet exist in the local smbpasswd file. It is necessary to invoke "smbpasswd -a -n $user" after useradd but before passwd. Please provide some kind of hook that can be used for this purpose. A similiar hook would be needed in deluser in order to invoke "smbpasswd -x $user" at the right moment. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, ''testing''), (500, ''unstable'') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15.6-s2-3 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages adduser depends on: ii debconf [debconf-2.0] 1.5.6 Debian configuration management sy ii passwd 1:4.0.18.1-3 change and administer password and ii perl-base 5.8.8-6.1 The Pathologically Eclectic Rubbis adduser recommends no packages. -- debconf information: * adduser/homedir-permission: true
Debian Bug Tracking System
2006-Oct-24 00:02 UTC
Processed: Re: [Adduser-devel] Bug#394886: adduser does not work if libpam-smbpass is enabled
Processing commands for control@bugs.debian.org:> tags 394886 +for-the-rewriteUnknown tag/s: for-the-rewrite. Recognized are: patch wontfix moreinfo unreproducible fixed potato woody sid help security upstream pending sarge sarge-ignore experimental d-i confirmed ipv6 lfs fixed-in-experimental fixed-upstream l10n etch etch-ignore. Bug#394886: adduser does not work if libpam-smbpass is enabled There were no tags set. Tags added:> tags 394886 +patch-appreciatedUnknown tag/s: patch-appreciated. Recognized are: patch wontfix moreinfo unreproducible fixed potato woody sid help security upstream pending sarge sarge-ignore experimental d-i confirmed ipv6 lfs fixed-in-experimental fixed-upstream l10n etch etch-ignore. Bug#394886: adduser does not work if libpam-smbpass is enabled There were no tags set. Tags added:> merge 394886 36019Bug#36019: hooks: /etc/adduser/{pre,post}{user,group}{add,del}.d/ Bug#394886: adduser does not work if libpam-smbpass is enabled Bug#223932: adduser: Hooks for adding/deleting users to/from groups Merged 36019 223932 394886.> thanks, botUnknown command or malformed arguments to command.> This one time, at band camp, Markus Wiederkehr said:Unknown command or malformed arguments to command.> > The reason is that the adduser script invokes groupadd, useradd and passwd,Unknown command or malformed arguments to command.> > in that order. The invocation of passwd fails because the user does notUnknown command or malformed arguments to command.> > yet exist in the local smbpasswd file. It is necessary to invoke "smbpasswdUnknown command or malformed arguments to command. Too many unknown commands, stopping here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Stephen Gran
2006-Oct-24 00:25 UTC
Bug#394886: [Adduser-devel] Bug#394886: adduser does not work if libpam-smbpass is enabled
tags 394886 +for-the-rewrite tags 394886 +patch-appreciated merge 394886 36019 thanks, bot This one time, at band camp, Markus Wiederkehr said:> The reason is that the adduser script invokes groupadd, useradd and passwd, > in that order. The invocation of passwd fails because the user does not > yet exist in the local smbpasswd file. It is necessary to invoke "smbpasswd > -a -n $user" after useradd but before passwd. > > Please provide some kind of hook that can be used for this purpose. A > similiar hook would be needed in deluser in order to invoke "smbpasswd > -x $user" at the right moment.This is similar to the other "add hooks" features requested, so I am going to merge this with them for now. This is going to have to wait for a substantial rewrite. On the up side, I have a high level architecture scoped out, and a lot of code written. On the downside, life has gotten busier, and I don''t see a chance to finish in the near future. Maybe I''ll dig up the code and just dump it on svn.d.o for others to have a poke at. Take care, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20061023/8556164d/attachment.pgp