On Monday 07 Nov 2011 07:41:36 Rodney Baker wrote:
On Mon, 7 Nov 2011 02:09:10 lynn wrote:
Hi
(Sorry but I can't make it shorter than this)
I'm trying to simulate a real network using virtualbox and in particular test the possibility of a single sign on linux/windows lan. Samba is working. I can see users linux /home folders on the windows machine by entering:
\\hh1\lynn2
LDAP is working since lynn2 can login at a command line and the username/password works for seeing the share from windows as above. /var/log/messages and /var/log/samba/log.smbd confirm this. log.nmbd also confirms that the samba server is also a logon server.
I have a windows 7 virtual machine setup:
192.168.1.2 opensuse 11.4 DNS server, LDAP server, samba server PDC for a domain called HH1, gateway 192.168.1.1
192.168.1.4 Windows 7 running in virtualbox, joined to the domain HH1, DNS set to 192.168.1.2, gateway 192.168.1.1
When I try to logon to the domain from windows, it gives me the error 'No logon servers available' whether I have the static setup as above or automatic IP and DNS via dhcp.
Lynn,
I have had domain logins working from Windows XP but never from Windows 7. I believe that there was a documented problem with Win 7 using Samba for domain logons that required a registry hack on Win 7 but I can't remember for sure -
Yes. have the registry hack installed: HKLM\System\CCS\Services\LanmanWorkstation\Parameters DWORD DomainCompatibilityMode = 1 DWORD DNSNameResolutionRequired = 0 I found that without this then win 7 cannot join the samba domain.
There might be something else going on with the bridged network adaptor setup too. I use that on my machines but not with domain logins. There are other options for the network adaptor setup (as I'm sure you're aware) and each has different pros/cons - check the VB documentation to see what the limitations of each are. You may need to set up the VM with a different adaptor type and that may end up putting the virtual Windows install onto a different subnet (in which case you'll have to add that subnet to smb.conf and perhaps modify some firewall rules if you run a local firewall on that machine.
The bridged adapter works now. I can ping both ways. I had to restart windows 7 for the network settings to take effect. Still having trouble logging in. Trying to login from win 7 tells me that 'no logon servers are available'. The logs suggest that there is a logon server. Here is log.nmbd: Nov 7 07:30:05 hh1 nmbd[7677]: [2011/11/07 07:30:05.525647, 0] nmbd/nmbd.c:71(terminate) Nov 7 07:30:05 hh1 nmbd[7677]: Got SIGTERM: going down... Nov 7 07:30:06 hh1 nmbd[7822]: [2011/11/07 07:30:06.171691, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) Nov 7 07:30:06 hh1 nmbd[7822]: add_domain_logon_names: Nov 7 07:30:06 hh1 nmbd[7822]: Attempting to become logon server for workgroup HH1 on subnet 192.168.1.2 Nov 7 07:30:06 hh1 nmbd[7822]: [2011/11/07 07:30:06.173068, 0] nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast) Nov 7 07:30:06 hh1 nmbd[7822]: become_domain_master_browser_bcast: Nov 7 07:30:06 hh1 nmbd[7822]: Attempting to become domain master browser on workgroup HH1 on subnet 192.168.1.2 Nov 7 07:30:06 hh1 nmbd[7822]: [2011/11/07 07:30:06.174071, 0] nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast) Nov 7 07:30:06 hh1 nmbd[7822]: become_domain_master_browser_bcast: querying subnet 192.168.1.2 for domain master browser on workgroup HH1 Nov 7 07:30:10 hh1 nmbd[7822]: [2011/11/07 07:30:10.178990, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) Nov 7 07:30:10 hh1 nmbd[7822]: become_logon_server_success: Samba is now a logon server for workgroup HH1 on subnet 192.168.1.2 Nov 7 07:30:14 hh1 nmbd[7822]: [2011/11/07 07:30:14.183889, 0] nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2) Nov 7 07:30:14 hh1 nmbd[7822]: ***** Nov 7 07:30:14 hh1 nmbd[7822]: Nov 7 07:30:14 hh1 nmbd[7822]: Samba server HH1 is now a domain master browser for workgroup HH1 on subnet 192.168.1.2 Nov 7 07:30:14 hh1 nmbd[7822]: Nov 7 07:30:14 hh1 nmbd[7822]: ***** Nov 7 07:30:29 hh1 nmbd[7822]: [2011/11/07 07:30:29.199702, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) Nov 7 07:30:29 hh1 nmbd[7822]: ***** Nov 7 07:30:29 hh1 nmbd[7822]: Nov 7 07:30:29 hh1 nmbd[7822]: Samba name server HH1 is now a local master browser for workgroup HH1 on subnet 192.168.1.2 Any ideas anyone? Thanks. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org