#394886 adduser does not work if libpam-smbpass is enabled

Package:
adduser
Source:
adduser
Submitter:
Markus Wiederkehr
Date:
2022-03-08 06:03:04 UTC
Severity:
wishlist
Tags:
#394886#5
Date:
2006-10-23 16:35:41 UTC
From:
To:
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:

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.

#394886#10
Date:
2006-10-23 22:38:20 UTC
From:
To:
tags 394886 +for-the-rewrite
tags 394886 +patch-appreciated
merge 394886 36019
thanks, bot
This one time, at band camp, Markus Wiederkehr said:

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,