From owner-freebsd-ports@FreeBSD.ORG Wed Mar 26 09:42:42 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A97241C for ; Wed, 26 Mar 2014 09:42:42 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 84EA7F07 for ; Wed, 26 Mar 2014 09:42:41 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id gf5so1287195lab.35 for ; Wed, 26 Mar 2014 02:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oD7E1ck8wDuqssIiZEGUJ2SU/9mEBPRDloZz/TGLYJg=; b=IwWDNrosOvI060ROORwusrnT0pJmWFf6tLotcRq7/u0O47WE3mHC+3zr+Hdurk4Vjl MVInuvH4Oug9xAhAMdEtNxxrYGVA1QND4w+2pyz0YJK4GrPWTn8fw1MlcEUbuXw/0M4g tDdQS70H7Ual3AX71A+hSzV34WASQRA571YtHROCWJic+fA09YZC02TQ8Qa4J+nOLcLi YNIGnHbYExzwW//vcgZOErCiGrOMpjIYNJ4iu7KjBDUQZWuLgh2HjXHkH5mZJ88qLFIu aTqsYL9MCQa/wUCYv9wh5kg9CZTKGbhXxKYodsqILBh0rMhBLnuToxuXwmlbK1Dewdd2 0e3Q== X-Received: by 10.112.171.67 with SMTP id as3mr50888805lbc.10.1395826959031; Wed, 26 Mar 2014 02:42:39 -0700 (PDT) Received: from [192.168.1.129] ([193.173.55.180]) by mx.google.com with ESMTPSA id zf7sm19300852lab.7.2014.03.26.02.42.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 02:42:37 -0700 (PDT) Message-ID: <5332A10D.8060108@gmail.com> Date: Wed, 26 Mar 2014 10:42:37 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: FreeBSD Subject: samba-4.1.6 FreeBSD 10 cannot read from share. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 09:42:42 -0000 Hello all. I am using samba 3.x.x for a long time to share files across the network as a domain member server. All is working like it should. Lately i tried the samba 41 port and package to do the same job. However I am not able to get it working. Everything seems to work, i can browse the share, i can write to the share and i can delete files from the share. But as soon as I want to read from the share windows explorer hangs. wbinfo -u works, id works. I have rebuild samba41, i installed a new FreeBSD 10 machine and installed samba41, I also tried the package of samba but the issue remains. Also i tried to trim down the smb4.conf file. The error i get is this (translated from dutch) There is a problem accessing the file I:\data\filetocopy Make sure your computer is connected to the network and try again. In my logs i do not see a lot of strange things , i do see this.... Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25 15:47:50.679688, 0, pid=80071, effective(0, 10004), real(0, 0)] ../source3/smbd/reply.c:3079(fake_sendfile) Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25 15:47:50.680200, 0, pid=80071, effective(0, 10004), real(0, 0)] ../source3/smbd/smb2_read.c:235(smb2_sendfile_send_data) Mar 25 15:47:50 freetest smbd[80071]: smb2_sendfile_send_data: fake_sendfile failed for file ubcd526.iso (Socket is not connected). Terminating Could someone point me in the right direction, i have no idea how to overcome this. If i revert back to 3.6.xx all is fine. regards Johan Here is my smb4.conf file [global] workgroup = TESTDOMAIN netbios name = freetest realm = TESTDOMAIN.LOCAL server string = FreeTest security = ADS ea support = yes inherit acls = yes csc policy = disable store dos attributes = yes dos filemode = no map read only = no map untrusted to domain = yes printcap name = /etc/printcap disable spoolss = yes nsupdate command = /usr/local/bin/samba-nsupdate -g template shell = /usr/local/bin/bash template homedir = /usr/home/%U winbind use default domain = yes winbind cache time = 3600 winbind nested groups = yes winbind separator = | winbind offline logon = yes winbind enum users = yes winbind enum groups = yes winbind refresh tickets = yes winbind nss info = rfc2307 #allow trusted domains = yes idmap config * : backend = tdb idmap config * : range = 10000-1200000 idmap config TESTDOMAIN:backend = ad idmap config TESTDOMAIN:schema_mode = rfc2307 idmap config TESTDOMAIN:range = 500 - 1000000 socket options = TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072 #max protocol = SMB2 server max protocol = SMB2 getwd cache = yes strict locking = no write cache size = 2097152 min receivefile size=16384 use sendfile = yes map acl inherit = yes admin users = @TESTDOMAIN|administator, administrator, "@domain admins", "@TESTDOMAIN|domain admins" write list = "@TESTDOMAIN|domain users" "@domain users" obey pam restrictions = yes #local master = no #domain logons = no #domain master = no #preferred master = no #dns proxy = no username map = /usr/local/etc/samba/usermap # LOGGING # no log file size limitation max log size = 0 # specific log file name log file = /var/log/samba/log.%I # set the debug level log level = 2 # add the pid to the log debug pid = yes # add the uid to the log debug uid = yes # add the debug class to the log debug class = yes # add microsecond resolution to timestamp debug hires timestamp = yes #============================ Share Definitions ============================== [data] comment = test zfs snapshots path = /mnt browseable = yes vfs objects = zfsacl streams_xattr aio_pthread veto files = /.snap/.windows/.zfs/ inherit owner = yes inherit permissions = yes inherit acls = yes nfs4:mode = special nfs4:acedup = merge nfs4:chown = yes zfsacl: acesort = dontcare My /etc/krb5.conf file looks llike this [appdefaults] pam = { forwardable = true krb4_convert = false debug = false ticket_lifetime = 36000 renew_lifetime = 36000 } [libdefaults] dns_lookup_realm = true dns_lookup_kdc = true ticket_lifetime = 24h clockskew = 300 forwardable = yes default_realm = TESTDOMAIN.LOCAL [logging] default = SYSLOG:INFO:LOCAL7 /etc/nsswitch file looks like this # # nsswitch.conf(5) - name service switch configuration file # $FreeBSD: release/10.0.0/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z dougb $ # group: files winbind group_compat: nis hosts: files dns networks: files passwd: files winbind passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files A testparm gives me the following output root@freetest:/var/log/samba4 # testparm Load smb config files from /usr/local/etc/smb4.conf Processing section "[data]" Loaded services file OK. Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions [global] workgroup = SCHAVEMAKER2 realm = SCHAVEMAKER2.LOCAL server string = FreeTest security = ADS obey pam restrictions = Yes username map = /usr/local/etc/samba/usermap map untrusted to domain = Yes log file = /var/log/samba4/log.%I max log size = 0 debug pid = Yes debug uid = Yes debug class = Yes server max protocol = SMB2 min receivefile size = 16384 socket options = TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072 printcap name = /etc/printcap disable spoolss = Yes template homedir = /usr/home/%U template shell = /usr/local/bin/bash winbind separator = | winbind cache time = 3600 winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes winbind nss info = rfc2307 winbind refresh tickets = Yes winbind offline logon = Yes nsupdate command = /usr/local/bin/samba-nsupdate -g idmap config POLAND:range = 1000001 - 1200000 idmap config POLAND:schema_mode = rfc2307 idmap config POLAND:backend = ad idmap config SCHAVEMAKER2:range = 500 - 1000000 idmap config SCHAVEMAKER2:schema_mode = rfc2307 idmap config SCHAVEMAKER2:backend = ad idmap config * : range = 10000-1200000 idmap config * : backend = tdb admin users = @SCHAVEMAKER2|administator, administrator, "@domain admins", "@SCHAVEMAKER2|domain admins" write list = "@SCHAVEMAKER2|domain users", "@domain users" inherit acls = Yes ea support = Yes map acl inherit = Yes use sendfile = Yes write cache size = 2097152 map readonly = no store dos attributes = Yes csc policy = disable strict locking = No [data] comment = test zfs snapshots path = /mnt inherit permissions = Yes inherit owner = Yes veto files = /.snap/.windows/.zfs/ vfs objects = shadow_copy2, zfsacl, streams_xattr, aio_pthread zfsacl: acesort = dontcare nfs4:chown = yes nfs4:acedup = merge nfs4:mode = special