[Samba] pdbedit: importing smbpasswd to tdbsam

Simon Berg samba200312 at simonb.de
Thu Dec 18 12:12:42 GMT 2003


Hi there,

I'm trying to import a smbpasswd-file into a Samba 3.0 installation on Debian
Sarge using tdbsam as sole passdb backend.
Copying pdbedit's documentation I used

pdbedit -i smbpasswd:/root/smbpasswd.old

The error message returned was tdb_update_sam: Failing to store a SAM_ACCOUNT
for [foo] without a primary group RID

where foo is the username to be imported.
This message was repeated for every user in the smbpasswd-file. The users do not
yet exist in the tdbsam-database: pdbedit -L lists only two users each of which
does not occur in the smbpasswd-file.
The users do have existing linux-accounts, whith their primary group set to 'users'.

I also tried the pdbedit command stated above, adding a '-G 513' hoping for
being able to set the group RID to 'domain users'. 'net groupmap list' states
that the 'Domain Users' group, which I'm thinking to have a group RID of 513, is
mapped to the unixgroup 'users'.

Is there something I am getting wrong or is the import of smbpasswd to tdbsam
simply not possible? What can I do to make the import work?

Thanks for your help

Simon
Berg



More information about the samba mailing list