• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Samba3] Using tdbsam backend to store user info

#1
As you can read in my previous thread, I have tried creating a user database for Samba3 using MySQL. But because of lack of good documentation I decided to abandon it and go for the default tdbsam instead.
But I have a big problem: How do I add users in tdbsam? I know how to use smbpasswd and the manual has a command for converting the smbpasswd file to the tdbsam file, but I want to add users directly in tdbsam.
You might say 'as long as smbpasswd is supported, use it', which is true, but it's officialy depreciated (sp), what if they entirely abandon smbpasswd in a (one of the) next release(s)? That's why I want to know now how I can use the command for tdbsam.

Thanks :)
 
#5
I am getting all sorts of info about GNU programs, but there is a notice at the bottom:
No menu item `tdbsam' in node `(dir)Top'.
:( Is there any tutorial around? I googled around, searched the manual, but nothing.

edit: I can only find entries in the manual saying that tdbsam is a password backend and smbpasswd can be converted to tdbsam.

:( ^2
 
#8
I read that, but it doesn't tell me how to directly store users in a tdbsam passdb backend . At some point in the manual, it tells you about smbpasswd (the file I mean) and it's usage with switches etc, but nothing about tdbsam. The only reference about storing in tdbsam I could find is on the page you pointed me to, it to convert the smbpasswd passdb backend to the tdbsam backend and I want to do that directly, I don't want to first change the smb.conf to use smbpasswd, then create users with smbpasswd and then converting the smbpasswd db to tdbsam and then change the smb.conf file again to use tdbsam.
Another reason for me to use tdbsam directly is that the smbpasswd use is officialy depraciated (sp) and might be gone in a next release. I want to be prepared for that.

:)
 
#9
OR, I just thought about that, is smbpasswd the general command for putting users in databases and it just doesn't matter if you use tdbsam, smbpasswd or a plaintext passwd database?
*goes to try*
 
#10
Wohoo!
server1# smbpasswd -a glenn
New SMB password:
Retype new SMB password:
Unable to open/create TDB passwd
Unable to open/create TDB passwd
pdb_getsampwnam: TDB passwd (/usr/local/private/passdb.tdb) did not exist. File successfully created.
TDBSAM version too old (0), trying to convert it.
TDBSAM converted successfully.
Added user glenn.
server1#
Looks like I was a little confused by the usage as smbpasswd as both a command and a database, which both happen to have the same name, but have nothing further in common.
Thanks anyway for looking around :D
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,013
Latest member
Pdawgintown