Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Samba > Issue <<  48 of 98 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 2339
Last update: 12-18-06
Issue:
How do I configure Samba to be a PDC?
Resolution:
This is Specific to Samba 3, earlier versions may operate differently.

Samba can act as a Windows NT style Primary Domain Controller (PDC). It cannot act as an Active Directory Domain Controller. Below is a functional smb.conf file that will allow Samba to act as a PDC. Please replace EXAMPLE with the name of your Windows domain and MACHINE with the name of your linux machine. The MACHINE can be any single word of your choice. It can be the hostname but it can not be your Fully Qualified Domain Name because it must be one string. The correct syntax for the MACHINE name should be in all CAPS.

/etc/samba/smb.conf
[global]
        workgroup = EXAMPLE
        netbios name = MACHINE
        passdb backend = smbpasswd
        printcap name = cups
        add user script = /usr/sbin/useradd -m %u
        delete user script = /usr/sbin/userdel -r %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/gruopdel %g
        add user to group script = /usr/sbin/usermod -G %g %u
        add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
        logon script = login.bat
        logon drive = h:
        logon path = \\%L\Profiles\%U
        wins support = yes
        domain logons = Yes
        os level = 35
        preferred master = Yes
        domain master = Yes
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        printing = cups
        dns proxy = no


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Samba > Issue <<   48  of  98  >>