Another user migration idea

lkcl at switchboard.net lkcl at switchboard.net
Thu Sep 24 15:38:04 GMT 1998


On Wed, 23 Sep 1998, Dana Canfield wrote:

> Luke Kenneth Casson Leighton wrote:
> 
> > > > possible to write a pam_unix_auth.so or pam_unix_passwd.so that would
> > > > update /etc/smbpasswd when someone logs in?  I know this is kind of
> > > > specific to Linux and maybe Solaris, but wouldn't pam have access to the
> > > > cleartext password?  I don't have the programming skills to pull this
> > > > off, but it seems like someone like Luke who has written several PAM
> > > > modules would be able to do this pretty easily.
> >
> > one!
> >
> > someone's already done this (pam module that writes to smbpasswd).
> > remember that this is bad as we use a password api now, not writing direct
> > to private/smbpasswd.
> 
> Any pointers to where I could find this module?  I didn't see anything like it
> when looking last week.

don't know, but try http://samba.anu.edu.au/cvs.html and checkout
pam_smbpass.
 
> Just for curiosity sake, the "proper" way to do this now would just be to
change
> the PAM module to
> use an API to change the password rather than hitting the password file
> directly?

correct!  also the smbpasswd command needs to do the same thing.

> Anyway, it's great to see you back in action and responding to your own list
> messages again, Luke! ;-)

shucks





More information about the samba-ntdom mailing list