Find the answer to your Linux question:
Results 1 to 3 of 3
Hello friends I'm stuck with this problem of adding Windows machine to Linux domain. for which samba has been configured as PDC . operating system : Cent OS 5.3 with ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2

    [SOLVED] How to add windows xp to samba domain (CentOS5.3)

    Hello friends
    I'm stuck with this problem of adding Windows machine to Linux domain. for which samba has been configured as PDC .
    operating system : Cent OS 5.3 with updates ., with hostname tester.com
    Dnsdomainname = com
    Code:
     [global]
        workgroup = TESTER
        netbios name = TESTER
        server string = Samba Server Version %v
        interfaces = lo, eth0, 192.168.1.1/24, 192.168.1.2/24
        passdb backend = tdbsam
        username map = /etc/samba/smbusers
        add user script = /usr/sbin/useradd "%u" -n -g users
        delete user script = /usr/sbin/userdel "%u"
        add group script = /usr/sbin/groupadd "%g"
        delete group script = /usr/sbin/groupdel "%g"
        delete user from group script = /usr/sbin/userdel "%u" "%g"
        add machine script = /usr/sbin/useradd  -g smb-clients -d /dev/null -s /bin/false "%u"
        logon script = %u.bat
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        admin users = root
        hosts allow = 127., 192.168.1., 192.168.2.
        hosts deny = 0.0.0.0/0
        cups options = raw
    
    [homes]
        comment = Home Directories
        valid users = enyota01.com\%S
        read only = No
        create mask = 0644
        browseable = No
    
    [netlogon]
        comment = Network Logon Service
        path = /home/samba/netlogon
        guest ok = Yes
    
    [Profiles]
        path = /homw/samba/profiles
        create mask = 0700
        directory mask = 0700
        guest ok = Yes
    
    [public]
        comment = Public Stuff
        path = /home/samba/public
        guest ok = Yes
    
    [am]
        comment = Public Stuff
        path = /tmp/am
        write list = tester
        read only = No
    
    [pam]
        comment = Public Stuff
        path = /tmp/pam
        write list = tester
        read only = No
        guest ok = Yes
    now everything work well i.e windows client can access their share. also permissions are set appropriately. Also account for users and particular XP machine are also created.
    when I try add windows machine to samba domain by changing windows machines domain name to the tester . Windows client gives error of can not connect to domain.
    If anyone has any idea about this problem of adding windows machines to SAMBA domain pls reply.

    By the way if you find in error in presentation pls forgive.

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hello,

    all i can see is that "local master = yes " is missing.
    I dont know if this is the problem, but i think that in samba documentation allways include this parameter in PDCs.

    I hope this help you
    Regards

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2
    thanks JosePF for your reply
    but that didnt worked for me. Howver In the 3.5.5 section of the SAMBA How To section There is point states that if users are added to system before configuration of the samba server ,samba treats them as local users same true for smbusers.
    In my case this may be true. I need to find it out more reason to bypass this.

Posting Permissions

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