[Samba] Standalone Server User Import / Export

Rowland penny rpenny at samba.org
Thu Aug 8 17:55:49 UTC 2019


On 08/08/2019 18:43, David Ayers via samba wrote:
> Am Donnerstag, den 08.08.2019, 10:13 -0700 schrieb Jeremy Allison:
>> On Thu, Aug 08, 2019 at 05:04:08PM +0200, David Ayers via samba
>> wrote:
>>> Hello!
>>>
>>> when using Samba [4.5.16-Debian] as standalone server in Windows
>>> environment to allow certain users to access shares, we are
>>> currently
>>> using the default tdbsam backend with a bunch of users.
>>>
>>> We now want to migrate the users from one standalone server to a
>>> replacement server.  To migrate the users I expected to able to
>>> export
>>> the users (incl. passwords) into a file on one server, copy the
>>> file
>>> over to the new server and import the users there.  Specifically I
>>> expected using:
>>>
>>> old: pdbedit -e tdbsam:/root/samba.user.tdbexp
>>> new: pdbedit -I tdbsam:/root/samba.user.tdbexp
>>>
>>> would do the trick.  A file is created during the export.  The
>>> import
>>> does not complain and has a return value indicating success.  But
>>> pdbedit -L (-v) does not list any of the imported users.
>> What does a tdbdump of the newly created file say ?
> Interesting... it seems to be pretty empty:
>
> {
> key(19) = "INFO/minor_version\00"
> data(4) = "\00\00\00\00"
> }
> {
> key(9) = "NEXT_RID\00"
> data(4) = "\E8\03\00\00"
> }
> {
> key(13) = "INFO/version\00"
> data(4) = "\04\00\00\00"
> }
>
>
>
Can we see your smb.conf file ?

Rowland





More information about the samba mailing list