[Samba3] Using tdbsam backend to store user info

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
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 :)
 
or:

info tdbsam

They might be using GNU info instead of man.
 
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
 
*ahem*
Still found nothing, I'll dig one more time through the manual, though I already did that 2 times. Anyone got an idea?
 
X-Istence said:
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.

:)
 
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*
 
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 profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back