[Samba] /etc/passwd backend

Miroslav Kolar Miroslav.Kolar at interoute.com
Mon Sep 30 23:42:27 MDT 2013

Hi Andrew,

Thanks a lot for your answer!

I understand your point. This is actually the way I want to go.
But before doing so, I need to migrate my users from /etc/passwd to LDB. I'd like to do it without letting them know and a need to ask them to change their password.

Do you think it's possible to do it?


>-----Original Message-----
>From: Andrew Bartlett [mailto:abartlet at samba.org]
>Sent: 30 September, 2013 21:57
>To: Miroslav Kolar
>Cc: samba at lists.samba.org
>Subject: Re: [Samba] /etc/passwd backend
>On Mon, 2013-09-30 at 13:46 +0000, Miroslav Kolar wrote:
>> Hello,
>> I would like to understand if it's possible to use /etc/passwd and
>/etc/shadow like backend for LDB.
>> If not, would it be possible to use samba-tool or something similar to create
>the new user with password hash in MD5?
>> Is there perhaps an API to Samba4 which can be used for user management,
>especially creating/modifying users when password is MD5 hash?
>You should instead use nss_winbind to have the system query the users from
>our ldb for nsswitch.  That way, we do not have two databases to keep 'in
>Andrew Bartlett
>Andrew Bartlett                                http://samba.org/~abartlet/
>Authentication Developer, Samba Team           http://samba.org

More information about the samba mailing list