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

Daniel Müller mueller at tropenklinik.de
Mon Feb 18 00:36:02 MST 2013


Did you join the win7 client to the samba3 domain using smbpasswd -m.
Did you set the registry hacks on the win 7 client.
Sometimes the win 7 machines need to set the wins server to your Samba/pdc
and netbios enabled.

Good luck
Daniel

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von peter lawrie
Gesendet: Montag, 18. Februar 2013 00:59
An: Thomas Simmons
Cc: samba at lists.samba.org
Betreff: Re: [Samba] Centos samba-3x / samba-3.6.6 - win7 will not join
domain

Hi
Thanks, but I've already done that.
Now I'm getting
active directory domain controller could not be contacted.
I have renamed my win7 PC as pjl-win7 and restarted PC, server and router to
ensure all match I also changed the workgroup in Samba from Glendiscovery to
glendisc, my PC is still on the windows workgroup and can access the shares.
There is also an XP machine, computer1 on 'workgroup', once I've fixed the
win7 problem, I'll be checking it can also join the domain.

browse.dat has:
"GLENDISC"                c0001000 "CENTOS55"                    "GLENDISC"
"CENTOS55"                408c9a23 "Samba Server Version 3.6.6-0.129.el5"
"GLENDISC"
"WORKGROUP"               c0001000 "COMPUTER1"                   "WORKGROUP"
"GLENDISCOVERY"           c0001000 "PJL-WIN7"
"GLENDISCOVERY"

I was recommended to add some lines to smb.conf, so it now has
[root at centos55 samba]# cat smb.conf
# Samba config file created using SWAT
# from UNKNOWN (0.0.0.0)
# Date: 2013/02/17 23:16:46

[global]
        lanman auth = yes
        log file = /var/log/samba/%m.log
        name resolve order = bcast host lmhosts wins
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192
        obey pam restrictions = Yes
        client ntlmv2 auth = yes
        logon drive = z:
        ntlm auth = Yes
        domain master = Yes
        idmap config * : range =
        time server = Yes
        wins proxy = No
        passwd program = /usr/bin/passwd %u
        wins support = true
        netbios name = centos55
        cups options = raw
        server string = Samba Server Version %v
        password server = none
        logon script = scripts\%U.bat
        unix password sync = Yes
        idmap config * : backend = tdb
        workgroup = GLENDISC
        logon path =
        os level = 64
        auto services = global
        printcap name = cups
        preferred master = yes
        max log size = 50
        pam password change = Yes

[homes]
        valid users = %S
        read only = No
        browseable = No

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

[company]
        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

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


On 17 February 2013 23:47, Thomas Simmons <twsnnva at gmail.com> wrote:

> Have you made the necessary registry changes on the Win7 workstation 
> (see link)? If properly configured, Win7 works perfectly fine with 
> current versions of Samba 3.
>
> https://wiki.samba.org/index.php/Windows7
>
>
>
> On Sun, Feb 17, 2013 at 3:40 PM, peter lawrie < 
> peter.lawrie at glendiscovery.co.uk> wrote:
>
>> Hi
>> 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 domain.
>>
>> 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
>> samba-3.6.600.129_el5
>> 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 (0.0.0.0) # Date: 2013/02/17 
>> 19:56:06
>>
>> [global]
>>         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
>> SO_RCVBUF=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
>>
>> [printers]
>>         comment = All Printers
>>         path = /var/spool/samba
>>         printable = Yes
>>         print ok = Yes
>>         browseable = No
>>
>> [company]
>>         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
>>
>> [netlogon]
>>         comment = netlogon
>>         path = /datastore/netlogon
>>         valid users = @adm, @users
>>         read only = No
>>
>> [homes]
>>         writeable = yes
>>         path = /home/plawrie
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list