Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-13-2005, 11:50 AM   #1
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Rep: Reputation: 15
Samba As A PDC

Samba As A PDC

I am very new to Fedora core 3 (like i have never used it once in my life before now) and am having problems configuring

Samba as a domain controller. I did manage to do it once on my first test system after hours and hours of adjusting settings

and stuff but i cant remember what I did. I have visited many websites and read loads of articles on it but for some reason

something is not working and i dont know why. could someone give me a step by step guide right from the very begining just

after i have installed fedora core 3, showing me what services need starting, firewall access ports and samba set up. I shall

just detail what I have got so far:

Installed fedora core
Allowed firewall ports 67:68 to be open (read it from a book)
started the smb service
added a unix account, for both user and machine
sync this with samba, samba has got the same user names and machine accounts.
at the end of this thread is what my smb.conf file looks like.

what i can see is that the domain name i gave samba in the smb.conf file shows up on my windows 2000/xp computers as a

workgroup, i can access it (by some sheer miracle) but nothing is in there, no pc - nothing, just an empty window.
when i try to join the domain it says that a domain controller with that name can not be contacted. the details of the error

report are below:

Note: This information is intended for a network administrator. If you are not your network's administrator, notify the

administrator that you received this information, which has been recorded in the file C:\WINDOWS\debug\dcdiag.txt.

The domain name sbcdomain might be a NetBIOS domain name. If this is the case, verify that the domain name is properly

registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the following information can help you troubleshoot your

DNS configuration.

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate a domain

controller for domain sbcdomain:

The error was: "DNS name does not exist."
(error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for _ldap._tcp.dc._msdcs.sbcdomain

Common causes of this error include the following:

- The DNS SRV record is not registered in DNS.

- One or more of the following zones do not include delegation to its child zone:

. (the root zone)

For information about correcting this problem, click Help.


when i did manage to get past this error on my second re-installation of fedora core 3, it asked for a username and password,

i thought all was going well, i entered in the root username and password to join the domain but it failed, and i cant get

passed it now. PLEASE NOTE: I have not got this far this time, im still stuck on the above error message.

the smb.conf file is as follows.


workgroup = sbcdomain
netbios name = sbcdc1

server string = Samba PDC
printcap name = /etc/printcap
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
log level = 2

max log size = 50
smb passwd file = /etc/samba/smbpasswd

unix password sync = Yes
passwd program = /usr/bin/passwd %u

passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n


socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

local master = yes
os level = 65

domain master = yes
preferred master = yes
domain logons = yes
logon script = logon.bat
logon path = \\%L\Profiles\%U
dns proxy = no
logon home = \\%L\%U\
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u

#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
password server = None
username map = /etc/samba/smbusers
winbind use default domain = no

comment = Home Directories
browseable = no
writeable = yes

comment = Network Logon Service
path = /home/netlogon
browseable = no
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
path = /home/steve/Desktop

in the above file i have just removed any commented code, some of the code actually there has not been modified from the

original but just added to or changed, such as path locations and workgroup named.

the ethernet port that connects to the network is given a static ip address, we all on 192.168.1
the fedora pc cannot see the windows workgroup or any pcs, though the windows can see the samba workgroup name - but nothing

in it.

i suspect something is missing from announcing it as a domain controller, or putting it on the domain. when i used smbpasswd

-j sbcdomain it didnt seem to work and said see 'net join' for this functionality. i did that but it didnt do much.
after i had saved all the settings i had made i also restarted both the network service and smb service, and have restarted

the pc a number of times after messin about with settings but still cant join the domain. I have also made the required

adjustments to the registry with signorseal and the other settings for the local policy for windows XP Pro.

If someone can help me out on this one id be very appreciative of it, ive been stuck on this for weeks now and im on my 5th

re-install, also at the point of tearing my hair out.

Thank you very much for any help you give me.

if you need any further information please ask in replies.
Old 06-13-2005, 12:27 PM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46 has a nice HowTo on setting up a PDC ( ) with good examples.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 11:39 AM
samba pdc citrus Linux - Networking 3 05-24-2004 02:19 AM
samba as a PDC elric7 Linux - Networking 1 12-10-2002 05:37 PM
Samba as PDC u4113072 Linux - General 0 09-16-2002 04:02 AM
samba PDC help..... p_murugappan Linux - Networking 0 08-16-2001 05:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 AM.

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