[Samba] Centos samba-3x / samba-3.6.6 - win7 will not join domain

peter lawrie peter.lawrie at glendiscovery.co.uk
Sun Feb 17 13:40:42 MST 2013

Some advice needed on samba-3.6.6 for win7
Since getting my win7 ultimate pc, I've only used my centos server with
samba for a workgroup connection. Previously I had an XP client on this

I've updated today (17 feb 2013) to the latest centos5.9 (Linux
2.6.18-348.1.1.el5.centos.plus on i686) which includes samba3x with
passdb backend has to be tdbsam now for win7, not smbpasswd
I've tried repeatedly to join the domain without success.
My win7 ultimate machine supposedly has the ability to join a domain
Provided I ensure that nmbd as well as smbd is running, it gives the
username and password login form and then

The following error occurred attempting to join the domain glendisc
The specified domain either does not exist or could not be contacted

Since getting the win7 PC I have been connecting to workgroup
'glendiscovery' by the server IP address, so it has not previously been on
the domain.
I deliberately changed the name to glendisc to avoid possible issues.
I can still connect to my workgroup shares
I noted that the samba user root had disappeared so I added new user 'root'
and 'plawrie' and enabled them in swat password.
That's presumably for the tdbsam database, instead of smbpasswd
Still no difference.

I have several customers who have introduced win7 machines, so I will have
to get this working before I try it on their business networks.

For reference here is my smb.conf

[root at centos55 ~]# cat /etc/samba/smb.conf | more
# Samba config file created using SWAT
# from UNKNOWN (
# Date: 2013/02/17 19:56:06

        workgroup = GLENDISC
        server string = Samba Server Version %v
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        unix password sync = Yes
        log file = /var/log/samba/%m.log
        max log size = 50
        time server = Yes
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
        printcap name = cups
        logon script = scripts\%U.bat
        logon path =
        logon drive = z:
        domain logons = Yes
        os level = 64
        domain master = Yes
        idmap config * : range =
        idmap config * : backend = tdb
        cups options = raw

        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        print ok = Yes
        browseable = No

        comment = company share
        path = /datastore/company
        valid users = @adm, @users
        force group = users
        read only = No
        create mask = 0775
        force create mode = 0775
        directory mask = 0775
        force directory mode = 0775
        inherit permissions = Yes
        use sendfile = Yes

        comment = netlogon
        path = /datastore/netlogon
        valid users = @adm, @users
        read only = No

        writeable = yes
        path = /home/plawrie

More information about the samba mailing list