LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2009, 01:33 AM   #1
woofiedog
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Samba as PDC


Hi I'm trying to setup a small test network with Samba as a Primary Domain Controller (PDC) for Windows boxs to connect to it. I'm kind new to Linux and don't know where I am going wrong.

I've read and trying to setup Samba to do the PDC role. Below is the 'global' section of the smb.conf file.

Code:
[global]
	workgroup = 1domain
	server string =
	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
	wins support = yes
	debug level = 2
	dns proxy = yes
	time server = yes
I can ping the Linux box be the netbios name. Can see the Samba shares if in Windows I go to \\test.

But when I go to join the domain (1domain) I get the following error message.

Code:
"The following error occurred attempting to join the domain "1domain".

The specified domain either does not exist or could not be contacted.
Apart from editing the smb.conf file I have also added the user and client PC to the Linux box and edited the /etc/passwd file as below. Tutorial I was using said to put the $ after the PC name.

Code:
testuser:x:1003:100::/home/testuser:/bin/bash
adam-pc$:x:1005:100::/home/adam-pc:/bin/bash
Also I used the smbpasswd -s <username> and smbpasswd -a -m <client-pc>.

Rebooted the Linux box to confirm all settings/Samba was active with new settings then when I try to join the Domain I get that above error message.

I am running openSUSE 11.0.

Does anyone know any good tutorials I should have a read of on how to do what I am after, for beginners or can you provide any help with what else I might need to do or where I am going wrong.

Thanks in advanced.
 
Old 03-29-2009, 07:29 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I solved this connectivity problem by putting the IP address of the Linux box in the hosts and lmhosts files on the clients.

C:\windows\system32\drivers\etc\lmhosts
C:\windows\system32\drivers\etc\hosts

Use the #PRE directive in lmhosts.

I've suspected that using Samba WINS service on the Linux box would have fixed the problem. I've stopped playing with Samba so I haven't tested this idea.

Last edited by stress_junkie; 03-29-2009 at 10:47 AM.
 
Old 03-30-2009, 08:15 AM   #3
clownbird
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
Make sure the system clocks are all sync'd between servers and clients.
 
  


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
samba pdc trust with windows 2003 server pdc samba_pk Linux - Networking 1 06-08-2007 01:22 AM
samba member server as fileserver authenticating samba PDC activeq Linux - Networking 0 11-17-2006 09:44 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
samba pdc iamwilliam Linux - Networking 1 05-13-2006 11:51 PM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 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