Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winbind issues under Ubuntu

Status
Not open for further replies.

mdutch

IS-IT--Management
Apr 21, 2006
4
US
Problem:
Trying to finish creation of Samba 3.3.2 domain server on new 9.04 Ubuntu server. Did default Ubuntu installation of LAMP and Samba during installation. Successfully edited smb.conf, built users, server and resources visible in smbclient and in windows test workstation. Can login as different users, and join machines to the domain via windows. However, the whole system was INCREDIBLY slow!

Question:
Started checking the log files and noticed I was getting winbind errors. After starting samba & winbind, I get repeating errors in /var/log/samba/log.winbindd. (see file below) I've searched many forums and sites for the error msgs and can't find references. Can you clue me in why these are generated and where/what I need to reconfig?

FYI, log.winbindd and smb.conf is below. Let me know if you need more resources.

Regards,
--mdutch

>>>>>>/var/log/samba/log.winbindd<<<<<<<<<<
Code:
[2009/10/22 12:44:01,  0] winbindd/winbindd.c:main(1125)
  winbindd version 3.3.2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/10/22 12:44:01,  0] winbindd/winbindd_cache.c:initialize_winbindd_cache(2577)
  initialize_winbindd_cache: clearing cache and re-creating with version number 1
[highlight]ERRORS START
[b][2009/10/22 12:44:42,  0] libsmb/namequery.c:saf_store(75)
  saf_store: refusing to store 0 length domain or servername!
[2009/10/22 12:44:52,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding
[2009/10/22 12:44:52,  1] winbindd/winbindd_cm.c:cm_prepare_connection(967)
  failed tcon_X with NT_STATUS_IO_TIMEOUT[/b]
>>>>>>THEN THE ERRORS REPEAT<<<<<<<<<<
[2009/10/22 12:45:02,  0] libsmb/namequery.c:saf_store(75)
  saf_store: refusing to store 0 length domain or servername!
[2009/10/22 12:45:12,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding
>>>>>>etc.etc.<<<<<<<<<<[/highlight]


>>>>>>>> smb.conf <<<<<<<<
Code:
[global]
	workgroup = JAM2
	netbios name = SMB
	server string = "%h Domain Controller %v"
	interfaces = 127.0.0.0/8, bond0
	bind interfaces only = Yes
	auth methods = sam
	map to guest = Bad User
	obey pam restrictions = Yes
	passdb backend = tdbsam
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	username map = /etc/samba/smbusers
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	name resolve order = hosts lmhosts wins bcast
	time server = Yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	add user script = /usr/sbin/useradd 		-m '%u' 		-g users 		-G users
	delete user script = /usr/sbin/userdel -r '%u'
	add group script = /usr/sbin/addgroup --force-badname %g
	delete group script = /usr/sbin/groupdel %g
	add user to group script = /usr/sbin/useradd %u %g
	delete user from group script = /usr/sbin/userdel %u %g
	add machine script = /usr/sbin/useradd 	   -g machines 	   -c "%u machine account" 	   -d /dev/null 	   -s /bin/false $1$
	logon script = jamlogon.bat
	logon path = \\%N\profiles\%U
	logon drive = H:
	logon home = \\%L\%u\.win_profile\%m
	domain logons = Yes
	os level = 65
	preferred master = Yes
	domain master = Yes
	dns proxy = No
	wins support = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap uid = 10000-20000
	idmap gid = 20000-30000
	template shell = /bin/bash
	winbind enum users = Yes
	winbind enum groups = Yes
	winbind use default domain = Yes
	admin users = root, administrator, @root

[homes]
	comment = Home Directories
	path = /samba/home/%u
	valid users = %S, %D%w%S
	read only = No
	create mask = 0775
	directory mask = 0775
	inherit acls = Yes
	browseable = No

[netlogon]
	comment = Network Logon Service
	path = /samba/netlogon
	guest ok = Yes
	browseable = No

[profiles]
	comment = Users profiles
	path = /samba/home/profiles/
	create mask = 0600
	directory mask = 0700
	browseable = No
 
Still having log.winbindd errors every 10-15 seconds...

With the help of a contributor, I changed
Code:
    auth methods = sam
to
Code:
    auth methods = sam winbind
and the error in log.winbindd
[highlight] saf_store: refusing to store 0 length domain or servername![/highlight]
stopped appearing! w00t!

But, I'm still getting Server stopped responding errors in log.winbindd:
Code:
[2009/10/22 15:38:45,  0] winbindd/winbindd.c:main(1125)
  winbindd version 3.3.2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/10/22 15:38:45,  0] winbindd/winbindd_cache.c:initialize_winbindd_cache(2577)
  initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2009/10/22 15:39:35,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding
[2009/10/22 15:39:55,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding

Similar entries in log.wb-JAM2 (the domain winbind file)
Code:
[2009/10/22 15:38:58,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding
[2009/10/22 15:39:10,  0] libsmb/clientgen.c:cli_receive_smb(165)
  Receiving SMB: Server stopped responding
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top