Home Networking With HALNet ADSL
Home       Print this page
Creating a Windows PDC (Primary Domain Controler) with Samba

     A PDC is a great way to keep track of Windows computers. You can configure individual user accounts with their own home directories so that they may store files in a separate and secure location from other users'. This section is written with the assumption that you know how to get around in some form of UNIX variant. Most major distributions of UNIX-like operating systems come with Samba in some form of easily installed package. For more information on Samba, please visit www.samba.org.
SPECIAL NOTE FOR XP & 2K USERS:
Windows XP Home does NOT support domain logins, so don't bother.
XP Pro and 2K machines need their own account on the server called $computername or they will not authenticate.
Please consult the documentation on the Samba site for more details.
     This is an example of my smb.conf from "Sparky" (Sparc Station II running NetBSD 1.6). It is configured to act as a Primary Domain Controller serving a local Windows domain "mydomain":

## Global Settings
[global]

workgroup = mydomain
server string = Samba on Sparky
annouce as = NT Server
hostsallow = 192.168.1. 127.0.0.1      # This is where you define what computers and network subnets can access the domain.
log file = /usr/local/samba/var/log.%m
max log size = 50
security = USER
socket options = TCP_NODELAY
netbios name = sparky      # Its NetBIOS Name.
announce as = NT Server
domain admin group = @wheel
domain guest group = ipc$ nobody @guest
domain logons = yes      # Domain authentication done here?
domain master = yes      # PDC (primary) or BDC (backup)?
preferred master = yes
local master = yes
os level = 64
dns proxy = yes


## Passwords & Authentication

password server = sparky      # Where are the passwords?
encrypt passwords = yes      # This is required for XP/2K

## Login Scripts (if you want to use them)

; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; logon home = \\%L\%U
; logon drive = H:

## Share Definitions

[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S

[download]
comment = Download on Sparky
browseable = yes
writeable = yes
valid users = root bishop steph      # Who can access this share?
path = /download

[netlogon]
comment = Network Logon Service
path = /usr/pkg/share/samba/lib/netlogon
guest ok = yes
writable = no
share modes = no

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
     NOTE: There must be a UN*X user account (does NOT have to have shell access) before you can create one for Samba. Run "smbpasswd -a username" to create a Windows network login for the UN*X user username.


Join HAL-PC
http://www.hal-pc.org
4543 Post Oak Place Dr. Suite 200
Houston, Tx 77027-3103
713/993-3300



This site is designed to be of some assistance, however is not meant to be your sole source of information. By following the suggestions given on this page you understand that you do these things at your own risk. The steps mentioned here may or may not work for your purposes. There is no warranty or support of any kind provided by HAL-PC for the topics discussed in this site. The only support for your home network that is given is by me personally, at my choosing, on my own time, and via email only.
I know... I hate disclaimers too.

[Powered by FreeBSD]