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.
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,