[Pkg-samba-maint] Bug#671926: Bug#671926: Bug#671926: samba: Shouldn't try to initiate the passdb database if "passdb backend= ldapsam"

Ivo De Decker ivo.dedecker at ugent.be
Thu May 10 12:56:00 UTC 2012


Steve,

On Thu, May 10, 2012 at 02:04:15PM +0200, Christian PERRIER wrote:
> 10:01 < vorlon> bubulle: so if we don't do the import at install time, how do we ensure that the system is usable after install?  It's not usable without passdb entries, and 
>                 nothing else populates them automatically
> 10:01 < vorlon> I'm happy to get rid of this if there's a better mechanism
> 10:03 <@abartlet> vorlon: it doesn't do anything
> 10:03 < vorlon> hmm?
> 10:03 <@abartlet> vorlon: smbpasswd file entries without passwords are pretty pointless
> 10:03 <@abartlet> no other distribution auto-imports
> 10:03 < vorlon> well
> 10:04 < vorlon> except there's pam_smbpass which can be used to set the password for the passwordless entry
> 10:04 < vorlon> and IIRC it cares about whether the account already exists

I just did some tests (with 2:3.6.4-1 from testing):

When installing samba (without libpam-smbpass), the user entry is created, but
the user cannot login. After installing libpam-smbpass and loging in using ssh,
the password is added. However, if the user doesn't exist in the passdb.tdb,
libpam-smbpass created a new entry (in the default configuration in the debian
package).

You can test this as follow:

/etc/init.d/samba stop
rm /var/lib/samba/passdb.tdb
/etc/init.d/samba start

the user cannot connect to the samba server
login via ssh
the user can connect to the samba server

So it seems the import is no longer needed in the postinst script.

Cheers,

Ivo





More information about the Pkg-samba-maint mailing list