Samba configuration (?)

I'm trying to setup OpenSUSE 11.0 as a PDC on a small test network at home.

So far it's sort of going good I guess. I'm setup SUSE and think I have configure Samba correct, well sort of. Not really what I was after. I wanted SUSE to act as a PDC and have a Windows XP machine be able to join the domain (with SUSE as the PDC).

I am aware that the samba users also have to be system users (that's what I read) on the Linux box. Have turned LDSP Server - ON (Doesn't make a difference though). Turned 'Samba Server' - ON. Below is the smb.conf file (this is just a test/trial run I'm trying here).

[global]
	workgroup = domain
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
	map to guest = Bad User
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	usershare allow guests = No
	add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
	domain logons = Yes
	domain master = Yes
	security = user
	netbios name = test
	local master = Yes
	os level = 65
	preferred master = Yes

[homes]
	comment = Home Directories
	valid users = %S, %D%w%S
	browseable = Yes
	read only = No
	inherit acls = Yes
[profiles]
	comment = Network Profiles Service
	path = %H
	read only = No
	store dos attributes = Yes
	create mask = 0600
	directory mask = 0700
[users]
	comment = All users
	path = /home
	read only = No
	inherit acls = Yes
	veto files = /aquota.user/groups/shares/
[groups]
	comment = All groups
	path = /home/groups
	read only = No
	inherit acls = Yes
[printers]
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = @ntadmin root
	force group = ntadmin
	create mask = 0664
	directory mask = 0775

[netlogon]
	comment = Network Logon Service
	path = /var/lib/samba/netlogon
	write list = root

I played around with a few other things but they are back to default settings of turned off now as that didn't seem to make any difference.

From my Windows XP machine (client/workstation) I can't join a domain, but I can join the SUSE box as a WORKGROUP. I can view the shared folders etc which is all good and well.

But I really wanted to setup as a PDC. I've searched google and can't really find any specific documents for setting up Linux (specifically OpenSUSE) for a PDC. I was wondering if anyone can lead/push me in the right direction to some good reading which might be able to help me setup a PDC and not create a workgroup.

Thanks in advanced.

EDIT: When setting up Samba Server I did select Primary PDC in the settings.

After doing some more reading I think I might have to edit the smb.conf file the old fashion way :slight_smile:

I've found some information which might help me. Just to confirm I'm going in the right direction though;

  • I configure the smb.conf file
  • add a user to the linux box
  • use the adduser to add the client_pc then change this from user to a PC?
  • then create the above in samba
  • then reboot (or manually restart samba)
  • join the Windows XP machine to the domain

Can someone just confirm if I'm going down the right path here with this?

Thanks heaps :slight_smile: