Find the answer to your Linux question:
Results 1 to 1 of 1
First i will give the overview of my network: I have one Centos server and one XP machine, both connected to LAN ports on ADSL modem. Therefore the get dynamic ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    1

    Unhappy adding my windows xp to centos 5.6 PDC domain

    First i will give the overview of my network:

    I have one Centos server and one XP machine, both connected to LAN ports on ADSL modem. Therefore the get dynamic public IP addresses:

    I have a running DYNDNS running properly on Centos, SSL server and Apache webserver, recently i set up SAMBA server and looks like its configured properly too. unfortunately i cannot join the Domain with the xp machine.even though i can nslookup from xp to mydomain and i can ping forward and backward.

    The problem is when i try to join the domain the error is as follows:

    A domain controller for the domain xxxx could not be contacted

    Details:

    Note: This information is intended for a network administrator. If you are not your networks administrator, notify the administrator that you received this information, which has been recorded in the file C:\WINDOWS\debug\dcdiag.txt.

    The domain name MYDOMAIN might be a NetBIOS domain name. If this is the case, verify that the domain name is properly registered with WINS.

    If you are certain that the name is not a NetBIOS domain name, then the following information can help you troubleshoot your DNS configuration.

    The following error occurred when DNS was queried for the service location (SRV) resource record used to locate a domain controller for domain MYDOMAIN:

    The error was: "DNS name does not exist."
    (error code 0x0000232B RCODE_NAME_ERROR)

    The query was for the SRV record for _ldap._tcp.dc._msdcs.MYDOMAIN

    Common causes of this error include the following:

    - The DNS SRV record is not registered in DNS.

    - One or more of the following zones do not include delegation to its child zone:

    MYDOMAIN
    . (the root zone)

    For information about correcting this problem, click Help.



    [root@ ~]# tail -f /var/log/messages
    May 24 20:02:26 nmbd[13144]:
    May 24 20:02:26 nmbd[13144]: Samba server LINUXSHARE is now a domain master browser for workgroup MYDOMAIN on subnet XX.XX.XX.XX
    May 24 20:02:26 nmbd[13144]:
    May 24 20:02:26 nmbd[13144]: *****
    May 24 20:02:41 nmbd[13144]: [2011/05/24 20:02:41, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
    May 24 20:02:41 nmbd[13144]: *****
    May 24 20:02:41 nmbd[13144]:
    May 24 20:02:41 nmbd[13144]: Samba name server LINUXSHARE is now a local master browser for workgroup MYDOMAIN on subnet XX.XX.XX.XX
    May 24 20:02:41 nmbd[13144]:
    May 24 20:02:41 nmbd[13144]: *****


    [root@ ~]# cat /etc/samba/smb.conf
    # Samba Config - smb.conf
    [global]
    workgroup = MYDOMAIN
    netbios name = linuxshare
    server string = Linux PDC
    security = user
    add user script = /usr/sbin/useradd -s /bin/bash -m %u
    add group script = /usr/sbin/groupadd %g
    add machine script = /usr/sbin/useradd -n -c 'Workstation (%u)' -M -d /nohome -s /bin/false '%u'
    #add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null '%u'
    passdb backend = tdbsam
    load printers = yes
    default service = global
    path = /data
    smb ports = 139
    smb ports = 445
    smb ports = 137
    smb ports = 138
    available = yes
    encrypt passwords = yes
    #add machine script = /usr/sbin/useradd -n -g machines -d /dev/null -s /sbin/nologin %u
    interfaces = lo eth0
    #hosts allow = XX.XX.XX.0/20 127.0.0.0/24
    dns proxy = no
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

    #The domain and local master browser
    domain logons = yes
    os level = 64
    preferred master = yes
    domain master = yes
    local master = yes
    wins support = yes
    username map = /etc/samba/smbusers
    #name resolve order = wins bcast hosts
    logon path = \\%L\profiles\%u\%m
    logon script = netlogon.bat

    #Automatically maps the home directory of the user
    logon drive = q:
    #Log level
    log level = 3
    #users configure
    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/groupdel %g
    add user to group script = /usr/sbin/usermod -G %g %u
    add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody/ %u
    idmap uid = 15000-20000
    idmap gid = 15000-20000

    #sync smb passwords
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\sUnix\spassword:* %n\n *retype\snew\sUnix\spassword: %n\n .
    passwd chat debug = yes
    unix password sync = yes

    #Necessary share for the domain controller
    [netlogon]
    path = /var/samba/netlogon
    admin users = Administrator, leonard
    valid users = %U
    read only = no

    #Home configuration
    [homes]
    comment = Home
    valid users = %S
    read only = No
    browseable = No
    writeable = yes

    #Profile configuration
    [profile]
    path = /home/samba/profiles
    valid users = %U
    create mode = 0600
    directory mode = 0700
    writable = Yes
    browsable = No

    #Share directory for all users
    [allusers]
    path = /home/shares/users
    valid users = @users
    force group = users
    create mask = 0660
    directory mask = 0771
    writable = yes

    [share]
    writeable = yes
    admin users = leonardr
    path = /data/share
    force user = root
    valid users = leonardr
    public = yes
    available = yes
    Last edited by majorlen; 05-24-2011 at 05:10 PM. Reason: remove private info

Posting Permissions

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