LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2005, 06:35 PM   #1
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
problems with tdbsam


I have been trying to get tdbsam working instead of using smbpasswd as the backend. I have done the following:
[list=1][*]Modified smb.conf:
Code:
[global]
security = user
admin users = @smbsysadmin
printer admin = @smbsysadmin
username map = /etc/samba/smbusers
auth methods = guest sam winbind
# problems with:
passdb backend = tdbsam
# working:
# passdb backend = tdbsam smbpasswd
idmap uid = 10000-20000
idmap gid = 10000-20000
template primary group = "Domain Users"
template shell = /bin/bash
...
[*]Setup groups:
Code:
groupadd svnusers
groupadd smbsysadmin
groupadd svndev

useradd -G smbsysadmin,svnusers ... smbadmin
useradd -G smbusers,users ... testuser

net groupmap modify  ntgroup="Domain Admins" unixgroup=smbsysadmin
net groupmap modify  ntgroup="Domain Users" unixgroup=smbusers
net groupmap modify  ntgroup="Domain Guests" unixgroup=nobody
net groupmap add  ntgroup="SVN Developers" unixgroup=svndev
[*]Check groups config:
Code:
# groups testuser
testuser : users svndev smbusers
# groups smbadmin
smbadmin : smbsysadmin smbusers
[*]Check net groups: [CODE]#net user info smbadmin -U smbadmin%XXX
Domain Admins <-- Where is "Domain Users"?
#net user info testuser -U smbadmin%XXX
SVN Developers <-- Where is "Domain Users"? [/list=1]

Before, I had "Domain Users" mapped to "users". When that was true, I could not execute "pdbedit -a testuser" or "smbpasswd -a testuser" as it printed:
Code:
tdb_update_sam: Failing to store a SAM_ACCOUNT for [testuser] without a primary group RID
When I changed it to use smbusers, the command worked, but it isn't seeming to work perfectly.

When I have "passdb backend = tdbsam smbpasswd" in the smb.conf, I am able to logon to the domain on a WinXP Pro box using testuser. However, if I use "passdb backend = tdbsam", the login fails with the message box
Code:
Windows cannot connect to the domain, either because the domain controller is down or otherwise unavailable, or because your computer account was not found. Please try again later. If this message continues to appear, contact your system administrator for assistance.
It looks like tdbsam is the preferred backend over smbpasswd, so I would rather stick with that rule. The network I am introducing this PDC is a network with WinXP home, Win98 and WinXP pro computers.

There seems to be lacking documentation on using tdbsam. I'd rather not use ldap, as that is more than I need, and the setup looks like a pain. I am using the samba that is packed with Slackware 10.1 (I have not recompiled it).
 
Old 04-13-2005, 01:26 PM   #2
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
Found the issue with adding groups and the "pdbedit -a" command. My groupmapping was corrupted from too much debugging of mine. I had execute "net groupmap clean" and then remap/add my groups. Now "net user info <user> -U <user>" is printing the "Domain Users". I rebuilt my tdbsam database as well (deleted the file, then readded the users). Despite this, I still cannot log my computer into the domain.

I created machine trust account manually, so that is there. With high logging, I can see in log.smbd that the user authentication succeeds, but the WinXP still has the same error. Will try to remove the computer from the domain and readd it...
 
Old 04-13-2005, 01:52 PM   #3
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
That was it.

Removed the computer from the domain, then readded it.

Can login now. There must have been something that wasn't done when I set up the tdbsam database initially.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
Domain Admin functionality on Samba 3.0.2a with TDBSAM randombloke Linux - Networking 2 08-25-2004 01:47 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration