RES: [Samba] Group quota does not work Windows XP, but works in Windows Vista
Dear, I found a solution to the problem of quota for group that did not work in stations with Windows XP accessing shares of Samba. I was using as owner of the folder ther user root and the samba was using force user = root. Changed the owner to outrouser and the samba changed force user = outrouser. It worked perfectly. Thanks, Rogério Naressi -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Rogério Oliveira Naressi Enviada em: quinta-feira, 31 de julho de 2008 11:46 Para: samba@lists.samba.org Assunto: [Samba] Group quota does not work Windows XP, but works in Windows Vista Dear, I use Samba version 3.0.24 (PDC), on the partition home set quota user and on the partition other set quota group. Entering by Shell Linux quota works perfectly for both partitions. When access by a Windows XP client, the user quota in the partition of home work, but on quota in the other partition does not work. When access by a Windows Vista Business quota works perfectly, quota user and group ok. Any idea? Rogério Naressi -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] unable to build 3.2 on HP-UX
Hi all, I'm trying to build Samba 3.2 on HP-UX 11.11. I already tried different settings (without ldap, active directory etc, building in a different directory) but without success. The Problem is independent from configure options - called within the source tree without any options leads exactly to the same result. Here are some informations about my setup: gcc (GCC) 4.2.3 HP-UX B.11.11 samba-3.2.0 PA-RISC 2.0 / 64Bit The following snippets are from my last attempt where i tried to build in a seperate directory. When I build directly in the source directory exactly the same happens. ../source/configure --prefix=/opt/samba --with-ldap=no warnings during configure: .. checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section Present But Cannot Be Compiled configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ## -- strage one, perhaps the cause for the problem checking SONAMEFLAG... -Wl,+h checking PICFLAG... -fPIC checking NSSSONAMEVERSIONSUFFIX... checking whether building shared libraries actually works... (Bundled) cc: warning 422: Unknown option b ignored. /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /usr/ccs/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile. no checking used PICFLAG... -fPIE checking for long long... yes checking for intptr_t... (cached) yes checking for LL suffix on long long integers... yes checking for Active Directory and krb5 support... auto configure: WARNING: Disabling Active Directory support (requires LDAP support) checking for nscd_flush_cache in -lnscd... no checking whether to use shared libraries internally... false configure: WARNING: --enable-shared-libs: no support for shared libraries checking whether to build the libtalloc shared library... no shared library support -- will supply static library ... -- no more warnings and no errors at all during configure. compiler error: . Compiling librpc/gen_ndr/ndr_libnet_join.c mkdir nsswitch/libwbclient Compiling nsswitch/libwbclient/wbclient.c Compiling nsswitch/libwbclient/wbc_util.c Compiling nsswitch/libwbclient/wbc_pwd.c Compiling nsswitch/libwbclient/wbc_idmap.c Compiling nsswitch/libwbclient/wbc_sid.c Compiling nsswitch/libwbclient/wbc_pam.c Compiling nsswitch/wb_common.c Linking non-shared library bin/libwbclient.a Compiling smbd/server.c ../source/smbd/server.c: In function 'main': ../source/smbd/server.c:1100: warning: passing argument 2 of 'set_auth_parameters' from incompatible pointer type Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 Stop. -- as a test: created directory nmbd and restarted make: 11:02 da:en6[86] make /opt/build/samba-3.2.0/build Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/opt/build/samba-3.2.0/build/../source/iniparser/src -Iinclude -I/opt/build/samba-3.2.0/build/../source/include -I. -I/opt/build/samba-3.2.0/build/../source -I/opt/build/samba-3.2.0/build/../source/lib/replace -I/opt/build/samba-3.2.0/build/../source/lib/talloc -I/opt/build/samba-3.2.0/build/../source/lib/tdb/include -I/opt/build/samba-3.2.0/build/../source/libaddns -I/opt/build/samba-3.2.0/build/../source/librpc -DHAVE_CONFIG_H -Iinclude -I../source/include -I. -I../source -I../source/lib/replace -I../source/lib/talloc -I../source/lib/tdb/include -I../source/libaddns -I../source/librpc -I../source/popt -I/include -I/opt/build/samba-3.2.0/build/../source/lib -D_SAMBA_BUILD_=3 PICFLAG= -fPIE LIBS = -lsec -lnsl -liconv LDFLAGS= -pie -L./bin DYNEXP = -Wl,-E,+b/usr/local/lib:/usr/lib LDSHFLAGS = shared-libraries-disabled -L./bin SHLIBEXT = shared_libraries_disabled SONAMEFLAG = shared-libraries-disabled Linking non-shared library bin/libtalloc.a WARNING: you need to run ./config.status Linking non-shared library bin/libsmbclient.a Linking non-shared library bin/libsmbsharemodes.a Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 -- not really better... Anyone an Idea? Are there any known Problem with the version of gcc I use? Dag -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] posix locking = no - is it dangerous?!
Volker Lendecke escribió: On Tue, Jul 29, 2008 at 09:09:55PM -0300, Miguel Da Silva - Centro de Matemática wrote: Dear users, I'm asking myself... what if I use posix locking = no to a share in a Samba server?! Here goes 3 URL's describing the some problem I have right now: http://lists.samba.org/archive/samba/2008-January/137529.html http://lists.samba.org/archive/samba/2008-January/137437.html http://blog.notreally.org/articles/2007/12/ You need to re-export NFS imports? This starts to become a FAQ See http://lists.samba.org/archive/samba/2007-August/thread.html#134572 Volker Good!!! More information, thank you... Just a question, in one message through this thread, you told this: One potential workaround (no guarantees!) is to say posix locking = no on the relevant shares. And that's what I've done too, but what kind of no guarantees should I expect?! Greentings. -- Miguel Da Silva Administrador Junior de Sistemas Unix Centro de Matemática - http://www.cmat.edu.uy Facultad de Ciencias - http://www.fcien.edu.uy Universidad de la República - http://www.rau.edu.uy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] To use or not to use winbind
On Sunday 03 August 2008, Jason A. Nunnelley wrote: Recap: Jeff and I are having a conversation about whether turning off winbinds is a solution for rectifying apparent conflicts with a PDC running winbinds. Here's my take on the subject: The general use for winbind is to be able to use an MS domain controller for authentication eliminating the need to separately create matching 'nix users. The special case for using winbind is when, using Samba as the PDC, you wish to insist that a username/password pair from a system not a domain member is not authenticated even if the username/password pair matches that of a domain user (maybe more correctly to state that the domain part is missing from the supplied credentials). Note that generally with a pure Windows network and a Windows NT4 PDC, as well as Windows in general (peer to peer), matching username/password credentials are enough to authenticate, so using winbind in this situation creates an environment more restrictive then generally expected. -- Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] unable to build 3.2 on HP-UX
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One of these problems has existed since back in the 3.0.x days. I can't remember now whether I filed a bug for it, but I did receive some help on the mailing list or did report back on how to fix it. See if you can find a discussion about that. At least part of the problem is a -Wl,-b or something like that getting passed directly to the linker. If I'm not mistaken, -Wl is something that is supposed to tell the compiler to pass -b to the linker... not something the linker itself is ever supposed to get. I seem to recall the ip.h stuff not mattering. Have you built this before (previous Samba on HP-UX)? If so, perhaps that stuff is no longer true and I'm speaking out of turn. =R Dag Ager wrote: Hi all, I'm trying to build Samba 3.2 on HP-UX 11.11. I already tried different settings (without ldap, active directory etc, building in a different directory) but without success. The Problem is independent from configure options - called within the source tree without any options leads exactly to the same result. Here are some informations about my setup: gcc (GCC) 4.2.3 HP-UX B.11.11 samba-3.2.0 PA-RISC 2.0 / 64Bit The following snippets are from my last attempt where i tried to build in a seperate directory. When I build directly in the source directory exactly the same happens. ../source/configure --prefix=/opt/samba --with-ldap=no warnings during configure: .. checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section Present But Cannot Be Compiled configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ## -- strage one, perhaps the cause for the problem checking SONAMEFLAG... -Wl,+h checking PICFLAG... -fPIC checking NSSSONAMEVERSIONSUFFIX... checking whether building shared libraries actually works... (Bundled) cc: warning 422: Unknown option b ignored. /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /usr/ccs/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile. no checking used PICFLAG... -fPIE checking for long long... yes checking for intptr_t... (cached) yes checking for LL suffix on long long integers... yes checking for Active Directory and krb5 support... auto configure: WARNING: Disabling Active Directory support (requires LDAP support) checking for nscd_flush_cache in -lnscd... no checking whether to use shared libraries internally... false configure: WARNING: --enable-shared-libs: no support for shared libraries checking whether to build the libtalloc shared library... no shared library support -- will supply static library ... -- no more warnings and no errors at all during configure. compiler error: . Compiling librpc/gen_ndr/ndr_libnet_join.c mkdir nsswitch/libwbclient Compiling nsswitch/libwbclient/wbclient.c Compiling nsswitch/libwbclient/wbc_util.c Compiling nsswitch/libwbclient/wbc_pwd.c Compiling nsswitch/libwbclient/wbc_idmap.c Compiling nsswitch/libwbclient/wbc_sid.c Compiling nsswitch/libwbclient/wbc_pam.c Compiling nsswitch/wb_common.c Linking non-shared library bin/libwbclient.a Compiling smbd/server.c ../source/smbd/server.c: In function 'main': ../source/smbd/server.c:1100: warning: passing argument 2 of 'set_auth_parameters' from incompatible pointer type Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 Stop. -- as a test: created directory nmbd and restarted make: 11:02 da:en6[86] make /opt/build/samba-3.2.0/build Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/opt/build/samba-3.2.0/build/../source/iniparser/src -Iinclude -I/opt/build/samba-3.2.0/build/../source/include -I. -I/opt/build/samba-3.2.0/build/../source -I/opt/build/samba-3.2.0/build/../source/lib/replace -I/opt/build/samba-3.2.0/build/../source/lib/talloc -I/opt/build/samba-3.2.0/build/../source/lib/tdb/include -I/opt/build/samba-3.2.0/build/../source/libaddns -I/opt/build/samba-3.2.0/build/../source/librpc -DHAVE_CONFIG_H -Iinclude -I../source/include -I. -I../source -I../source/lib/replace -I../source/lib/talloc -I../source/lib/tdb/include -I../source/libaddns -I../source/librpc -I../source/popt -I/include -I/opt/build/samba-3.2.0/build/../source/lib -D_SAMBA_BUILD_=3 PICFLAG= -fPIE
Re: [Samba] unable to build 3.2 on HP-UX
Previous versions compiled just fine. At the moment I'm running 3.0.28a and also compiled 3.030 without any problems. I already searched the archives for information, but HP-UX seems to be used only very rarely... Ryan Novosielski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One of these problems has existed since back in the 3.0.x days. I can't remember now whether I filed a bug for it, but I did receive some help on the mailing list or did report back on how to fix it. See if you can find a discussion about that. At least part of the problem is a -Wl,-b or something like that getting passed directly to the linker. If I'm not mistaken, -Wl is something that is supposed to tell the compiler to pass -b to the linker... not something the linker itself is ever supposed to get. I seem to recall the ip.h stuff not mattering. Have you built this before (previous Samba on HP-UX)? If so, perhaps that stuff is no longer true and I'm speaking out of turn. =R -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Help needed: strange issue with share mapping at logon
Hello all, I've run into an issue while migrating a client's Samba PDC from Debian 3.x to OpenSuSE 10.3, have been beating my head against it for over a week, and am now turning to the mailing list for help. We're running Samba 3.0.26a-3-1478-SUSE-SL10.3 authenticating against OpenLDAP 2.3.37. Integration of Samba and OpenLDAP works, and importing the 2000+ existing user accounts from the old PDC (running OpenLDAP 2.0.x) also worked after some reformatting of the LDIF data. The domain logon script, logon.cmd, calls Kixtart to execute the script logon.kix, which maps different shares for each user depending on which groups they belong to, sets up email, and generally does all sorts of clever things. This script works...up to a point. This is where my problems begin. All logon scripts were directly copied across from the old PDC, as was /etc/samba/smb.conf. Obviously some tweaks were made to the Samba config to deal with changes in the LDAP DB organisation (users in a different OU, etc.), but share definitions were kept intact. What's going wrong is this: shares that *should* be being automapped for members of the CSSG Pupils and Technology groups are not being automapped. Other shares, that all users get via logon.kix, are mapped. the logon script is definitely being run - one can watch it execute when a user logs on. It's not a rights issue - members of CSSG Pupils can use net use or equivalent commands to access the relevant shares, can browse to them via an SMB browser, and otherwise have exactly the level of access they should have. There is no reason I can see why this wouldn't work as intended, but it's failing, and I have no idea why. Here's the smb.conf: # # Configuration file for the Samba suite for Debian GNU/Linux. # #=== Global Settings === [global] ## Browsing/Identification ### netbios name = PHSSERVER workgroup = PHSDOMAIN server string = Primary Domain Controller (Samba %v) wins support = yes dns proxy = no ; name resolve order = lmhosts host wins bcast Debugging/Accounting log file = /var/log/samba/log.%U max log size = 1000 # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 2 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ### Authentication ### security = user encrypt passwords = true passdb backend = ldapsam:ldap://127.0.0.1/ ldap admin dn = cn=admin,dc=phs,dc=lan ldap suffix = dc=phs,dc=lan ldap group suffix = ou=Groups ldap user suffix = ou=Users ; In Samba 3.0.x, people and machines must be in same container: ldap machine suffix = ou=Users ldap ssl = off ldap delete dn = Yes add machine script = /usr/local/sbin/smbldap-useradd -w -c Computer %u -g 515 -H [W] %u add user script = /usr/local/sbin/smbldap-useradd -m %u delete user script = /usr/local/sbin/smbldap-userdel %u add group script = /usr/local/sbin/smbldap-groupadd -p %g delete group script = /usr/local/sbin/smbldap-groupdel %g add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u ; ldap passwd sync = yes passwd program = /usr/local/sbin/phs-passwd %u passwd chat = *ew*password* %n\n *ew*password* %n\n *successfully* unix password sync = yes # This boolean controls whether PAM will be used for password changes # when requested by an SMB client instead of the program listed in # 'passwd program'. The default is 'no'. ; pam password change = no obey pam restrictions = no guest account = nobody invalid users = root domain logons = yes domain master = yes #logon script = netlogon\logon.kix logon script = logon.cmd logon drive = G: logon home = \\%N\%U logon path = \\%N\profiles\default ## Printing ## load printers = yes printing = cups printcap name = cups File sharing # Name mangling options ; preserve case = yes ; short preserve case = yes Misc socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # The following parameter is useful only if you have the linpopup package # installed. The samba maintainer and the linpopup maintainer are # working to ease installation and configuration of linpopup and samba. ; message command = /bin/sh -c '/usr/bin/linpopup %f %m %s; rm %s' # Some defaults for winbind (make sure you're not using the ranges # for something else.) ; idmap uid = 1-2 ; idmap gid = 1-2 ; template shell = /bin/bash # Must be off for Debian Samba 3.0 on Xeon use sendfile = no # Do not lock database files veto oplock files =
Re: [Samba] To use or not to use winbind
On 8/4/2008 9:58 AM, Chris Smith wrote: The general use for winbind is to be able to use an MS domain controller for authentication eliminating the need to separately create matching 'nix users. The special case for using winbind is when, using Samba as the PDC, you wish to insist that a username/password pair from a system not a domain member is not authenticated even if the username/password pair matches that of a domain user (maybe more correctly to state that the domain part is missing from the supplied credentials). Note that generally with a pure Windows network and a Windows NT4 PDC, as well as Windows in general (peer to peer), matching username/password credentials are enough to authenticate, so using winbind in this situation creates an environment more restrictive then generally expected. Interesting! Is this behavior documented? -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] To use or not to use winbind
On Monday 04 August 2008, Charles Marcus wrote: Interesting! Is this behavior documented? AFAIK, yes. But it is my interpretation of the documentation (which I believe to be correct or I wouldn't have posted it) and is therefore offered to not only simplify and clarify where it can but also to expose it to any needed corrections by those who read it differently and/or know much more about the subject than I do. -- Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Slow response since HW upgrade to AMD Phenom Quad 9750
Hi ! This is just to share my experience: Last week I upgraded to OpenSuSE 11.0 with Samba 3.2.0rc1-22.1-1795-SUSE-SL11.0. Since then, samba performs like expected with GBit Network. Happy upgrading ! Michael Michael Krauss schrieb: Two weeks ago I changed my server hardware from AMD Athlon 64 x2 4400/Gigabyte GA-M59SLI-S5 to AMD Phenom 4x 9750/Gigabyte GA-MA790FX-DS5. Memory (6GB) and SATA RAID (Adaptec BR5085) stayed the same. Since then, I notice slow response when requesting data from samba shares. It is most obvious when playing video from a samba share. This was possible with the old hardware. After the upgrade, playback often hangs or stops. I am using OpenSuSE 10.3 with Samba 3.0.26a-3.5-1616-SUSE-SL10.3 Are there any known issues with scaling from dual core to quad core ? The rest of the system (VMWare Server with 3 virtual machines) seems to perform better than before. BTW, samba is running on the physical server, not in a virtual machine. Any hints are welcome. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Unstable printing w/3.2.0
I've upgraded my print server to CentOS5 w/Samba 3.2.0. While it works we are experiencing numerous irritating issues. I'm curious if anyone else is experencing these issues. 1.) Print jobs do not clear out of the CIFS queue. So we now have printers that show they have over 1,000 jobs in the queue although the queue is empty. This is a bug scheduled to be fixed in 3.2.1 (I believe) so at least I'm not crazy on this one. 2.) When attempting to upload some drivers the process fails with This driver is not compatible with Windows XP. Although it is the latest driver for HP's Laserjet 4200 series. This occurs with both PCL and Postscript drivers. 3.) After working perfectly for awhile a specific queue will stop working and users will get an Access Denied messgaes while other queues using the same driver will work perfectly. Then switching the driver on the server around will sometimes make it work. Othertimes the driver needs to be deleted, re-added, and reassigned to the printer to make the Access Denied message disappear. Does 3.2.0 make any changes to the TDB format? If not, is it possible to drop backwards to a stable version? Printing via LPD or IPP directly to CUPS works flawlessly every time. [EMAIL PROTECTED] ~]# rpm -q samba3 samba3-3.2.0-36 [EMAIL PROTECTED] ~]# uname -a Linux crew.morrison.iserv.net 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:49:24 EDT 2008 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] ~]# rpm -q cups cups-1.3.8-1 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Unstable printing w/3.2.0
3.) After working perfectly for awhile a specific queue will stop working and users will get an Access Denied messgaes while other queues using the same driver will work perfectly. Then switching the driver on the server around will sometimes make it work. Othertimes the driver needs to be deleted, re-added, and reassigned to the printer to make the Access Denied message disappear. Found a seemingly reliable work around for #3. # Stop SMB services [EMAIL PROTECTED] var]# rcsmb stop Shutting down SMB services:[ OK ] Shutting down NMB services:[ OK ] # make sure all the SMB processes have stopped, this may take a minute [EMAIL PROTECTED] var]# ps ax | grep smb 6956 pts/1S+ 0:00 grep smb # Remove the related tdb file [EMAIL PROTECTED] var]# rm ./lib/samba/printing/cenps.tdb rm: remove regular file `./lib/samba/printing/cenps.tdb'? y # Restart SMB services [EMAIL PROTECTED] var]# rcsmb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] Users can now print to the queue again, no Access Denied message. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Unstable printing w/3.2.0
Adam Tauno Williams wrote: I've upgraded my print server to CentOS5 w/Samba 3.2.0. While it works we are experiencing numerous irritating issues. I'm curious if anyone else is experencing these issues. 1.) Print jobs do not clear out of the CIFS queue. So we now have printers that show they have over 1,000 jobs in the queue although the queue is empty. This is a bug scheduled to be fixed in 3.2.1 (I believe) so at least I'm not crazy on this one. This is a bug, and it is already fixed (for 3.2.1). You are not crazy! :-) Cheers - Michael -- Michael Adam [EMAIL PROTECTED] [EMAIL PROTECTED] SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE pgpVHKoFWJnwH.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] unable to build 3.2 on HP-UX
Hi, this is a bug in Makefile.in: When not building shared libs there are variables expanded as empty by configure like @[EMAIL PROTECTED] When these stand in a line of their own (like in the bin/smbd target just before the bin/nmbd target), this leads to lines consisting only of tabs + maybe spaces. This leads to the build errors you had. This is all fixed in the v3-2-stable tree, and the fix will be in 3.2.1 which is going to be released tomorrow. I attach a fixed Makefile.in if you would like to test it immediately. You should only need to run ./config.status and then make. Cheers - Michael Dag Ager wrote: Hi all, I'm trying to build Samba 3.2 on HP-UX 11.11. I already tried different settings (without ldap, active directory etc, building in a different directory) but without success. The Problem is independent from configure options - called within the source tree without any options leads exactly to the same result. Here are some informations about my setup: gcc (GCC) 4.2.3 HP-UX B.11.11 samba-3.2.0 PA-RISC 2.0 / 64Bit The following snippets are from my last attempt where i tried to build in a seperate directory. When I build directly in the source directory exactly the same happens. ../source/configure --prefix=/opt/samba --with-ldap=no warnings during configure: .. checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section Present But Cannot Be Compiled configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ## -- strage one, perhaps the cause for the problem checking SONAMEFLAG... -Wl,+h checking PICFLAG... -fPIC checking NSSSONAMEVERSIONSUFFIX... checking whether building shared libraries actually works... (Bundled) cc: warning 422: Unknown option b ignored. /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /usr/ccs/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile. no checking used PICFLAG... -fPIE checking for long long... yes checking for intptr_t... (cached) yes checking for LL suffix on long long integers... yes checking for Active Directory and krb5 support... auto configure: WARNING: Disabling Active Directory support (requires LDAP support) checking for nscd_flush_cache in -lnscd... no checking whether to use shared libraries internally... false configure: WARNING: --enable-shared-libs: no support for shared libraries checking whether to build the libtalloc shared library... no shared library support -- will supply static library ... -- no more warnings and no errors at all during configure. compiler error: . Compiling librpc/gen_ndr/ndr_libnet_join.c mkdir nsswitch/libwbclient Compiling nsswitch/libwbclient/wbclient.c Compiling nsswitch/libwbclient/wbc_util.c Compiling nsswitch/libwbclient/wbc_pwd.c Compiling nsswitch/libwbclient/wbc_idmap.c Compiling nsswitch/libwbclient/wbc_sid.c Compiling nsswitch/libwbclient/wbc_pam.c Compiling nsswitch/wb_common.c Linking non-shared library bin/libwbclient.a Compiling smbd/server.c ../source/smbd/server.c: In function 'main': ../source/smbd/server.c:1100: warning: passing argument 2 of 'set_auth_parameters' from incompatible pointer type Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 Stop. -- as a test: created directory nmbd and restarted make: 11:02 da:en6[86] make /opt/build/samba-3.2.0/build Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/opt/build/samba-3.2.0/build/../source/iniparser/src -Iinclude -I/opt/build/samba-3.2.0/build/../source/include -I. -I/opt/build/samba-3.2.0/build/../source -I/opt/build/samba-3.2.0/build/../source/lib/replace -I/opt/build/samba-3.2.0/build/../source/lib/talloc
[EMAIL PROTECTED]: Re: [Samba] unable to build 3.2 on HP-UX]
hmm, the mailing list engine seems to have eaten my attachmen (and my signature) trying again - Forwarded message from Michael Adam [EMAIL PROTECTED] - Date: Mon, 4 Aug 2008 22:43:55 +0200 From: Michael Adam [EMAIL PROTECTED] To: Dag Ager [EMAIL PROTECTED] Subject: Re: [Samba] unable to build 3.2 on HP-UX Hi, this is a bug in Makefile.in: When not building shared libs there are variables expanded as empty by configure like @[EMAIL PROTECTED] When these stand in a line of their own (like in the bin/smbd target just before the bin/nmbd target), this leads to lines consisting only of tabs + maybe spaces. This leads to the build errors you had. This is all fixed in the v3-2-stable tree, and the fix will be in 3.2.1 which is going to be released tomorrow. I attach a fixed Makefile.in if you would like to test it immediately. You should only need to run ./config.status and then make. Cheers - Michael Dag Ager wrote: Hi all, I'm trying to build Samba 3.2 on HP-UX 11.11. I already tried different settings (without ldap, active directory etc, building in a different directory) but without success. The Problem is independent from configure options - called within the source tree without any options leads exactly to the same result. Here are some informations about my setup: gcc (GCC) 4.2.3 HP-UX B.11.11 samba-3.2.0 PA-RISC 2.0 / 64Bit The following snippets are from my last attempt where i tried to build in a seperate directory. When I build directly in the source directory exactly the same happens. ../source/configure --prefix=/opt/samba --with-ldap=no warnings during configure: .. checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section Present But Cannot Be Compiled configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ## -- strage one, perhaps the cause for the problem checking SONAMEFLAG... -Wl,+h checking PICFLAG... -fPIC checking NSSSONAMEVERSIONSUFFIX... checking whether building shared libraries actually works... (Bundled) cc: warning 422: Unknown option b ignored. /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /usr/ccs/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile. no checking used PICFLAG... -fPIE checking for long long... yes checking for intptr_t... (cached) yes checking for LL suffix on long long integers... yes checking for Active Directory and krb5 support... auto configure: WARNING: Disabling Active Directory support (requires LDAP support) checking for nscd_flush_cache in -lnscd... no checking whether to use shared libraries internally... false configure: WARNING: --enable-shared-libs: no support for shared libraries checking whether to build the libtalloc shared library... no shared library support -- will supply static library ... -- no more warnings and no errors at all during configure. compiler error: . Compiling librpc/gen_ndr/ndr_libnet_join.c mkdir nsswitch/libwbclient Compiling nsswitch/libwbclient/wbclient.c Compiling nsswitch/libwbclient/wbc_util.c Compiling nsswitch/libwbclient/wbc_pwd.c Compiling nsswitch/libwbclient/wbc_idmap.c Compiling nsswitch/libwbclient/wbc_sid.c Compiling nsswitch/libwbclient/wbc_pam.c Compiling nsswitch/wb_common.c Linking non-shared library bin/libwbclient.a Compiling smbd/server.c ../source/smbd/server.c: In function 'main': ../source/smbd/server.c:1100: warning: passing argument 2 of 'set_auth_parameters' from incompatible pointer type Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 Stop. -- as a test: created directory nmbd and restarted make: 11:02 da:en6[86] make /opt/build/samba-3.2.0/build Using FLAGS = -O
[Samba] Kerberos-related configure script problem on Solaris with 3.2.0
I'm building samba-3.2.0 on a Solaris 10 x64 box using the Sun Studio cc compiler. I'm running into a problem. I have a workaround. Let me know if I should post a bug report. A. The problem: $ ./configure --prefix=/usr/local/samba-3.2.0 --with-ads --with-pam --with-acl-support --with-shared-modules=idmap_ad --enable-socket-wrapper --enable-nss-wrapper --with-krb5=/usr/local/heimdal/heimdal-1.1 ... config.status: creating pkgconfig/smbsharemodes.pc config.status: creating include/config.h config.status: executing rm-stdint.h commands config.status: executing mk-stdbool.h commands $ make ... Compiling libsmb/clikrb5.c /usr/include/netdb.h, line 475: warning: macro redefined: MAXHOSTNAMELEN ./librpc/gen_ndr/srvsvc.h, line 232: warning: enumerator value overflows INT_MAX (2147483647) ./librpc/gen_ndr/srvsvc.h, line 235: warning: enumerator value overflows INT_MAX (2147483647) ./librpc/gen_ndr/srvsvc.h, line 238: warning: enumerator value overflows INT_MAX (2147483647) ./librpc/gen_ndr/srvsvc.h, line 242: warning: enumerator value overflows INT_MAX (2147483647) ./librpc/gen_ndr/wkssvc.h, line 10: warning: useless declaration ./librpc/gen_ndr/samr.h, line 633: warning: useless declaration ./librpc/gen_ndr/nbt.h, line 496: warning: useless declaration ./librpc/gen_ndr/netlogon.h, line 204: warning: useless declaration ./librpc/gen_ndr/netlogon.h, line 206: warning: useless declaration ./librpc/gen_ndr/libnet_join.h, line 10: warning: useless declaration libsmb/clikrb5.c, line 242: warning: implicit function declaration: error_message libsmb/clikrb5.c, line 1050: warning: statement not reached libsmb/clikrb5.c, line 1531: #error: UNKNOWN_KRB5_ENCTYPE_TO_STRING_FUNCTION cc: acomp failed for libsmb/clikrb5.c The following command failed: cc -I. -I/home/david/build/samba-3.2.0-temp/samba-3.2.0/source -I/usr/local/heimdal/heimdal-1.1/include -O -D_SAMBA_BUILD_=3 -I/home/david/build/samba-3.2.0-temp/samba-3.2.0/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/heimdal/heimdal-1.1/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -DSUNOS5 -I/include -I/home/david/build/samba-3.2.0-temp/samba-3.2.0/source/lib -D_SAMBA_BUILD_=3 -KPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o *** Error code 2 ... make: Fatal error: Command failed for target `libsmb/clikrb5.o' B. The immediate cause of the problem: What's causing the #error: UNKNOWN_KRB5_ENCTYPE_TO_STRING_FUNCTION is that with Heimdal, configure should be setting HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG in config.h, but it's not: $ grep HAVE_KRB5_ENCTYPE_TO_STRING include/config.h #define HAVE_KRB5_ENCTYPE_TO_STRING 1 /* #undef HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG */ /* #undef HAVE_KRB5_ENCTYPE_TO_STRING_WITH_SIZE_T_ARG */ C. The root cause of the problem: The configure script test for the right form of krb5_enctype_to_string() is failing because stdlib.h isn't #included in conftest.c, and as a result free is not found: configure:62117: cc -o conftest -errwarn=%all -I/usr/local/heimdal/heimdal-1.1/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -DLDAP_DEPRECATED -L/usr/local/heimdal/heimdal-1.1/lib -L/usr/local/lib -R/usr/local/lib -lthread -L./bin -L/usr/lib conftest.c -L/usr/local/heimdal/heimdal-1.1/lib -L/usr/local/heimdal/heimdal-1.1/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1 -lroken -ldoor -lresolv -lnsl -lsocket -mt -lresolv -lnsl -lsocket 5 conftest.c, line 538: warning: implicit function declaration: free cc: acomp failed for conftest.c configure:62120: $? = 2 configure: program exited with status 2 configure: failed program was: ... | /* end confdefs.h. */ | | #include krb5.h | int main(void) { | krb5_context context = NULL; | char *str = NULL; | krb5_enctype_to_string(context, 1, str); | if (str) free (str); | return 0; | } D. The Workaround: Put #include stdlib.h after #include krb5.h.The configure script will correctly detect and set HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG, and the build will succeed. -David -- David Eisner http://cradle.brokenglass.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] unable to build 3.2 on HP-UX
Ok, the ML keeps eating my attachments (and signatures)... :-( You can find the Makfile here: http://samba.org/~obnox/patches/Makefile.in.3.2.0-fixed Cheers - Michael Michael Adam wrote: Hi, this is a bug in Makefile.in: When not building shared libs there are variables expanded as empty by configure like @[EMAIL PROTECTED] When these stand in a line of their own (like in the bin/smbd target just before the bin/nmbd target), this leads to lines consisting only of tabs + maybe spaces. This leads to the build errors you had. This is all fixed in the v3-2-stable tree, and the fix will be in 3.2.1 which is going to be released tomorrow. I attach a fixed Makefile.in if you would like to test it immediately. You should only need to run ./config.status and then make. Cheers - Michael Dag Ager wrote: Hi all, I'm trying to build Samba 3.2 on HP-UX 11.11. I already tried different settings (without ldap, active directory etc, building in a different directory) but without success. The Problem is independent from configure options - called within the source tree without any options leads exactly to the same result. Here are some informations about my setup: gcc (GCC) 4.2.3 HP-UX B.11.11 samba-3.2.0 PA-RISC 2.0 / 64Bit The following snippets are from my last attempt where i tried to build in a seperate directory. When I build directly in the source directory exactly the same happens. ../source/configure --prefix=/opt/samba --with-ldap=no warnings during configure: .. checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... no checking netinet/ip.h presence... yes configure: WARNING: netinet/ip.h: present but cannot be compiled configure: WARNING: netinet/ip.h: check for missing prerequisite headers? configure: WARNING: netinet/ip.h: see the Autoconf documentation configure: WARNING: netinet/ip.h: section Present But Cannot Be Compiled configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ## -- strage one, perhaps the cause for the problem checking SONAMEFLAG... -Wl,+h checking PICFLAG... -fPIC checking NSSSONAMEVERSIONSUFFIX... checking whether building shared libraries actually works... (Bundled) cc: warning 422: Unknown option b ignored. /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /usr/ccs/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile. no checking used PICFLAG... -fPIE checking for long long... yes checking for intptr_t... (cached) yes checking for LL suffix on long long integers... yes checking for Active Directory and krb5 support... auto configure: WARNING: Disabling Active Directory support (requires LDAP support) checking for nscd_flush_cache in -lnscd... no checking whether to use shared libraries internally... false configure: WARNING: --enable-shared-libs: no support for shared libraries checking whether to build the libtalloc shared library... no shared library support -- will supply static library ... -- no more warnings and no errors at all during configure. compiler error: . Compiling librpc/gen_ndr/ndr_libnet_join.c mkdir nsswitch/libwbclient Compiling nsswitch/libwbclient/wbclient.c Compiling nsswitch/libwbclient/wbc_util.c Compiling nsswitch/libwbclient/wbc_pwd.c Compiling nsswitch/libwbclient/wbc_idmap.c Compiling nsswitch/libwbclient/wbc_sid.c Compiling nsswitch/libwbclient/wbc_pam.c Compiling nsswitch/wb_common.c Linking non-shared library bin/libwbclient.a Compiling smbd/server.c ../source/smbd/server.c: In function 'main': ../source/smbd/server.c:1100: warning: passing argument 2 of 'set_auth_parameters' from incompatible pointer type Linking bin/smbd sh[7]: bin/nmbd:: not found. *** Error exit code 127 Stop. -- as a test: created directory nmbd and restarted make: 11:02 da:en6[86] make /opt/build/samba-3.2.0/build Using FLAGS =
[Samba] TCP/IP block size
I don't know if this is a Samba question or an OS question. I'm working on an embedded project (microcontroller, limited RAM) that reads files from a FreeBSD/Samba (FreeNAS) box using TCP/IP transport on port 445. They're MP3 files so they're several MB at least. If I request 512 or 1024 bytes each time, I get 1024 bytes back from Samba every time. That's good. But, if I request more, say for example 1300 bytes, I get 1300 bytes returned for the 1st three requests, then the 4th 1300 bytes request is returned by Samba as two messages, one 196 bytes long and the other is 1104 bytes long. It appears that Samba is transmitting data in chunks of 4K, and if I request an even fraction of that, such as 512 or 1024 bytes at a time, I always get that amount in the response. I wish I could request 2048 bytes, but this exceeds my ethernet controller buffer and TCP/IP specifications. Is there a way to change this? In summary, I would like Samba to always return the number of bytes I request and not split it up between two messages. I know I can combine the two response messages, but this causes performance problems for the microcontroller. _ Get Windows Live and get whatever you need, wherever you are. Start here. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Ubuntu 8.04 breaks samba file locking
Just upgraded Saturday from Ubuntu 7.10 to 8.04.01. File locking in Samba is now broken, meaning two different users can have the same file open at the same time and edit it. Server is RedHat 9.0 running Samba 2.2.7a-security-rollup-fix. This has been working well for us for several years. Have one WinXP box accessing the server using OOo 2.0. Have another couple of Win95 boxes. In addition, have one Ubunutu 6.06 box, and three other 8.04 boxes. It appears the XP and the 6.06 box lock files so the other cannot edit them while one has them open, but the 8.04 boxes, running OOo 2.4 can access and edit and save these files, thus causing havoc. The linux clients mount via cifs, such as this line from /etc/fstab: //samba1/vol22/sam/vol22 cifs rw,user,credentials=/[blanked],uid=doug,gid=data 0 0 This is a production environment. Could it be a mis-match between the version of samba on the server and the one on the clients? Can anybody suggest a solution or at least a trouble-shooting procedure? Thanks! :- Doug. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] TCP/IP block size
At 08:11 PM 8/4/2008 -0400, Jeremy M wrote: I don't know if this is a Samba question or an OS question. I'm Or neither? How robust is your TCP/IP stack implementation? Is it possible it's reacting to response times by reducing block sizes? Is this sliding windows? Samba on Linux should do that since the TCP/IP stack on linux is pretty smart. working on an embedded project (microcontroller, limited RAM) that reads files from a FreeBSD/Samba (FreeNAS) box using TCP/IP transport on port 445. They're MP3 files so they're several MB at least. If I request 512 or 1024 bytes each time, I get 1024 bytes back from Samba every time. That's good. But, if I request more, say for example 1300 bytes, I get 1300 bytes returned for the 1st three requests, then the 4th 1300 bytes request is returned by Samba as two messages, one 196 bytes long and the other is 1104 bytes long. If it returns 1300 bytes for a few times, then reduces the block size, then I'm going to guess that the TCP/IP stack on your microcontroller is giving Samba some clue that it's having trouble keeping up. It appears that Samba is transmitting data in chunks of 4K, and if I How does it appear so? You have Wireshark on it? If Samba/Linux is sending 4k, then why did you say you're getting 512, 1024, or 1104? I'm not sure I understand your question. request an even fraction of that, such as 512 or 1024 bytes at a time, I always get that amount in the response. I wish I could request 2048 bytes, but this exceeds my ethernet controller buffer and TCP/IP specifications. Yup. 140-some bytes, maximum, without jumbo frames support on both ends. Even at that, specifications seem to vary. I have a switch that supports jumbo frames, but there's that pesky asterisk in the specs. At the bottom of the page it says 4096 bytes/frame, less overhead, maximum. Is there a way to change this? In summary, I would like Samba to always return the number of bytes I request and not split it up between two messages. I know I can combine the two response messages, but this causes performance problems for the microcontroller. I don't know if you can. You can set the no-fragment flag on transmit, but the other system (Samba) will still split up frames if it thinks it should. Perhaps there's different implementation of the driver for your NIC (in the Samba box) that behaves differently, or has more options for fine-grained control. Maybe a 10/100/1000 NIC would allow jumbo frames on 100mb. I know we had some HP NICs at one time that did, and as we were backing up servers on a separate backup VLAN, 2048 bytes packets seemed to be the way to go. Ulimately, the performance gain was pretty small. We did better by isolating the backup VLANs to their own switches. _ Get Windows Live and get whatever you need, wherever you are. Start here. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba - 547. [Love] An absence, the decline of a dinner invitation, an unintentional coldness, can accomplish more than all the cosmetics and beautiful dresses in the world. --Marcel Proust (1871-1922) --... ...-- -.. . -. . --.- --.- -... [EMAIL PROTECTED] (remove nospam) N9QQB (amateur radio) HEY YOU (loud shouting)WEB: http://www.mixweb.com/tpeters 43° 7' 17.2 N by 88° 6' 28.9 W, Elevation 815', Grid Square EN53wc WAN/LAN/Telcom Analyst, Tech Writer, MCP, CCNA, Registered Linux User 385531 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] TCP/IP block size
At 08:16 PM 8/4/2008 -0500, Tom Peters wrote: At 08:11 PM 8/4/2008 -0400, Jeremy M wrote: I don't know if this is a Samba question or an OS question. I'm request an even fraction of that, such as 512 or 1024 bytes at a time, I always get that amount in the response. I wish I could request 2048 bytes, but this exceeds my ethernet controller buffer and TCP/IP specifications. Yup. 140-some bytes, maximum, without jumbo frames support on both ends. Even at that, specifications seem to vary. I have a switch that Oops. Should be obvious that I meant 1415 bytes, not 140. It's 1500 minus the overhead, depending how you measure. - 442. [Humor] There's a fine line between fishing and just standing on the shore like an idiot. --Steven Wright --... ...-- -.. . -. . --.- --.- -... [EMAIL PROTECTED] (remove nospam) N9QQB (amateur radio) HEY YOU (loud shouting)WEB: http://www.mixweb.com/tpeters 43° 7' 17.2 N by 88° 6' 28.9 W, Elevation 815', Grid Square EN53wc WAN/LAN/Telcom Analyst, Tech Writer, MCP, CCNA, Registered Linux User 385531 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] TCP/IP block size
If it returns 1300 bytes for a few times, then reduces the block size, then I'm going to guess that the TCP/IP stack on your microcontroller is giving Samba some clue that it's having trouble keeping up. It appears that Samba is transmitting data in chunks of 4K, and if I How does it appear so? You have Wireshark on it? If Samba/Linux is sending 4k, then why did you say you're getting 512, 1024, or 1104? I'm not sure I understand your question. Let me clarify. First, yes, I'm using Wireshark; troubleshooting would be a nightmare without it. About the 4K thing: it looks like, and I could be wrong, that when I request sequential packets of data from a file, Samba/OS/whatever pulls 4K off the drive and feeds that 4K block to me, and *does not* send TCP packets that contains data which spans across blocks. Example: I request 1024 bytes, I get 1024 back I request 1024 bytes, I get 1024 back I request 1024 bytes, I get 1024 back I request 1024 bytes, I get 1024 back 4K block all gone. Another request for data goes to the next block. Similar situation with 512 bytes, or any even multiple of 4096. Example: I request 1400 bytes, I get 1400 back I request 1400 bytes, I get 1400 back I request 1400 bytes, OOPS, only 1296 bytes left of the 4K, I get 1296 bytes back THEN, it sends another 104 bytes in another message to complete my request for 1400 bytes This happens every time, all the time, in the exact same manner as I present here. Requests for 1024 or 512 always get fulfilled in one TCP response. Any other data request size gets split like I describe. My TCP/IP stack is uIP, which is fairly mature. It could be uIP, but I say based upon the behavior chances are very slim. _ Get Windows Live and get whatever you need, wherever you are. Start here. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Vista
I'm trying to use smbclient to look at a Vista box but I keep getting: # smbclient -L user-pc -U Kellie Password: Kellie's password session setup failed: NT_STATUS_LOGON_FAILURE I know the user/password combination is good. I spent most of yesterday searching the web for more information. Now, I have used wireshark to look at the traffic between my Linux and Vista boxes. First I see a Negotiate Protocol Request message from the Linux box to the Vista box which replies with a Negotiate Protocol Response. Then I see 3 messages which seem to correspond to the type 1, type 2 and type 3 messages of the NTLM authentication protocol as described here. http://davenport.sourceforge.net/ntlm.html#getNTLMv2Response I can see in the type 1 message, listed as Session Setup AndX Request, NTLMSSP_NEGOTIATE that the flag is set that Samba says it can use NTLMv2 - Negotiate NTLN2 key - Set. In the type 2 message back from the Vista box, listed as Session Setup AndX Response, NTLMSSP_CHALLENGE, Error: STATUS_MORE_PROCESSING_REQUIRED, the same flag is set. I take this to mean that box boxes have agreed to use NTLMv2. In the type 3 message, listed as Session Setup AndX Request, NTLMSSP_Auth, User: WORKGRPUP/Kellie, I can see that Samba is sending the correct workgroup as DOMAIN NAME, the correct host and the correct user. Is there some place on the Vista box where I can see the login attempts and get some clue as to why it sends out a final message of Session Setup AndX Response, Error: STATUS_LOGON FAILURE? Thanks, Steve H... I was hoping for a little more interest in my problem. I first posted with this problem on 7/30 and I've had only 2 different suggestions (thanks Helmut, Mike and Miguel) but unfortunately they didn't work. Is there another list or forum where I would be more likely to find an answer? Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Supporting large file transfers
Samba version 3.0.25b-1.1.cc I cant seem to transfer files over 40gb from a windows machine -- samba share. as far as socket options im using socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE Is there any other tweaks I can use to help make this system more reliable? I get random errors..network path not found or something similar.. = Aconcagua Expedition with Alpine Ascents Aconcagua Expedition with America's Guide Service. International expeditions to the world's highest peaks. Comprehensive mountaineering school. The Seven Summits Company since 1986. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=9b35cc99a796487659e031c2859d46a8 -- Powered by Outblaze -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Fw: [Samba] Samba Vista
I'm trying to use smbclient to look at a Vista box but I keep getting: # smbclient -L user-pc -U Kellie Password: Kellie's password session setup failed: NT_STATUS_LOGON_FAILURE I know the user/password combination is good. ... H... I was hoping for a little more interest in my problem. I first posted with this problem on 7/30 and I've had only 2 different suggestions (thanks Helmut, Mike and Miguel) but unfortunately they didn't work. Is there another list or forum where I would be more likely to find an answer? Steve Steve; Have you upgraded to a recent version of Samba. There were proplems with early versions but, I believe, they were all fixed in 3.0.28a. You can check the release notes to see just which version. Try upgrading to the most recent stable version if you have not done so already. Paul Hi Paul, I'm running FC8 with all the latest updates. $ smbclient --version Version 3.0.30-0.fc8 So this should be OK. Thanks, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Supporting large file transfers
Jeff L wrote: Samba version 3.0.25b-1.1.cc I cant seem to transfer files over 40gb from a windows machine -- samba share. as far as socket options im using socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE Is there any other tweaks I can use to help make this system more reliable? I get random errors..network path not found or something similar.. Those are nerfed socket buffer settings. You can remove the SO_*BUF=8192, and it should improve performance. Is the connection collapsing on you? (you can check with netstat -s) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3532-gba18af0
The branch, v3-3-test has been updated via ba18af00cc79a4e92372d3c1151061f200bc0655 (commit) via c83de77b750837a110611d7023c4cf71d2d0bab1 (commit) from 08e97bd369ebe3ab1fd92433b168585faea92c68 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit ba18af00cc79a4e92372d3c1151061f200bc0655 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Mon Aug 4 14:28:02 2008 +0200 libnet_keytab: fix the build with heimdal metze commit c83de77b750837a110611d7023c4cf71d2d0bab1 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Mon Aug 4 13:52:18 2008 +0200 clikrb5: don't use krb5_keyblock_init() when no salt is specified If the caller wants to create a key with no salt we should not use krb5_keyblock_init() (only used when using heimdal) because it does sanity checks on the key length. metze --- Summary of changes: source/libnet/libnet_keytab.c | 44 source/libsmb/clikrb5.c | 65 +++-- 2 files changed, 68 insertions(+), 41 deletions(-) Changeset truncated at 500 lines: diff --git a/source/libnet/libnet_keytab.c b/source/libnet/libnet_keytab.c index 08951c5..836cf6e 100644 --- a/source/libnet/libnet_keytab.c +++ b/source/libnet/libnet_keytab.c @@ -24,6 +24,16 @@ #ifdef HAVE_KRB5 +#ifdef HAVE_KRB5_KEYBLOCK_KEYVALUE /* Heimdal */ +#define KRB5_KEY_TYPE(k) ((k)-keytype) +#define KRB5_KEY_LENGTH(k) ((k)-keyvalue.length) +#define KRB5_KEY_DATA(k) ((k)-keyvalue.data) +#else /* MIT */ +#defineKRB5_KEY_TYPE(k)((k)-enctype) +#define KRB5_KEY_LENGTH(k) ((k)-length) +#define KRB5_KEY_DATA(k) ((k)-contents) +#endif /* HAVE_KRB5_KEYBLOCK_KEYVALUE */ + / / @@ -131,13 +141,24 @@ static krb5_error_code libnet_keytab_remove_entries(krb5_context context, while (krb5_kt_next_entry(context, keytab, kt_entry, cursor) == 0) { + krb5_keyblock *keyp; char *princ_s = NULL; if (kt_entry.vno != kvno !ignore_kvno) { goto cont; } - if (kt_entry.key.enctype != enctype) { +#if !defined(HAVE_KRB5_KEYTAB_ENTRY_KEY) !defined(HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK) +#error krb5_keytab_entry has no key or keyblock member +#endif +#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEY /* MIT */ + keyp = kt_entry.key; +#endif +#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK /* Heimdal */ + keyp = kt_entry.keyblock; +#endif + + if (KRB5_KEY_TYPE(keyp) != enctype) { goto cont; } @@ -157,7 +178,7 @@ static krb5_error_code libnet_keytab_remove_entries(krb5_context context, DEBUG(10, (found entry for principal %s, kvno %d, enctype %d - trying to remove it\n, - princ_s, kt_entry.vno, kt_entry.key.enctype)); + princ_s, kt_entry.vno, KRB5_KEY_TYPE(keyp))); ret = krb5_kt_end_seq_get(context, keytab, cursor); ZERO_STRUCT(cursor); @@ -176,7 +197,7 @@ static krb5_error_code libnet_keytab_remove_entries(krb5_context context, } DEBUG(10, (removed entry for principal %s, kvno %d, enctype %d\n, princ_s, kt_entry.vno, - kt_entry.key.enctype)); + KRB5_KEY_TYPE(keyp))); ret = krb5_kt_start_seq_get(context, keytab, cursor); if (ret) { @@ -335,13 +356,24 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c while (krb5_kt_next_entry(ctx-context, ctx-keytab, kt_entry, cursor) == 0) { + krb5_keyblock *keyp; char *princ_s = NULL; if (kt_entry.vno != kvno) { goto cont; } - if (kt_entry.key.enctype != enctype) { +#if !defined(HAVE_KRB5_KEYTAB_ENTRY_KEY) !defined(HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK) +#error krb5_keytab_entry has no key or keyblock member +#endif +#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEY /* MIT */ + keyp = kt_entry.key; +#endif +#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK /* Heimdal */ + keyp = kt_entry.keyblock; +#endif + + if (KRB5_KEY_TYPE(keyp) != enctype) { goto cont; } @@ -373,8 +405,8 @@ struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *c goto fail; } - entry-password = data_blob_talloc(entry, kt_entry.key.contents, -
[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-31-9-gd29db97
The branch, v3-0-test has been updated via d29db976dcffef772044b1e5246ec6715d6afbbb (commit) from 062bd2592e249cce426369b92c2238a4deb33956 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test - Log - commit d29db976dcffef772044b1e5246ec6715d6afbbb Author: Michael Adam [EMAIL PROTECTED] Date: Mon Aug 4 13:31:26 2008 +0200 net: Fix IPC connections with interactive password prompt. This fixes a regression introduced with 52f916c6. Some net subcommands didn't work when the username, but not the corresponding password was given on the command line. --- Summary of changes: source/utils/net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/utils/net.c b/source/utils/net.c index d8ea462..38ebaf6 100644 --- a/source/utils/net.c +++ b/source/utils/net.c @@ -496,7 +496,7 @@ struct cli_state *net_make_ipc_connection_ex( const char *domain, const char *se server_ip = *ip; } - if (opt_user_name opt_password) { + if (opt_user_name) { nt_status = connect_to_ipc(cli, server_ip, server_name); if (NT_STATUS_IS_OK(nt_status)) { goto connected; -- Samba Shared Repository
Re: svn commit: samba r22638 - in tags: .
On Fri, 2008-08-01 at 06:57 +1000, [EMAIL PROTECTED] wrote: Jelmer, The sourceforge project with TDB and the package in Debian both use 1.0.1 as version number. I figured the support for transactions and the other improvements qualified for a new minor release. I'd vote for 2.0 - tdb has really improved a lot since the sourceforge project split off. I second this. Simo. -- Simo Sorce Samba Team GPL Compliance Officer [EMAIL PROTECTED] Senior Software Engineer at Red Hat Inc. [EMAIL PROTECTED]
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2781-gafe139e
The branch, v3-2-test has been updated via afe139e3272b324df2dec2d4066b351b03792dc8 (commit) from 7359f89ded09a0916a42d696a217d3100aab25d2 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit afe139e3272b324df2dec2d4066b351b03792dc8 Author: Yannick Bergeron [EMAIL PROTECTED] Date: Mon Aug 4 13:21:02 2008 -0400 Compile error on AIX 6.1 --- Summary of changes: source/utils/net_rpc_samsync.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/source/utils/net_rpc_samsync.c b/source/utils/net_rpc_samsync.c index 38852b1..13a7bce 100644 --- a/source/utils/net_rpc_samsync.c +++ b/source/utils/net_rpc_samsync.c @@ -2019,7 +2019,7 @@ static NTSTATUS fetch_database_to_ldif(struct rpc_pipe_client *pipe_hnd, { char *suffix; const char *builtin_sid = S-1-5-32; - char *add_name = NULL, *mod_name = NULL; + char *add_name = NULL, *mod_filename = NULL; const char *add_template = /tmp/add.ldif.XX; const char *mod_template = /tmp/mod.ldif.XX; fstring sid, domainname; @@ -2064,8 +2064,8 @@ static NTSTATUS fetch_database_to_ldif(struct rpc_pipe_client *pipe_hnd, } add_name = talloc_strdup(mem_ctx, add_template); - mod_name = talloc_strdup(mem_ctx, mod_template); - if (!add_name || !mod_name) { + mod_filename = talloc_strdup(mem_ctx, mod_template); + if (!add_name || !mod_filename) { ret = NT_STATUS_NO_MEMORY; goto done; } @@ -2076,8 +2076,8 @@ static NTSTATUS fetch_database_to_ldif(struct rpc_pipe_client *pipe_hnd, ret = NT_STATUS_UNSUCCESSFUL; goto done; } - if (!(mod_file = fdopen(smb_mkstemp(mod_name),w))) { - DEBUG(1, (Could not open %s\n, mod_name)); + if (!(mod_file = fdopen(smb_mkstemp(mod_filename),w))) { + DEBUG(1, (Could not open %s\n, mod_filename)); ret = NT_STATUS_UNSUCCESSFUL; goto done; } @@ -2315,10 +2315,10 @@ static NTSTATUS fetch_database_to_ldif(struct rpc_pipe_client *pipe_hnd, fclose(mod_file); } - if ((mod_name != NULL) - strcmp(mod_name, mod_template) (unlink(mod_name))) { + if ((mod_filename != NULL) + strcmp(mod_filename, mod_template) (unlink(mod_filename))) { DEBUG(1,(unlink(%s) failed, error was (%s)\n, -mod_name, strerror(errno))); +mod_filename, strerror(errno))); } if (ldif_file (ldif_file != stdout)) { -- Samba Shared Repository
Build status as of Tue Aug 5 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-08-04 00:00:29.0 + +++ /home/build/master/cache/broken_results.txt 2008-08-05 00:00:28.0 + @@ -1,22 +1,22 @@ -Build status as of Mon Aug 4 00:00:02 2008 +Build status as of Tue Aug 5 00:00:02 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 33 8 0 +ccache 32 8 0 ctdb 0 0 0 distcc 1 0 0 -ldb 34 33 0 -libreplace 33 11 0 -lorikeet-heimdal 26 21 0 -pidl 18 18 0 +ldb 33 32 0 +libreplace 32 11 0 +lorikeet-heimdal 25 21 0 +pidl 17 18 0 ppp 11 0 0 -rsync34 11 0 +rsync33 11 0 samba-docs 0 0 0 samba-gtk6 6 0 -samba_3_2_test 34 22 0 -samba_4_0_test 31 28 0 -smb-build31 5 0 -talloc 34 6 0 -tdb 34 13 0 +samba_3_2_test 33 20 0 +samba_4_0_test 30 27 0 +smb-build30 5 0 +talloc 33 6 0 +tdb 33 13 0