[Samba] Centos samba-3x / samba-3.6.6 - win7 will not join domain
Thomas Simmons
twsnnva at gmail.com
Sun Feb 17 17:17:13 MST 2013
I would try joining the XP system (or any XP system) first. That should
narrow down the problem. Also, note your error states:
active directory domain controller could not be contacted.
Samba 3 is not an Active Directory Domain Controller.
I don't know if Win7 always states that, or if it's only trying to connect
to an AD domain controller and giving up. Can you access a share on the DC
from the W7 computer? Have you looked at the Samba log?
On Sun, Feb 17, 2013 at 6:59 PM, peter lawrie <
peter.lawrie at glendiscovery.co.uk> wrote:
> 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
>>>
>>
>>
>
More information about the samba
mailing list