Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Samba as PDC

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.

    	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.

    "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.

    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.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Portsmouth, UK
    Have you had a look at the worked examples in the "offical samba how-to"?

    Chapter*2.*Fast Start: Cure for Impatience
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts