Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

Home

The smb.file

Global Parameters

Share Parameters

Add users

Restarting Samba

Windows View

Samba as a PDC

Add a Win pc to the domain

Samba FAQ

 

Email me with your comments


 

 

 

 

 

 

    Samba as a Primary Domain Controller

    Samba as a Primary Domain Controller for a small network is fairly easy to do. If you are looking for info on setting up a large network, or replacing an existing NT server in your network, you may want to do some reading here: . We will be concentrating on a small network setup with Windows NT and Windows 2000 pc's.

    If you are using Windows 2000 with Service Pack 2, you must use Samba 2.2.1or newer for Samba to be a domain controller for these. It is much preferable to upgrade to 2.2.7 as there are several inhancements and  security fixes.

    As for Windows XP, one piece of advice.....if you have bought Windows XP home edition, it will not support domain logons. You will need to upgrade to the Pro version.

    Before we get started, I will be assuming that you have a more advanced knowledge of networking Windows and Linux. If you are not, I strongly recommend that you check here for Linux: Networking-Overview-HOWTO. As for the Windows pc, please consult your windows documentation on setting the network domain logons, logon names and passwords. For more info: http://www.helmig.com. Also I assume you have a working Samba server connected to your network as well. If not you, may wish to start here

    For this document I will be adding on to an existing smb.conf that was described here, so I will not be going through and re-explaining every line. I will only add the lines that are neccessary for Samba to be a PDC. ( without roaming profiles, more on this to come). They will be highlighted in green. The lines highlighted in black, are the comments that explain. So lets get started!

    # Global parameters
    [global]
    workgroup = home
    Netbios name = samba
    encrypt passwords = Yes
    ; this tells Samba that security level must be set to user
    security = user

    ;Samba is the domain and local master browser.
    os level = 65
    preferred master = yes
    domain master = yes
    local master = yes
    domain logons = yes 
    logon path = \\%n\profiles\%u

    ;automatically maps the home directory of the user, can be any drive letter you want. \\samba is the Samba server netbios name
    logon drive = q:
    logon home = \\saturn\%u

    ;neccessary share for domain controller
    [netlogon]
    ; comment = Network Logon Service
    path = /var/lib/samba/netlogon
    guest ok = yes
    writable = no
    share modes = no

    [homes]
    read only = no
    browseable = no

    [music]
    path = /data/mp3
    public =yes
    browseable  = yes
    write list = mw, jackie

    [everyone]
    path = /data/everyone
    browseable = yes
    read only = no

    So that is about it for the smb.conf file, save it and exit the editor. Now we will need to add a Windows machine account and password to Linux and Samba.

Top of page
Home

Next: Adding a Windows pc to Linux and Samba