Re: [Samba] Large file stream extended attribute support
T L wrote: Hi list, Does Samba support large extended attributes? By this I'm referring to attributes that are alternate streams attached to a file. http://msdn.microsoft.com/en-us/library/aa364404%28v=vs.85%29.aspx Seeing a problem when the referenced stream points to large files (sometimes 3M+). Thanks for the help, - T --- I'm guessing it depends on what file system you are using and how big the extended attributes are that it supports. XFS, I think is limited to something like 64k/attr (but don't quote me on that!) of extended attributes; I've no idea if there is a combined limit. Maybe another file system supports larger. There's also a samba option to store extended attributes in a file 'somewhere' ... it's a vfs module... IT says 'experimental''...but the vfs_streams_depot, might work There are also modules 'vss_streams_xattr, to store them in extended attributes, and there's a vfs_xattr_tdb, which can store EA's in a TDB, I don't know if the modules 'stack'...but if the vfs_streams_depot doesn't work, then if you used the vfs_xattr_tdb, and stored all your attr's in a TDB (a database file), then the vfs_streams_xattr to store streams in xattrs ***might*** store the streams in the tdb... But 3M for an alternate data stream is pretty 'huge'compared to normal purposes -- generally to hold things like the file's source (internet or not, so it can give you a message about it possibly being 'unsafe' to open)little bits and pieces. It's not 'normally', AFAIK, used for general purpose data storage...i.e. 3M of data should probably be stored in a normal file, not a 'resource-fork/data stream, as those are more for metadata. Here's what the manpage for xfs-attr says about 'extended attrs': Extended attributes implement the ability for a user to attach name:value pairs to objects within the XFS filesystem. This document describes the attr command, which is mostly compatible with the IRIX command of the same name. It is thus aimed specifically at users of the XFS filesystem - for filesystem independent extended attribute manipulation, consult the getfattr(1) and setfattr(1) docu‐ mentation. Extended attributes can be used to store meta-information about the file. For example character-set=kanji could tell a document browser to use the Kanji character set when displaying that document and thumbnail=... could provide a reduced resolution overview of a high resolution graphic image. In the XFS filesystem, the names can be up to 256 bytes in length, ter‐ minated by the first 0 byte. The intent is that they be printable ASCII (or other character set) names for the attribute. The values can be up to 64KB of arbitrary binary data. (of course you 'could' have 3M of metadata, but it would be unusual...) Do you really have 3M of name=attribute strings? Good luck!... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] difference between '%u' and '%U'?
Try a really long username then you'll see the difference. -David 2011/8/11 Linda Walsh sa...@tlinx.org I realized in looking at my smb.conf, I'm not using these in a consistent manner, and well I just don't understand what the differences are between them. Sure I can read the smb.conf page: %U session username (the username that the client wanted, not necessarily the same as the one they got). vs. %u username of the current service, if any. --- So if I use %U, what name might I get 'instead'? For example, MS, seems to save my profile under 'user.V2'...even though my smb config has: logon path = \\%D\%U\profile logon home = \\%D\%U logon drive = i: But my 'home' is always set to /home/Domain/User, but my profile (under W7), is stored under /home/Domain/User.V2... So when my home dir is mounted, I don't see the 'appdir' of *my* profile, but the appdir of an XP login (which has caused more than a little bit of confusion over the years) Now, I 'hack' around this by mounting 'i:' manually, and setting it to '/home/Domain/User.V2'(**which still feels like a 'hack', but at least my homedir contains my profile and not my XP profile! So how are %u and %U supposed to be different? Should one evaluate to 'User.V2'? Thanks for any 'enlightenment!' -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/**mailman/options/sambahttps://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba Printing api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed
Hello, after upgrading to samba 3.5.6 of Debian Squeeze some printouts will not printed. The same prinjob will printed after a couple of tries. I increased the loglevel and there are only a few messages which showing whtat could be the problem. The printjobs doesn't arrive at cups. [2011/08/10 11:32:12.700665, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H 8C^R ) [2011/08/10 11:32:12.700720, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:12.700756, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. [2011/08/10 11:32:13.901183, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H 8C^R ) [2011/08/10 11:32:13.924149, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:13.924206, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. The printer is a Konica Minolta bizhup 40P, which is installed on client with Point and Print and the newest ppd files from Konica Minolta. What could be the problem? Thank you Claus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] difference between '%u' and '%U'?
Hi On 11 August 2011 06:50, Linda Walsh sa...@tlinx.org wrote: I realized in looking at my smb.conf, I'm not using these in a consistent manner, and well I just don't understand what the differences are between them. Sure I can read the smb.conf page: %U session username (the username that the client wanted, not necessarily the same as the one they got). vs. %u username of the current service, if any. --- I must say those descriptions don't tell me what the difference is between them. The parenthetical note for %U hints that perhaps with an unacceptable username (e.g. very long, like David says) would get mangled in which case I would guess %U is the full username and %u is the mangled one. But that's just a guess. It would be nice if the documentation were more explicit. So if I use %U, what name might I get 'instead'? For example, MS, seems to save my profile under 'user.V2'...even though my smb config has: logon path = \\%D\%U\profile logon home = \\%D\%U logon drive = i: But my 'home' is always set to /home/Domain/User, but my profile (under W7), is stored under /home/Domain/User.V2... So when my home dir is mounted, I don't see the 'appdir' of *my* profile, but the appdir of an XP login (which has caused more than a little bit of confusion over the years) Now, I 'hack' around this by mounting 'i:' manually, and setting it to '/home/Domain/User.V2'(which still feels like a 'hack', but at least my homedir contains my profile and not my XP profile! So how are %u and %U supposed to be different? Should one evaluate to 'User.V2'? I believe the .V2 has nothing to do with %U or %u, but is just something newer versions of Windows (from Vista?) tack on to the profile name because the newer profiles are not compatible with older (e.g. XP) profiles. -- Michael Wood esiot...@gmail.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] windows 7 cannot connect
Upgrading from 3.0x. to 3.4. has come up several times in the past. You may see some earlier post from me on the subject. Make a copy of your current smb.conf, private directory and locks directory. (These directories should include your password database and other key files.) Assuming a single server, no domain trusts, TDB backend, unix users in /etc/passwd, the existing config should be mostly fine with samba 3.4.x. You may need to explicitly create an Administrator account if one does not exist. You may need to explicitly define a local unix nobody account to map as the guest account e.g. useradd smbnobody vi smb.conf . guest account = smb_nobody ... There may have been changes on how password policies function (e.g maximum password age etc.) You may also want to run net groupmap list before and after the upgade to make sure that well know windows groups (e.g. Domain Admins, Domain Users, Users etc) are maintained. On 08/10/2011 06:38 PM, Marc Fromm wrote: The server currently has 3.0.33 on it, but it needs at least 3.4 to work with windows 7 computers. Red hat will not be upgrading samba beyond 3.0.33 for their 32bit RH5 users. Thus I am stuck and cannot use yum and the red hat repos to do the upgrade. On site directed me to this page to download the rpms, but I am not experienced enough with manually updating a package. http://ftp.sernet.de/pub/samba/ . I downloaded all the files listed under the 3.6/rhel/5/i386 directory. Thus I was hoping to find to step by step on how to do the upgrade. -Original Message- From: Chris Weiss [mailto:cwe...@gmail.com] Sent: Wednesday, August 10, 2011 2:17 PM To: Marc Fromm Cc: John Drescher; samba@lists.samba.org Subject: Re: [Samba] windows 7 cannot connect On Wed, Aug 10, 2011 at 3:13 PM, Marc Frommmarc.fr...@wwu.edu wrote: My googling seems to point at upgrading samba to 3.4. Currently installed on my RHEL 5.2 32 bit server is as listed below for smb and samba. If I was running RHEL 64 bit I would be supported by red hat and updating the OS to the latest 5.x would provide this for me. For some reason red hat feels they do not need to support their 32 bit users, which my server is running, and updating the OS does not update certain packages like samba and php. Even though I have paid support with red hat they will not provide support to update the needed packages. Thus, is there a detailed set of procedures on how to manually upgrade samba on a RHEL 5.2 server? I do not want to try this by trial and error and cripple the server. I think RH 5 has a samba 3.x package, or was that only Centos? I don't recall what version it was intro'd -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Change the IP/name of the domain member server
Maybe you should also copy the private directory from the old to the new server. That may include the machine password used by the samba server to connect to the domain. Run testparm -v on both servers. Are both servers samba version of samba? On 08/10/2011 02:37 PM, Piotr Legiecki wrote: Hi I have two servers: old production and new to change the old one. What is the right way to change to brand new server (with new Samba) in a way transparent to end users? Both (old and new one) servers are domain member servers. What I want to achieve is to: leave the old servers name and IP but assign them to new server. I have done almost everything, so the new server has the data, the ACLs are transfered and are ok, but when I shut down the old server, change the hostname of the new one to old one, changed the SID of the new server to the old server (using net getlocalsid/net setlocalsid xxx) and... booom. When I try to access the shares on the new server (from windows) it asks for user name/password just like the new server is not a member of the domain. So is it possible to achieve what I want? I'm not sure if other way, by using net ads leave (on new server) and then join with changed name (of the old server) would work. I'm afraid of loosing the connection to domain controler and all windows workstations would not be able to access the new server after joining. what is wors, also the old one could (?) have problems then. Looks like the trick with the changed SID is not working well. I hope someone would help me with this. Playing with windows is dangerous, some actions are not possible to undo. Regards P. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] 3.6.0: smbclient can't access a NT4 share
Hi, I upgraded to 3.6.0, but since that time, I can't connect to a share on a NT4 Wks host any more: # /usr/bin/smbclient //molek-04/lightcycler -U administrator protocol negotiation failed: NT_STATUS_IO_TIMEOUT I thought it could be something with 'client ntlmv2 auth, what is 'yes' since that version. But even if I switch it to 'no' it's the same. What could be wrong? Regards, Marc -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] 3.6.0: smbclient can't access a NT4 share
On Thu, Aug 11, 2011 at 04:52:58PM +0200, Marc Muehlfeld wrote: Hi, I upgraded to 3.6.0, but since that time, I can't connect to a share on a NT4 Wks host any more: # /usr/bin/smbclient //molek-04/lightcycler -U administrator protocol negotiation failed: NT_STATUS_IO_TIMEOUT I thought it could be something with 'client ntlmv2 auth, what is 'yes' since that version. But even if I switch it to 'no' it's the same. What could be wrong? Please send an strace of smbclient together with a network trace. To do the strace, please issue strace -ttT -o /tmp/smbclient.strace /usr/bin/smbclient //molek-04/lightcycler -U administrator The interesting output will appear in the file /tmp/smbclient.strace. For information on how to create a useful network trace, please take a look at http://wiki.samba.org/index.php/Capture_Packets Thanks, Volker -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Moving Domains - profiles question
Hi, I have an existing WinNT domain and, after some labour, a new Samba3x domain. I created the Samba domain with a different name because the WinNT domain name wasn't appropriate. I have about 40 users. Their accounts have been added to the new domain. I'm almost ready to shift everyone to the new domain but I am a bit concerned about the user's profiles. These are local profiles. I want this domain move to be transparent to the users so I need to copy or move the individual profiles. I've seen this procedure for copying a profile (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_userprofile_copy.mspx?mfr=true) What I'm concerned about is if I move the profile wholesale into the new path, keys in the old user.dat might conflict with the new domain. Does anyone have any experience of this type of migration that can offer any advice? Thanks in advance, Dermot. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Announce] Samba 3.6.0 Available for Download
-Original Message- From: samba-boun...@lists.samba.org [mailto:samba- boun...@lists.samba.org] On Behalf Of Karolin Seeger Sent: August-09-11 08:32 To: samba-annou...@samba.org; sa...@samba.org; samba- techni...@samba.org Subject: [Samba] [Announce] Samba 3.6.0 Available for Download === Forgiveness is the economy of the heart... Forgiveness saves the expense of anger, the cost of hatred, the waste of spirits. Hannah More == Release Announcements = This is the first release of Samba 3.6.0. snip Stupid question: are fixes from the 3.5 branch included in 3.6.x? Specifically, I'm wondering about bug #7460, fix for MS kb2536276... Thanks! \sao This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] multiple levels of group permissions on some folders in a share
trying to figure out the best way to accomplish this, running samba 3.x on a debian system in share level mode (workgroup) have a shared folder for all the staff that they have permssions to by membership of being in the staff group, this share has about 40-50 subfolders. now they have an intern starting and want to restict that intern to 5 of those folders which they'll access from an XP machine I could create a new share for each folder, but if they decide to expand the list of allowed folders, that gets clunky. So I created a new share for the intern and symlinked the 5 subfolders which they can see just fine, but they get a permission denied which makes sense since the intern account is not part of larger group with access to the 5 folders in question. What's the best way to allow them access to the 5 folders without allowing them to get access to the other 45 or so folders? -- Harondel J. Sibble Sibble Computer Consulting Creating Solutions for the small and medium business computer user. h...@pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com Blog: http://www.pdscc.com/blog (604) 739-3709 (voice) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Announce] Samba 3.6.0 Available for Download
On Thu, Aug 11, 2011 at 12:05:38PM -0400, Onotsky, Steve x55328 wrote: -Original Message- From: samba-boun...@lists.samba.org [mailto:samba- boun...@lists.samba.org] On Behalf Of Karolin Seeger Sent: August-09-11 08:32 To: samba-annou...@samba.org; sa...@samba.org; samba- techni...@samba.org Subject: [Samba] [Announce] Samba 3.6.0 Available for Download === Forgiveness is the economy of the heart... Forgiveness saves the expense of anger, the cost of hatred, the waste of spirits. Hannah More == Release Announcements = This is the first release of Samba 3.6.0. snip Stupid question: are fixes from the 3.5 branch included in 3.6.x? Specifically, I'm wondering about bug #7460, fix for MS kb2536276... Yes, 3.6.0 is a superset of 3.5.x in terms of bug fixes. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] how to upgrade to samba 3.6.0
Hi list. I am a complete newbie to samba and not particularly experienced with linux, can someone please tell me how do I upgrade to samba 3.6.0? I have managed to upgrade from the default samba 3.4 that the ubuntu repositories provide to samba 3.5, but obviously would like to run the latest version I am just not sure what repository I need to add etc. I am running a version of ubuntu lucid 64 bit, and so will be upgrading with the apt-get program. I would also really appreciate some help getting my windows 7 64 bit shares to work with samba, I keep getting permission denied error 13 when I try to mount. I sent a message out yesterday asking for help, but it has been ignored. To be honest I have not found my experience with samba easy or enjoyable. I am sure once its all set up it will work fine, its just a question of getting it configured I guess, and I suppose it doesn't help ubuntu provides old versions. If someone could please help I would appreciate it, as I am about ready to give up. Many thanks, Alex. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba Printing api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed
I guess you need to set unix charset = utf8 had a similar issue last week, which was fixed that way. achim~ Am 11.08.2011 11:32, schrieb Claus Rosenberger: Hello, after upgrading to samba 3.5.6 of Debian Squeeze some printouts will not printed. The same prinjob will printed after a couple of tries. I increased the loglevel and there are only a few messages which showing whtat could be the problem. The printjobs doesn't arrive at cups. [2011/08/10 11:32:12.700665, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H8C^R ) [2011/08/10 11:32:12.700720, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:12.700756, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. [2011/08/10 11:32:13.901183, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H8C^R ) [2011/08/10 11:32:13.924149, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:13.924206, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. The printer is a Konica Minolta bizhup 40P, which is installed on client with Point and Print and the newest ppd files from Konica Minolta. What could be the problem? Thank you Claus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba Printing api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed
I already have set unix charset = utf8, so it must be another reason ... Am 11.08.2011 19:56, schrieb Achim Gottinger: I guess you need to set unix charset = utf8 had a similar issue last week, which was fixed that way. achim~ Am 11.08.2011 11:32, schrieb Claus Rosenberger: Hello, after upgrading to samba 3.5.6 of Debian Squeeze some printouts will not printed. The same prinjob will printed after a couple of tries. I increased the loglevel and there are only a few messages which showing whtat could be the problem. The printjobs doesn't arrive at cups. [2011/08/10 11:32:12.700665, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H8C^R ) [2011/08/10 11:32:12.700720, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:12.700756, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. [2011/08/10 11:32:13.901183, 0] lib/charcnv.c:650(convert_string_talloc) Conversion error: Illegal multibyte sequence(E8DE^A^H8C^R ) [2011/08/10 11:32:13.924149, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error) ndr_pull_error(5): Bad character conversion [2011/08/10 11:32:13.924206, 0] rpc_server/srv_pipe.c:2439(api_rpcTNP) api_rpcTNP: \spoolss: SPOOLSS_OPENPRINTEREX failed. The printer is a Konica Minolta bizhup 40P, which is installed on client with Point and Print and the newest ppd files from Konica Minolta. What could be the problem? Thank you Claus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to upgrade to samba 3.6.0
I sent a message out yesterday asking for help, but it has been ignored. Your message was confusing and you did not provide much details. How about a part of the samba log when it fails? I can assure you that windows 7 works with samba 3.3, 3.4 and 3.5. -- John M. Drescher -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba winbindd: Invalid request size received problem
Moshe wrote on 08/06/2011 05:07:00 AM: I am trying to resolve Windows host names (aka Netbios names, aka UNC names) from a Linux box. I have added dns wins to the hosts line at the nsswitch configuration file: /etc/nsswitch.conf, and installed samba 3.2.2 and ran winbindd -D. [...] More info: I am running a Linux system whose kernel version is: 2. 6.12.6-arm1. It's a D-Link DNS-323 NAS box with an ARM processor. I have stopped and restarted winbindd. I gave it a quick test and such a setup works with Samba 3.6. You should try to upgrade to a newer Samba version anyway as 3.2 is quite old. Maybe you can find binary packages that you can install on the box instead of having to compile your own ones. Regards, Christian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to upgrade to samba 3.6.0
Quoting alex wallis (alexwallis...@googlemail.com): Hi list. I am a complete newbie to samba and not particularly experienced with linux, can someone please tell me how do I upgrade to samba 3.6.0? I have managed to upgrade from the default samba 3.4 that the ubuntu repositories provide to samba 3.5, but obviously would like to run the latest version I am just not sure what repository I need to add ^^ why? etc. I am running a version of ubuntu lucid 64 bit, and so will be upgrading with the apt-get program. Well, I have no idea what are plans for Ubuntu (you don't tell what version you're usingsounds like 8.04) but I don't think there will be official upgrades to 3.6 in that version of the distro. So, you're either on your own rolling out your own packages or local buildsor play russian roulette by using a random repository from random people who backport packages:-) Or you can just continue using the quite rock solid version you have right now. My own servers are running 3.5 versions (most often Debian backports or Debian official packages as they're all Debian squeeze) and plans to go to 3.6 are not meant for the immediate future. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] [homes] share not created unless linux user has a home directory in /etc/passwd
When adding a domain user to a samba 3.6 PDC I found that the [homes] share was not created. It turns out there was no home directory specified in /etc/password for this user. Once a linux home directory was added the [homes] share worked, but I would expect this to work anyway since a different path is being used for windows home directories than for the linux users. Is this expected behavior or a bug? [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [homes] share not created unless linux user has a home directory in /etc/passwd
The /home/samba/homes/user directory already exists and does not need to be created. The problem is that samba does not create the \\server\user share because it seems to be checking if there is an entry for the linux home directory in /etc/passwd. Adding a value of /home/user to /etc/passwd causes the \\server\user share to be set up and mapped to /home/samba/homes/user even though the passwd home directory, /home/user, does not exist. On Thu, Aug 11, 2011 at 10:13 PM, David Roid datar...@gmail.com wrote: Hello Mark, You can write a preexec script for homes share to check and make home directory under /home/samba/homes, regardless of the home directory value from /etc/passwd. -David 2011/8/12 Mark Reidenbach mark.a.reidenb...@gmail.com When adding a domain user to a samba 3.6 PDC I found that the [homes] share was not created. It turns out there was no home directory specified in /etc/password for this user. Once a linux home directory was added the [homes] share worked, but I would expect this to work anyway since a different path is being used for windows home directories than for the linux users. Is this expected behavior or a bug? [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] SMB2 weird behavior with samba 3.6 PDC
I tried enabling SMB2 on our network after upgrading to samba 3.6 and experienced the following problems. Commenting out Max Protocol = SMB2 makes the windows7 and vista clients happy. - [homes] Trying to open a html file in notepad fails on Windows7 Pro SP1. Opening it in Firefox (default browser) or Open Office works ok. - [homes] Mozilla Thunderbird insists on downloading all the IMAP headers each time it is launched on Vista Pro SP2. - [public] Copying files from the local computer or a USB key to samba works ok, but Firefox and Chrome are unable to save files to the samba shares. They download files ok (e.g. file.part) but seem to be unable to rename the file when the download is complete. - [public] Installing programs from samba seems to partially work. Installing Itunes 10.4 for 64 bit windows 7 seemed to work but the Apple Software Update program was not installed (uninstalling, copying iTunes64Setup.exe to the desktop, and running the setup program worked). My smb.conf is: [global] domain logons = Yes domain master = Yes preferred master = Yes workgroup = SYNERGY netbios name = SERVER server string = Office Samba Server passdb backend = tdbsam encrypt passwords = yes min protocol = NT1 max protocol = SMB2 server schannel = yes server signing = mandatory lanman auth = No ntlm auth = No lm announce = No client schannel = yes client signing = auto client ntlmv2 auth = Yes client lanman auth = No client plaintext auth = No client use spnego = No client use spnego principal = No directory name cache size = 500 name resolve order = host wins bcast add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = logon.cmd logon drive = z: logon path = logon home = \\server\%U dns proxy = No wins support = Yes time server = Yes ldap ssl = no log file = /var/log/samba/%m.log log level = 3 bind interfaces only = yes interfaces = 192.168.13.150/24 127.0.0.1 smb ports = 445 hosts allow = 127.0.0.1, 192.168.13.0/255.255.255.0, 192.168.2.0/255.255.255.0, 192.168.3.0/255.255.255.0, 192.168.100.0/255.255.255.0, 192.168.1.230 hosts deny = 0.0.0.0/0.0.0.0 # printing setup load printers = Yes printing = cups printcap = cups show add printer wizard = Yes # Some defaults to prevent access problems when upgrading (i.e 3.0.23 - 3.0.24 - 3.0.25) host msdfs = yes msdfs root = yes kernel change notify = yes use sendfile = yes # allow enumeration of winbind users and groups winbind enum users = yes winbind enum groups = yes # give winbind users a real shell (only needed if they have telnet access) template shell = /bin/bash lock directory = /var/lib/samba # Samba 3.6 changes idmap config * : backend = tdb2 idmap config * : range = 1000-2 [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = Yes browseable = No read only = Yes [printers] comment = All Printers path = /usr/local/samba/printers read only = Yes create mask = 0777 guest ok = Yes printable = Yes browseable = Yes [print$] comment = Printer Drivers # this path holds the driver structure after cupsaddsmb command path = /usr/local/samba/windows_drivers guest ok = no browseable = yes read only = yes write list = root [public] comment = Public Files path = /home/samba/public strict allocate = yes read only = No create mask = 0777 directory mask = 0777 vfs objects = readahead [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via a0bf884 Remove outdated section from support/index.html from 730dc84 Add missing p. Thx to Dave ddiss! http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit a0bf8847b977ae8f6314887ffcbf0da51182 Author: Lars Müller l...@samba.org Date: Thu Aug 11 08:15:13 2011 +0200 Remove outdated section from support/index.html Acked-by: John jht I suggest we simply drop that from the page. --- Summary of changes: support/index.html |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/support/index.html b/support/index.html index 6231561..0d7cb91 100644 --- a/support/index.html +++ b/support/index.html @@ -13,9 +13,9 @@ There are a number of areas for you to look when searching for Samba support: pCompany and individual listings claiming to provide Commercial Samba support are listed separately by country. If any company listed is found no longer to be contactable please notify a href=mailto:j...@samba.org;John H Terpstra/a so that the listing can be removed. Thank you./p -pListings for and by companies and individuals who claim to provide commercial support for Samba have been updated as of February 22, 2010./p - -pThe Commercial Support listings will soon be updated into a new presentation format. Forthcoming changes will help those who have particular support needs to rapidly find the most appropriate support provider in their geographic area./p +pUp to date information will help those who have particular support +needs to rapidly find the most appropriate support provider in their +geographic area. Therefore we need your input!/p h3Notice/h3 -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via e964167 Add pointers to news/releases/3.6.0.html from a0bf884 Remove outdated section from support/index.html http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit e964167ecbdcb7b5b71711800b9bf25310be2908 Author: Lars Müller l...@samba.org Date: Thu Aug 11 11:52:41 2011 +0200 Add pointers to news/releases/3.6.0.html --- Summary of changes: generated_news/latest_10_bodies.html| 29 ++--- generated_news/latest_10_headlines.html |4 ++-- generated_news/latest_2_bodies.html | 19 ++- 3 files changed, 22 insertions(+), 30 deletions(-) Changeset truncated at 500 lines: diff --git a/generated_news/latest_10_bodies.html b/generated_news/latest_10_bodies.html index a7e60ec..63b6e22 100644 --- a/generated_news/latest_10_bodies.html +++ b/generated_news/latest_10_bodies.html @@ -1,3 +1,13 @@ + h5a name=3.6.0_highlights09 August 2011/a/h5 + p class=headlineThe highlights of Samba 3.6/p + pThe major new release of the award-winning Free Software is the first +free software SMB2 server, with improved printing and cluster file server +support, simplified identity mapping, greater reliability, and extensively +enhanced library components./p + + pYou like to know more details about the +a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p + h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p pThis is the latest stable release of the Samba 3.6 series./p @@ -133,22 +143,3 @@ now/a. A a href=http://samba.org/samba/ftp/patches/patch-3.5.8-3.5.9.diffs.g Precompiled packages will be made available on a volunteer basis and can be found in the a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages download area/a./p - - h5a name=3.6.0pre326 April 2011/a/h5 - p class=headlineSamba 3.6.0pre3 Available for Download/p - pSamba 3.6.0pre3 is available for download. This is a - preview of the next upgrade production release version of Samba. - It is intended for btesting purposes only/b. Please test and - a href=https://bugzilla.samba.org/;report any bugs that you - find/a. Please read the changes in the - a href=http://samba.org/samba/ftp/pre/WHATSNEW-3-6-0pre3.txt;Release Notes/a - for details on new features and difference in behavior from - previous releases./p - - pThe a href=http://samba.org/samba/ftp/pre/samba-3.6.0pre3.tar.gz;Samba 3.6.0pre3 - source code/a can be downloaded now. The a - href=http://samba.org/samba/ftp/pre/samba-3.6.0pre3.tar.asc;GnuPG - signature is for the emun/emcompressed tarball/a. - Precompiled packages will - be made available on a volunteer basis and can be found in the - a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages download area/a./p diff --git a/generated_news/latest_10_headlines.html b/generated_news/latest_10_headlines.html index 9906b17..4f089cb 100644 --- a/generated_news/latest_10_headlines.html +++ b/generated_news/latest_10_headlines.html @@ -1,4 +1,6 @@ ul + li 09 August 2011 a href=/samba/news/releases/3.6.0.htmlThe highlights of Samba 3.6/a/li + li 09 August 2011 a href=#3.6.0Samba 3.6.0 Available for Download/a/li li 04 August 2011 a href=#3.5.11Samba 3.5.11 Available for Download/a/li @@ -16,6 +18,4 @@ li 7 June 2011 a href=#3.6.0rc2Samba 3.6.0rc2 Available for Download/a/li li 17 May 2011 a href=#3.6.0rc1Samba 3.6.0rc1 Available for Download/a/li - - li 26 April 2011 a href=#3.6.0pre3Samba 3.6.0pre3 Available for Download/a/li /ul diff --git a/generated_news/latest_2_bodies.html b/generated_news/latest_2_bodies.html index d4b2501..ce86ef4 100644 --- a/generated_news/latest_2_bodies.html +++ b/generated_news/latest_2_bodies.html @@ -1,3 +1,13 @@ + h5a name=3.6.0_highlights09 August 2011/a/h5 + p class=headlineThe highlights of Samba 3.6/p + pThe major new release of the award-winning Free Software is the first +free software SMB2 server, with improved printing and cluster file server +support, simplified identity mapping, greater reliability, and extensively +enhanced library components./p + + pYou like to know more details about the +a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p + h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p pThis is the latest stable release of the Samba 3.6 series./p @@ -6,12 +16,3 @@ using GnuPG (ID 6568B7EA). The source code can be a href=http://samba.org/samba/ftp/stable/samba-3.6.0.tar.gz;downloaded now/a. A a href=http://samba.org/samba/ftp/patches/patch-3.5.11-3.6.0.diffs.gz;patch against Samba 3.5.11/a is also available. See a
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via d8b6a15 Make the link a bit longer as suggested by Kai from e964167 Add pointers to news/releases/3.6.0.html http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit d8b6a153a60e20f1209a3581dbfc94bf35c4b794 Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:18:07 2011 +0200 Make the link a bit longer as suggested by Kai --- Summary of changes: generated_news/latest_10_bodies.html |2 +- generated_news/latest_2_bodies.html |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/generated_news/latest_10_bodies.html b/generated_news/latest_10_bodies.html index 63b6e22..dc7b076 100644 --- a/generated_news/latest_10_bodies.html +++ b/generated_news/latest_10_bodies.html @@ -6,7 +6,7 @@ support, simplified identity mapping, greater reliability, and extensively enhanced library components./p pYou like to know more details about the -a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p +a href=/samba/news/releases/3.6.0.htmlhighlights of 3.6/a?/p h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p diff --git a/generated_news/latest_2_bodies.html b/generated_news/latest_2_bodies.html index ce86ef4..ab1cf75 100644 --- a/generated_news/latest_2_bodies.html +++ b/generated_news/latest_2_bodies.html @@ -6,7 +6,7 @@ support, simplified identity mapping, greater reliability, and extensively enhanced library components./p pYou like to know more details about the -a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p +a href=/samba/news/releases/3.6.0.htmlhighlights of 3.6/a?/p h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via dcb03e3 Add h2 at the beginning as suggested by Andreas from d8b6a15 Make the link a bit longer as suggested by Kai http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit dcb03e3fa25c9c3388a9ab291a671f0fc8511b0c Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:25:55 2011 +0200 Add h2 at the beginning as suggested by Andreas --- Summary of changes: support/index.html |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/support/index.html b/support/index.html index 0d7cb91..b85447e 100644 --- a/support/index.html +++ b/support/index.html @@ -2,6 +2,8 @@ titleSamba Commercial Support Providers/title !--#include virtual=header_support.html -- +h2Samba Support/h2 + There are a number of areas for you to look when searching for Samba support: ul lia href=/samba/archives.htmlSamba related mailing lists/a/li -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via b0785dc Remove align=center as suggested by Andreas from dcb03e3 Add h2 at the beginning as suggested by Andreas http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit b0785dc3f0abaa38c4f3a7ef3bc36710d3961424 Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:29:10 2011 +0200 Remove align=center as suggested by Andreas --- Summary of changes: vendors/index.html |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/vendors/index.html b/vendors/index.html index 99a0c40..f500295 100755 --- a/vendors/index.html +++ b/vendors/index.html @@ -2,7 +2,7 @@ titleSamba-based Commercial Products/title !--#include virtual=/samba/header_wide.html -- -H2 align=centerSamba Vendors/H2 +H2Samba Vendors/H2 PQuite a few vendors use Samba as part of a larger product. This gives them a top-quality SMB server with the flexibility to modify the server to -- Samba Website Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 91a4549 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist from f7b820c Adapt tally_histogram to Samba coding conventions http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 91a45490a57e160acd3cbecd58cf2c614cda70be Author: Michael Adam ob...@samba.org Date: Thu Aug 11 10:49:30 2011 +0200 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist Autobuild-User: Michael Adam ob...@samba.org Autobuild-Date: Thu Aug 11 13:26:27 CEST 2011 on sn-devel-104 --- Summary of changes: source3/Makefile.in | 18 +- source3/configure.in |4 source3/m4/aclocal.m4 |6 ++ 3 files changed, 19 insertions(+), 9 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/Makefile.in b/source3/Makefile.in index 4a79f97..41bd45d 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -2054,8 +2054,8 @@ LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ) LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@ LIBTALLOC_SOVER=@LIBTALLOC_SOVER@ LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@ -LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER) -LIBTALLOC_SHARED_TARGET_FULLVER=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_FULLVER) +LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@ +LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@ LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@ LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@ LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h @@ -2145,8 +2145,8 @@ LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ) LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@ LIBTDB_SOVER=@LIBTDB_SOVER@ LIBTDB_FULLVER=@LIBTDB_FULLVER@ -LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER) -LIBTDB_SHARED_TARGET_FULLVER=$(LIBTDB_SHARED_TARGET).$(LIBTDB_FULLVER) +LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@ +LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@ LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@ LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@ LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h @@ -2251,7 +2251,7 @@ LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \ LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@ LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@ LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@ -LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER) +LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@ LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@ LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@ LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h @@ -2331,7 +2331,7 @@ showlibs:: showlibwbclient LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@ LIBADDNS_SOVER=@LIBADDNS_SOVER@ LIBADDNS_FULLVER=@LIBADDNS_FULLVER@ -LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER) +LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@ LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@ LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@ #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@ @@ -2440,7 +2440,7 @@ LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \ LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@ LIBNETAPI_SOVER=@LIBNETAPI_SOVER@ LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@ -LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER) +LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@ LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@ LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@ LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h @@ -2520,7 +2520,7 @@ showlibs:: showlibnetapi LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@ LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@ LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@ -LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER) +LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@ LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@ LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@ LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@ @@ -2608,7 +2608,7 @@ LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@ LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@ LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@ -LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER) +LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@ LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@ LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@ LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@ diff --git
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via d52343a s3-messaging: Do not register to classes we are not going to use. via 9f12575 s3-messaging: Change classification of MSG_SMB_CONF_UPDATED. via b706fd3 s3-messaging: Fix messaging classes. via cb1af61 s3-messaging: Remove obsolete class. from 91a4549 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d52343a9673a55e0e11d35f904808c0007405fa4 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:28:09 2011 -0400 s3-messaging: Do not register to classes we are not going to use. Signed-off-by: Andreas Schneider a...@samba.org Autobuild-User: Andreas Schneider a...@cryptomilk.org Autobuild-Date: Thu Aug 11 17:09:30 CEST 2011 on sn-devel-104 commit 9f12575712fc2d5fb44558562f482cd8459140e8 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:25:56 2011 -0400 s3-messaging: Change classification of MSG_SMB_CONF_UPDATED. smbd is not the only daemon interested in smb.conf changes. Move this message to the GENERAL class so that all interested partied (nmbd, winbindd, spoolssd, etc..) can receive this notification. Signed-off-by: Andreas Schneider a...@samba.org commit b706fd37f6d0e7e66718488d069053687ad0664c Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:10:48 2011 -0400 s3-messaging: Fix messaging classes. This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider a...@samba.org commit cb1af61cb1988931654ad14c787d2493ef629a58 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:36:06 2011 -0400 s3-messaging: Remove obsolete class. The FLAG_MSG_PRINT_NOTIFY class is actually obsolete and never used, as the only message belonging to it is not used either. Signed-off-by: Andreas Schneider a...@samba.org --- Summary of changes: source3/include/messages.h |3 +-- source3/lib/messages.c | 21 +++-- source3/librpc/idl/messaging.idl|9 ++--- source3/nmbd/nmbd.c |4 +++- source3/printing/queue_process.c|4 ++-- source3/printing/spoolssd.c |3 --- source3/rpc_server/epmd.c |4 ++-- source3/rpc_server/spoolss/srv_spoolss_nt.c | 13 - source3/winbindd/winbindd.c |4 +++- 9 files changed, 28 insertions(+), 37 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/messages.h b/source3/include/messages.h index 41d5bb1..c15dadc 100644 --- a/source3/include/messages.h +++ b/source3/include/messages.h @@ -42,12 +42,11 @@ #define FLAG_MSG_GENERAL 0x0001 #define FLAG_MSG_SMBD 0x0002 #define FLAG_MSG_NMBD 0x0004 -#define FLAG_MSG_PRINT_NOTIFY 0x0008 +#define FLAG_MSG_WINBIND 0x0008 #define FLAG_MSG_PRINT_GENERAL 0x0010 /* dbwrap messages 4001-4999 */ #define FLAG_MSG_DBWRAP0x0020 - /* * ctdb gives us 64-bit server ids for messaging_send. This is done to avoid * pid clashes and to be able to register for special messages like all diff --git a/source3/lib/messages.c b/source3/lib/messages.c index d66af39..57a2e22 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -146,20 +146,21 @@ bool message_send_all(struct messaging_context *msg_ctx, struct msg_all msg_all; msg_all.msg_type = msg_type; - if (msg_type 1000) + if (msg_type 0x100) { msg_all.msg_flag = FLAG_MSG_GENERAL; - else if (msg_type 1000 msg_type 2000) + } else if (msg_type 0x100 msg_type 0x200) { msg_all.msg_flag = FLAG_MSG_NMBD; - else if (msg_type 2000 msg_type 2100) - msg_all.msg_flag = FLAG_MSG_PRINT_NOTIFY; - else if (msg_type 2100 msg_type 3000) + } else if (msg_type 0x200 msg_type 0x300) { msg_all.msg_flag = FLAG_MSG_PRINT_GENERAL; - else if (msg_type 3000 msg_type 4000) + } else if (msg_type 0x300 msg_type 0x400) { msg_all.msg_flag = FLAG_MSG_SMBD; - else if (msg_type 4000 msg_type 5000) + } else if (msg_type 0x400 msg_type 0x600) { +
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via ce93b4f tevent: fix documentation for tevent_context_init_byname() via 158b208 tevent: Set FD_CLOEXEC on epoll handle from d52343a s3-messaging: Do not register to classes we are not going to use. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ce93b4f4645b15e204590633a8047c2bfec13154 Author: Sumit Bose sb...@redhat.com Date: Thu Aug 11 12:39:57 2011 +0200 tevent: fix documentation for tevent_context_init_byname() Signed-off-by: Simo Sorce i...@samba.org Autobuild-User: Simo Sorce i...@samba.org Autobuild-Date: Thu Aug 11 21:56:37 CEST 2011 on sn-devel-104 commit 158b208dfd75c04698f9f9196161322b16a020a2 Author: Sumit Bose sb...@redhat.com Date: Thu Aug 11 12:30:48 2011 +0200 tevent: Set FD_CLOEXEC on epoll handle If an application using libtevent starts a new process the epoll file descriptor is leaked to the new process if the event context is not freed explicitly. By setting FD_CLOEXEC this is not needed anymore. Signed-off-by: Simo Sorce i...@samba.org --- Summary of changes: lib/tevent/tevent.h |4 ++-- lib/tevent/tevent_epoll.c| 19 +-- lib/tevent/tevent_standard.c | 17 + lib/tevent/tevent_util.c | 17 + lib/tevent/tevent_util.h |1 + 5 files changed, 54 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 6e3ed76..c38f7c3 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -111,7 +111,7 @@ typedef void (*tevent_signal_handler_t)(struct tevent_context *ev, struct tevent_context *tevent_context_init(TALLOC_CTX *mem_ctx); /** - * @brief Create a event_context structure and name it. + * @brief Create a event_context structure and select a specific backend. * * This must be the first events call, and all subsequent calls pass this * event_context as the first element. Event handlers also receive this as @@ -119,7 +119,7 @@ struct tevent_context *tevent_context_init(TALLOC_CTX *mem_ctx); * * @param[in] mem_ctx The memory context to use. * - * @param[in] name The name for the tevent context. + * @param[in] name The name of the backend to use. * * @return An allocated tevent context, NULL on error. */ diff --git a/lib/tevent/tevent_epoll.c b/lib/tevent/tevent_epoll.c index 3ab8283..33e1d3f 100644 --- a/lib/tevent/tevent_epoll.c +++ b/lib/tevent/tevent_epoll.c @@ -78,11 +78,20 @@ static int epoll_ctx_destructor(struct epoll_event_context *epoll_ev) static int epoll_init_ctx(struct epoll_event_context *epoll_ev) { epoll_ev-epoll_fd = epoll_create(64); - epoll_ev-pid = getpid(); - talloc_set_destructor(epoll_ev, epoll_ctx_destructor); if (epoll_ev-epoll_fd == -1) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_FATAL, +Failed to create epoll handle.\n); return -1; } + + if (!ev_set_close_on_exec(epoll_ev-epoll_fd)) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + + epoll_ev-pid = getpid(); + talloc_set_destructor(epoll_ev, epoll_ctx_destructor); + return 0; } @@ -108,6 +117,12 @@ static void epoll_check_reopen(struct epoll_event_context *epoll_ev) Failed to recreate epoll handle after fork\n); return; } + + if (!ev_set_close_on_exec(epoll_ev-epoll_fd)) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + epoll_ev-pid = getpid(); for (fde=epoll_ev-ev-fd_events;fde;fde=fde-next) { epoll_add_event(epoll_ev, fde); diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 35f7ded..e2ca44f 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -100,6 +100,17 @@ static int epoll_ctx_destructor(struct std_event_context *std_ev) static void epoll_init_ctx(struct std_event_context *std_ev) { std_ev-epoll_fd = epoll_create(64); + if (std_ev-epoll_fd == -1) { + tevent_debug(std_ev-ev, TEVENT_DEBUG_FATAL, +Failed to create epoll handle.\n); + return; + } + + if (!ev_set_close_on_exec(std_ev-epoll_fd)) { + tevent_debug(std_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + std_ev-pid = getpid();
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 4aba775 tevent: don't force the nesting flag to false in the destructor via f444eeb s4-dbcheck: offer to fix dsServiceName to be in GUID form via fb490d8 s4-dsdb: don't cache the NTDS settings DN via bb6214d s4-join: make dsServiceName a GUID in @ROOTDSE on join via d79ee18 s4-provision: create dsServiceName in @ROOTDSE in GUID form via ccba16c s4-dsdb: expand dsServiceName from GUID form at runtime via f7902d7 s4-dsdb: remove the naming_fsmo and pdc_fsmo modules via f9d10a3 s4-dsdb: calculate validFSMOs at runtime instead of pre-computing from ce93b4f tevent: fix documentation for tevent_context_init_byname() http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 4aba7752195ffda980abf4a98b870d113615f662 Author: Andrew Tridgell tri...@samba.org Date: Fri Aug 12 11:56:28 2011 +1000 tevent: don't force the nesting flag to false in the destructor the tevent destructor is called in tevent_re_initialise(), to reset the event context back to its original state for creating child processes. We need the nesting flag to stay the same Pair-Programmed-With: Andrew Bartlett abart...@samba.org Autobuild-User: Andrew Tridgell tri...@samba.org Autobuild-Date: Fri Aug 12 05:18:25 CEST 2011 on sn-devel-104 commit f444eeb51c358a8062ba6e00101f88b753d69fc7 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:59:11 2011 +1000 s4-dbcheck: offer to fix dsServiceName to be in GUID form this fixes the dsServiceName so it can handle server renames Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit fb490d88c1b43ae95ef8be7c32be4f3562eba4e2 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:29:24 2011 +1000 s4-dsdb: don't cache the NTDS settings DN this DN can change due to a server rename, so we cannot cache it. It is set by provision, but not anywhere else. This seems to not have a large performance impact Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit bb6214d63440d52227ea94d1788b6875b4d4742c Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:05:11 2011 +1000 s4-join: make dsServiceName a GUID in @ROOTDSE on join when joining another domain as a DC we should setup our dsServiceName in @ROOTDSE to be a GUID so we can cope with later server renames Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit d79ee18f988d1f43eb1f76752e749385b9b9c251 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:45:43 2011 +1000 s4-provision: create dsServiceName in @ROOTDSE in GUID form this allows for handling of server renames as the GUID doesn't change Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit ccba16c4b8de285f55683011c1527af3f6f48460 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:44:32 2011 +1000 s4-dsdb: expand dsServiceName from GUID form at runtime this allows dsServiceName to be stored as an extended DN or GUID form in @ROOTDSE, and its string form will be found at runtime. Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit f7902d766a0866d92e728449377a406f8e202b2a Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:43:22 2011 +1000 s4-dsdb: remove the naming_fsmo and pdc_fsmo modules these are not needed now that the rootdse modules calculates the validFSMOs attribute at runtime Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit f9d10a304d0197cc1ef5b14ab523d6462040088a Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:40:53 2011 +1000 s4-dsdb: calculate validFSMOs at runtime instead of pre-computing this changes the rootdse to compute the validFSMOs attribute at runtime by checking the fSMORoleOwner attribute on the appropriate DN. This avoids the need for the pdc_fsmo and naming_fsmo modules. Pair-Programmed-With: Andrew Bartlett abart...@samba.org --- Summary of changes: lib/tevent/tevent.c| 10 +- source4/dsdb/common/util.c | 17 +-- source4/dsdb/samdb/ldb_modules/naming_fsmo.c | 108 source4/dsdb/samdb/ldb_modules/pdc_fsmo.c | 113 source4/dsdb/samdb/ldb_modules/rootdse.c | 135 ++- source4/dsdb/samdb/ldb_modules/samba_dsdb.c| 12 -- source4/dsdb/samdb/ldb_modules/wscript_build | 20 --- source4/dsdb/samdb/samdb.h | 10 -- source4/scripting/python/samba/dbchecker.py| 43 ++ source4/scripting/python/samba/join.py |8 +-