[Pkg-samba-maint] Bug#350926: Bug#350926: Change the wording of samba/generate_smbpasswd?

Steve Langasek vorlon at debian.org
Thu Jun 7 09:31:07 UTC 2007


On Mon, Jun 04, 2007 at 07:58:33AM +0200, Christian Perrier wrote:
> In #350926,  Ken Neighbors reported that, whatever the user chooses to
> answer to the samba/generate_smbpasswd question, that file is created
> anyway.

> Finally, Peter Eisentraut found that smbd created it anyway and the
> *real* question is knowing whether one wants to *copy* the content of
> /etc/passwd for passdb.tdb

> So, the bug could be turned into a better wording of that template:

The original bug report is correct, the debconf answer is *not* being
respected.  That is separate from any template wording concerns, and should
be fixed.

I think the attached patch is better for this than the one proposed by the
submitter; this ensures that we are only overriding the default value the
first time through, which seems correct to me.  (I'm also not sure that
calling db_set *after* db_input is guaranteed to have the desired effect,
does anyone know for sure?)

As for the wording,

> Template: samba/generate_smbpasswd
> Type: boolean
> Default: false
> _Description: Create samba password database, /var/lib/samba/passdb.tdb?
>  To be compatible with the defaults in most versions of Windows, Samba must
>  be configured to use encrypted passwords.  This requires user passwords to
>  be stored in a file separate from /etc/passwd.  This file can be created
>  automatically, but the passwords must be added manually by running
>  smbpasswd and be kept up-to-date in the future.
>  .
>  If you do not create it, you will have to reconfigure Samba (and probably
>  your client machines) to use plaintext passwords.
>  .
>  See /usr/share/doc/samba-doc/htmldocs/ENCRYPTION.html from the
>  samba-doc package for more details.
> 
> To:
> 
> Template: samba/generate_smbpasswd
> Type: boolean
> Default: false
> _Description: Create the samba password database from /etc/passwd?
>  To be compatible with the defaults in most versions of Windows, Samba must
>  be configured to use encrypted passwords. This requires user passwords to
>  be stored in a file separate from /etc/passwd.  This file can be created
>  automatically, but the passwords must be added manually by running
>  smbpasswd and be kept up-to-date in the future.
>  .
>  If you do not create it, you will have to reconfigure Samba (and probably
>  your client machines) to use plaintext passwords.
>  .
>  See /usr/share/doc/samba-doc/htmldocs/ENCRYPTION.html from the
>  samba-doc package for more details.

Um, diff format would have been nice. :)  If the short description is the
only thing changed here (and that's all I see), then yes, that seems
perfectly fine to me.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-350926.diff
Type: text/x-diff
Size: 567 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070607/b2931d3b/attachment.diff 


More information about the Pkg-samba-maint mailing list