[Samba] Unable to join to Windows 2003 PDC using samba 3.5.8 from a linux machine!!

Rick Gates rick123.gates at gmail.com
Fri Apr 1 09:59:39 MDT 2011

Hi all,

I am using samba 3.5.8 on a linux machine.
I am not able to join the domain of a windows 2003 server in ADS mode.

I am getting the following error message:

# /usr/local/samba/bin/net ads join -U Administrator%password -I

Failed to join domain: failed to find DC for domain ABCDOM.PQR.COM

I am not sure what the issue here.
It works absolutely fine when I try to join the domain in rpc mode.

# /usr/local/samba/bin/net rpc join -U Administrator%password
Joined domain ABCDOM.

The smb.conf used is:

# /usr/local/samba/bin/testparm
Load smb config files from /usr/local/samba/lib/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[Linux]"
Loaded services file OK.
Press enter to see a dump of your service definitions

        workgroup = ABCDOM
        realm = ABCDOM.PQR.COM
        server string = Samba Server - Research
        security = ADS
        password server =
        log level = 10
        log file = /var/log/samba/%m.log
        max log size = 50
        add user script = /usr/sbin/useradd %u
        delete user script = /usr/sbin/userdel %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/sbin/usermod -a -G %g %u
        delete user from group script = /usr/sbin/deluser %u %g
        add machine script = /usr/sbin/adduser -n -g machines -c Machine -d
/dev/null -s /bin/false %u
        domain master = No
        dns proxy = No
        wins server =
        idmap uid = 200-120000
        idmap gid = 200-120000
        admin users = root
        cups options = raw

        comment = Home Directories
        read only = No
        browseable = No

        comment = All Printers
        path = /usr/spool/samba
        printable = Yes
        browseable = No

        comment = Share on this linux machine
        path = /tmp/linux
        read only = No

NOTE: is the IP of my 2003 windows server.

My lmhosts file is:

# cat lmhosts. ABC3 ABCDOM#1b ABCDOM#1c


It would be great, if any one can tell me if there is anything wrong here
and probably help me sort out this issue.
Thanks in advance!!


More information about the samba mailing list