[Samba] pam_smbpass.so passdb.tdb support

John H Terpstra jht at samba.org
Sat Jul 3 07:01:12 MDT 2010


On 07/03/2010 05:29 AM, Kandukuru_Suresh at emc.com wrote:
> Hi,
> 
>   Recently I have installed samba 3.4.8 on  my device. Since  then ftp
> (vsftp,proftpd)   which is taking users from samba database with
> pam_smbpass.so is not working. After enabling  detailed log I have
> noticed it is looking for the passwords in  smbpasswd
> (/etc/samba/private) which is of zero size . I think all users passwd
> are located in passwd.tdb.I could fix this by giving "passdb
> backend=smbpasswd" .
> 
>  
> 
> somewhere I read smbpasswd is obsolete , and recommended to use tdbsam
> ..
> 
>  
> 
> and /etc/pam.d/ftp file is 
> ---------------------
> root at storage:/# cat /etc/pam.d/ftp
> auth       required     /lib/security/pam_smbpass.so
> account    required     /lib/security/pam_nologin.so
> account    required     /lib/security/pam_smbpass.so
> password   required     /lib/security/pam_smbpass.so
> session    required     /lib/security/pam_unix.so
> 
> -------------------
> 
>  
> 
> How can I tell pam_smbpass module to use passdb.tdb (tdbsam) .?. Please
> tell me I have been trying for last 2 days. Did  not find anything.

You can not do that without changing the pam_smbpasswd code. This module
specifically operates against the smbpasswd file.

-John T.


More information about the samba mailing list