Re: [Samba] WINS doesn't work on some ip addresses in multihome setup
Am 27.06.2012 18:22, schrieb Harry Jede: On 18:06:25 wrote Sebastian Suchanek: I guess that the problem has something to do with the not adding non-broadcast interface tun0 debug message (tun0 is created by an OpenVPN daemon and set to 10.8.0.0/24), but how could this be avoided? check with netstat -uan |egrep '137|138' where nmbd is listening. tux:~# netstat -uan |egrep '137|138' udp0 0 a.b.c.255:137 0.0.0.0:* udp0 0 a.b.c.233:137 0.0.0.0:* udp0 0 0.0.0.0:137 0.0.0.0:* udp0 0 a.b.c.255:138 0.0.0.0:* udp0 0 a.b.c.233:138 0.0.0.0:* udp0 0 0.0.0.0:138 0.0.0.0:* tux:~# If nmbd is not attached to your tun0 interface, you must turn of interfaces in smbd.conf, Turning the bind-to-interfaces option off is my current work-around, but I'd rather have another solution. or use another vpn solution which supports tap interfaces. I would have preferred bridging instead of routing in the first place (and OpenVPN also supports this), but I have to plan for more VPN clients dialling in then I have free IP addresses left in the subnet in question. Best regards, Sebastian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4: fileserver on a box other than a DC
On 27/06/12 21:16, Chris Weiss wrote: dfs can do a sort of share cluster too, where multiple server have the same share and the clients can connect to any one of the servers using the same name. My understanding is that samba supports this mode, but you have to do the file share sync and locking some other way. gfs or ocfs on top of drdb are possible options for this Hi Just trying to get all the options before we go much further. We already have 2 replicating DC's with the file server on DC1. Would it be possible to use drdb here by putting the fileserver data on a separate partition and syncing that to DC2? Or how about a third box drbd'd to DC1 mirroring the data partition and setting up that as a fileserver too? Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4: fileserver on a box other than a DC
It would do with drbd in multi master mode. But what about, you need a third and so on DC then you should choose glusterfs. DRBD only can do 2 bricks. Gluster as you like. Greetings Daniel --- EDV Daniel Müller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 Tübingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: muel...@tropenklinik.de Internet: www.tropenklinik.de --- -Ursprüngliche Nachricht- Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im Auftrag von steve Gesendet: Donnerstag, 28. Juni 2012 08:51 An: Chris Weiss Cc: samba@lists.samba.org Betreff: Re: [Samba] Samba4: fileserver on a box other than a DC On 27/06/12 21:16, Chris Weiss wrote: dfs can do a sort of share cluster too, where multiple server have the same share and the clients can connect to any one of the servers using the same name. My understanding is that samba supports this mode, but you have to do the file share sync and locking some other way. gfs or ocfs on top of drdb are possible options for this Hi Just trying to get all the options before we go much further. We already have 2 replicating DC's with the file server on DC1. Would it be possible to use drdb here by putting the fileserver data on a separate partition and syncing that to DC2? Or how about a third box drbd'd to DC1 mirroring the data partition and setting up that as a fileserver too? Cheers, Steve -- 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] Samba 3.6.6 crash ?!
Hi, I just wanted to test ACL with our file system (a GFS). So I've installed a test machine running Novell SLES 11SP1. After installing the GFS software and creating a share I've installed the latest SLES rpm's from SERNET (3.6.6) from http://ftp.sernet.de/pub/samba/3.6/sles/11/x86_64/ Joing the domain was no problem. I setup one single share and tried to start smb and get the following dump: smbd[5853]: [2012/06/28 11:40:54.136429, 0] lib/fault.c:47(fault_report) smbd[5853]: === smbd[5853]: [2012/06/28 11:40:54.136640, 0] lib/fault.c:48(fault_report) smbd[5853]: INTERNAL ERROR: Signal 6 in pid 5853 (3.6.6) smbd[5853]: Please read the Trouble-Shooting section of the Samba3-HOWTO smbd[5853]: [2012/06/28 11:40:54.136700, 0] lib/fault.c:50(fault_report) smbd[5853]: smbd[5853]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf smbd[5853]: [2012/06/28 11:40:54.136754, 0] lib/fault.c:51(fault_report) smbd[5853]: === smbd[5853]: [2012/06/28 11:40:54.136792, 0] lib/util.c:1117(smb_panic) smbd[5853]: PANIC (pid 5853): internal error smbd[5853]: [2012/06/28 11:40:54.139445, 0] lib/util.c:1221(log_stack_trace) smbd[5853]: BACKTRACE: 20 stack frames: smbd[5853]:#0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f8b071ebe75] smbd[5853]:#1 /usr/sbin/smbd(smb_panic+0x55) [0x7f8b071ebf78] smbd[5853]:#2 /usr/sbin/smbd(iface_count+0) [0x7f8b071dd640] smbd[5853]:#3 /lib64/libc.so.6(+0x329e0) [0x7f8b03c399e0] smbd[5853]:#4 /lib64/libc.so.6(gsignal+0x35) [0x7f8b03c39945] smbd[5853]:#5 /lib64/libc.so.6(abort+0x181) [0x7f8b03c3af21] smbd[5853]:#6 /usr/lib64/libtalloc.so.1(+0x1c2f) [0x7f8b0297ec2f] smbd[5853]:#7 /usr/lib64/libtalloc.so.1(talloc_free+0x232) [0x7f8b02983c02] smbd[5853]:#8 /usr/lib64/libwbclient.so.0(wbcSidToGid+0xe0) [0x7f8b0417fbf0] smbd[5853]:#9 /usr/sbin/smbd(winbind_sid_to_gid+0x5f) [0x7f8b071b250c] smbd[5853]:#10 /usr/sbin/smbd(sid_to_gid+0x115) [0x7f8b071927bf] smbd[5853]:#11 /usr/sbin/smbd(+0x4667e6) [0x7f8b0723e7e6] smbd[5853]:#12 /usr/sbin/smbd(create_local_nt_token+0x19f) [0x7f8b0723ed2c] smbd[5853]:#13 /usr/sbin/smbd(create_token_from_username+0x9c0) [0x7f8b0723f717] smbd[5853]:#14 /usr/sbin/smbd(create_local_token+0x59) [0x7f8b0723cfc5] smbd[5853]:#15 /usr/sbin/smbd(+0x46554b) [0x7f8b0723d54b] smbd[5853]:#16 /usr/sbin/smbd(init_system_info+0x53) [0x7f8b0723d640] smbd[5853]:#17 /usr/sbin/smbd(main+0xbbd) [0x7f8b0745e98d] smbd[5853]:#18 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f8b03c25bc6] smbd[5853]:#19 /usr/sbin/smbd(+0x108109) [0x7f8b06ee0109] smbd[5853]: [2012/06/28 11:40:54.240409, 0] lib/fault.c:372(dump_core) smbd[5853]: dumping core in /var/log/samba/cores/smbd Any idea what's wrong ? -- Thanks and bye, Peer _ Max-Planck-Institut fuer Biogeochemie Dr. Peer-Joachim Koch Hans-Knöll Str.10Telefon: ++49 3641 57-6705 D-07745 Jena Telefax: ++49 3641 57-7705 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] permission problems (ACL)
Hi, i got a problem with a samba share... let's say i have 2 folders. the first folder is only accessible by 1 group (sharepriv), which has r/w access. getfacl output: Code: # file: complete/ # owner: elfish # group: elfish user::rwx group::rwx group:sharepriv:rwx mask::rwx other::--- default:user::rwx default:group::rwx default:group:sharepriv:rwx default:mask::rwx default:other::--- the 2nd folder is accessible by 2 groups and 1 user. 1 group has rw access (same group as on the first folder) the 2nd group only has read permissions getfacl output Code:# file: Sonstiges/ # owner: elfish # group: elfish user::rwx user:shareguest:r-x group::rwx group:sharepub:r-x group:sharepriv:rwx mask::rwx other::--- default:user::rwx default:user:shareguest:r-x default:group::rwx default:group:sharepub:r-x default:group:sharepriv:rwx default:mask::rwx default:other::--- if i move a file from the first folder to the second folder by cutting it out in windows (the share is mounted there) and inserting it in the 2nd folder the 2nd group (sharepub) has no access to it. So basicly the first folder keeps it's permissions. i thought that the parent dir permissions are set to sub folders/files. oh and i enabled honor existing acls and enable permission inheritence, which i think should be correct. anyone got an idea whats wrong? regards -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] FYI: Samba 3.6.6 crash -solved
Hi, I could solve the problem performing the following steps: unintstall all samba rpm's. Download the same rpm using wget Install the rpm using rpm -Uhf ... I user zypper in samba3.. before (pointing to the same source). However it's working now. Bye, Peer Am 28.06.2012 11:47, schrieb Dr.Peer-Joachim Koch: Hi, I just wanted to test ACL with our file system (a GFS). So I've installed a test machine running Novell SLES 11SP1. After installing the GFS software and creating a share I've installed the latest SLES rpm's from SERNET (3.6.6) from http://ftp.sernet.de/pub/samba/3.6/sles/11/x86_64/ Joing the domain was no problem. I setup one single share and tried to start smb and get the following dump: smbd[5853]: [2012/06/28 11:40:54.136429, 0] lib/fault.c:47(fault_report) smbd[5853]: === smbd[5853]: [2012/06/28 11:40:54.136640, 0] lib/fault.c:48(fault_report) smbd[5853]: INTERNAL ERROR: Signal 6 in pid 5853 (3.6.6) smbd[5853]: Please read the Trouble-Shooting section of the Samba3-HOWTO smbd[5853]: [2012/06/28 11:40:54.136700, 0] lib/fault.c:50(fault_report) smbd[5853]: smbd[5853]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf smbd[5853]: [2012/06/28 11:40:54.136754, 0] lib/fault.c:51(fault_report) smbd[5853]: === smbd[5853]: [2012/06/28 11:40:54.136792, 0] lib/util.c:1117(smb_panic) smbd[5853]: PANIC (pid 5853): internal error smbd[5853]: [2012/06/28 11:40:54.139445, 0] lib/util.c:1221(log_stack_trace) smbd[5853]: BACKTRACE: 20 stack frames: smbd[5853]: #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f8b071ebe75] smbd[5853]: #1 /usr/sbin/smbd(smb_panic+0x55) [0x7f8b071ebf78] smbd[5853]: #2 /usr/sbin/smbd(iface_count+0) [0x7f8b071dd640] smbd[5853]: #3 /lib64/libc.so.6(+0x329e0) [0x7f8b03c399e0] smbd[5853]: #4 /lib64/libc.so.6(gsignal+0x35) [0x7f8b03c39945] smbd[5853]: #5 /lib64/libc.so.6(abort+0x181) [0x7f8b03c3af21] smbd[5853]: #6 /usr/lib64/libtalloc.so.1(+0x1c2f) [0x7f8b0297ec2f] smbd[5853]: #7 /usr/lib64/libtalloc.so.1(talloc_free+0x232) [0x7f8b02983c02] smbd[5853]: #8 /usr/lib64/libwbclient.so.0(wbcSidToGid+0xe0) [0x7f8b0417fbf0] smbd[5853]: #9 /usr/sbin/smbd(winbind_sid_to_gid+0x5f) [0x7f8b071b250c] smbd[5853]: #10 /usr/sbin/smbd(sid_to_gid+0x115) [0x7f8b071927bf] smbd[5853]: #11 /usr/sbin/smbd(+0x4667e6) [0x7f8b0723e7e6] smbd[5853]: #12 /usr/sbin/smbd(create_local_nt_token+0x19f) [0x7f8b0723ed2c] smbd[5853]: #13 /usr/sbin/smbd(create_token_from_username+0x9c0) [0x7f8b0723f717] smbd[5853]: #14 /usr/sbin/smbd(create_local_token+0x59) [0x7f8b0723cfc5] smbd[5853]: #15 /usr/sbin/smbd(+0x46554b) [0x7f8b0723d54b] smbd[5853]: #16 /usr/sbin/smbd(init_system_info+0x53) [0x7f8b0723d640] smbd[5853]: #17 /usr/sbin/smbd(main+0xbbd) [0x7f8b0745e98d] smbd[5853]: #18 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f8b03c25bc6] smbd[5853]: #19 /usr/sbin/smbd(+0x108109) [0x7f8b06ee0109] smbd[5853]: [2012/06/28 11:40:54.240409, 0] lib/fault.c:372(dump_core) smbd[5853]: dumping core in /var/log/samba/cores/smbd Any idea what's wrong ? -- Mit freundlichem Gruß Peer-Joachim Koch _ Max-Planck-Institut fuer Biogeochemie Dr. Peer-Joachim Koch Hans-Knöll Str.10Telefon: ++49 3641 57-6705 D-07745 Jena Telefax: ++49 3641 57-7705 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] permission problems (ACL)
if i move a file from the first folder to the second folder by cutting it out in windows (the share is mounted there) and inserting it in the 2nd folder the 2nd group (sharepub) has no access to it. So basicly the first folder keeps it's permissions. i thought that the parent dir permissions are set to sub folders/files. oh and i enabled honor existing acls and enable permission inheritence, which i think should be correct. anyone got an idea whats wrong? Nothing is wrong. This is the default behavior of Windows itself. When you move a file, it keeps its permissions, as it should. When you copy a file, it acquires the permissions of the destination folder. With Windows 7 there has been some modification to this default behavior. Please consult the Microsoft technical pages about this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] permission problems (ACL)
Good to know that it's a OS problem and not a samba problem. I finnally know what to look for. It is not a problem, it's a feature! If you think about it carefully, you will see that this is a correct way to behave. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] speed of samba vs Windows
Is there any reason to believe that a samba server would be slower when serving up roaming profiles than a real Windows server? I know roaming profiles are slow by nature and that there are things you can do to help like configuring ffolder redirection. But all else being equal, how would a samba server compare to a Windows server when it comes to speed specifically with respect to roaming profiles? Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
On Thu, 28 Jun 2012, Todor Fassl wrote: Is there any reason to believe that a samba server would be slower when serving up roaming profiles than a real Windows server? In my experience, Samba is much faster than Windows on comparable hardware. From 3 to 5 times faster, depending on function. Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. Indeed he doesn't know anything about Samba; he's wrong. Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
-Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Steve Thompson Sent: Thursday, June 28, 2012 11:07 AM To: Todor Fassl Cc: samba@lists.samba.org Subject: Re: [Samba] speed of samba vs Windows On Thu, 28 Jun 2012, Todor Fassl wrote: Is there any reason to believe that a samba server would be slower when serving up roaming profiles than a real Windows server? In my experience, Samba is much faster than Windows on comparable hardware. From 3 to 5 times faster, depending on function. Samba is also far more versatile and configurable than Windows Server. For instance, built into Samba it's possible to configure a Recycle Bin into each and every share. This is accomplished through adding a single line to the share. To do that on Windows, it requires a registry hack, on each workstation. Maybe that can be automated, but it doesn't have anything to do with the server, it's all done on the workstation, forget to implement the registry hack, then you forget about having a Recycle Bin on that share. I can't tell you how many times that Samba configuration has saved a piece of critical data. Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. Indeed he doesn't know anything about Samba; he's wrong. Steve I concur. -Rob -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
On Thursday, 28.06.2012 at 11:07 -0400, Steve Thompson wrote: On Thu, 28 Jun 2012, Todor Fassl wrote: Is there any reason to believe that a samba server would be slower when serving up roaming profiles than a real Windows server? In my experience, Samba is much faster than Windows on comparable hardware. From 3 to 5 times faster, depending on function. Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. However native speed won't be important if, under Samba, a full roaming profile is downloaded on each login whereas under Windows an rsync-like action takes place to only download minimal changes. I don't know whether that's the case or not, whether it's configurable behaviour under either Samba or Windows Server, but it's certainly an interesting point. Dave. -- Dave Ewart da...@ceu.ox.ac.uk Computing Manager, Cancer Epidemiology Unit University of Oxford / Cancer Research UK N 51.7516, W 1.2152 signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
On Thu, Jun 28, 2012 at 10:19 AM, Dave Ewart da...@ceu.ox.ac.uk wrote: On Thursday, 28.06.2012 at 11:07 -0400, Steve Thompson wrote: On Thu, 28 Jun 2012, Todor Fassl wrote: Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. However native speed won't be important if, under Samba, a full roaming profile is downloaded on each login whereas under Windows an rsync-like action takes place to only download minimal changes. I don't know whether that's the case or not, whether it's configurable behaviour under either Samba or Windows Server, but it's certainly an interesting point. is it possible that unix file timestamps having a greater precision than ntfs is causing windows to see a change? I know rsync has an option to combat this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] CTDB and IPv6
I am attempting to enable IPv6 on our CTDB setup. I have placed the IPv6 address in the public_addresses file with the correct prefix. The addresses never come up and I recieve these messages in the log 2012/06/28 10:54:43.313227 [ 1820]: Async operation failed with ret=0 res=1 opcode=0 2012/06/28 10:54:43.313918 [ 1820]: Async operation failed with ret=0 res=1 opcode=0 2012/06/28 10:54:43.313929 [ 1820]: Async wait failed - fail_count=2 2012/06/28 10:54:43.313934 [ 1820]: server/ctdb_takeover.c:1517 Async control CTDB_CONTROL_TAKEOVER_IP failed 2012/06/28 10:54:43.313941 [ 1820]: server/ctdb_recoverd.c:1588 Unable to setup public takeover addresses 2012/06/28 10:54:44.316099 [ 1820]: Taking out recovery lock from recovery daemon 2012/06/28 10:54:44.316129 [ 1820]: Take the recovery lock 2012/06/28 10:54:44.317788 [ 1820]: Recovery lock taken successfully 2012/06/28 10:54:44.317839 [ 1820]: Recovery lock taken successfully by recovery daemon I am running version 1.0.114.3-3.el6 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
On Jun 28, 2012, at 7:02 AM, Todor Fassl wrote: Is there any reason to believe that a samba server would be slower when serving up roaming profiles than a real Windows server? I know roaming profiles are slow by nature and that there are things you can do to help like configuring ffolder redirection. But all else being equal, how would a samba server compare to a Windows server when it comes to speed specifically with respect to roaming profiles? Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. True roaming profiles upload and download the entire profile at every logon, logoff. Doesn't matter what server is on the other end. If folder redirectoin is not implemented the profile grows over time and this copying of the entire profile will slow down logons over time -- whether you're using a Windows server or a Samba server. If one sets GroupPolicy to only create local profiles for domain users it's possible that the local Windows box will do an rsync-ish changes only, though I've not tested this. It's also possible to implement local profiles with folder redirection and no roaming component which will never copy the NTUSER.DAT and other files at logon/logoff. It's important to remember that the server is not doing any of the roaming profile work other than informing the client of the user's profile folder location (though in the case of Active Directory -- delivering additional GroupPolicy behaviors). The client's copy of Windows is doing the roaming work and it's behavior is determined by local Group Policy settings. The only way to really control the amount of data going up and down for true roaming profiles is implementing folder redirection where at least the AppData folder is redirected to a location on the server outside of the roaming profile store -- typically to a folder in the user's home directory. The Samba HowTo has some very good basic info on how to implement folder redirection. Works with Windows XP and Windows 7. You can also search this list for folder redirection using Samba and Windows 7. http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/ProfileMgmt.html -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
is it possible that unix file timestamps having a greater precision than ntfs is causing windows to see a change? I know rsync has an option to combat this. -- Well, I have no reason to believe that our Windows guy is correct and that Windows downloads only changed files and samba downloads the whole profile. I'm guessing he is basing that on how slow logins are. I can guarantee that he hasn't actually checked it out. He either thought it up himself or he heard it somewhere. Does anyone know if Windows does download only files that have changed? Something just occured to me... Well, maybe this is a bug in samba but probably not. When you join a machine to a domain where a time server is configured, it doesn't automatically configure the time servers on the client machine. On our network, the file server is the PDC. We have redundant BDCs which are configured as time servers in samba and are also ntp servers for the linux machines. If I boot a linux machine, I can use ntpq -p to make sure that the machine is getting data from our ntp servers. But if I go into the Windows control panel and look at Date and Time, the server listed there is time.windows.com. [Which, as it occurs to me, is also bogus in that what the heck is windows.com? If its Microsoft, why isn't the default time server time.microsoft.com?] Anyway, it seems to me that if you join a machine to a domain with a time server configured, it should show up in Date and Time - Internet Time - Server. But our BDCs aren't even listed there. Gawd, I hate Windows. I don't hate Microsoft or Bill Gates. He seems like a nice enough guy to me. And I don't blame him for getting to be a bzillionaire even though his software kinda sucks. But, still, I hate Windows. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
From: Cain, Marc marc.c...@seattlecolleges.edu e user's profile folder location (though in the case of Active Directory -- delivering additional GroupPolicy behaviors). The client's copy of Windows is doing the roaming work and it's behavior is determined by local Group Policy settings. Oh, that's a really good point. Even if the Windows client is doing some kind of rsync-like download, it would be initiated by the client, not the server. The client is *downloading* the files. The server isn't pushing them out, Here, take all these files whether you like it or not. The list of files to download would be calculated on the client. I suppose you could argue that if the Windows server supports an rsync-like protocol and samba does not, it would make sense. But I don't think something like that could get past the samba developers. The only way to really control the amount of data going up and down for true roaming profiles is implementing folder redirection [...] Right. I mentioned that in my original message. That's the point. I am pushing the idea that our problem is not using folder redirection and the Windows guy is pushing the idea that its samba itself. So the boss is like, Lets just dump samba and roaming profiles, etc. Its all this work just to have files backed up. Lets just give everybody a local profile and if they lose everything in their My Documents folder, too bad. ]Sorry, I didn't relize this list was set to reply to sender. Mark, you are going to get 2 copies of this message.] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
That's the point. I am pushing the idea that our problem is not using folder redirection and the Windows guy is pushing the idea that its samba itself. Spot-on. Your windows guy just needs to implement a few AD registry tweaks (see below etc) to get things working sweetly, and folder redirection (to MS-Server or samba/linux) is considered to be best-practice in every microsoft house I've ever come across. No-one uses roaming profiles without it, unless all their workstations are wired with 10GB ethernet to the most over-spec'd server I've ever seen, or their users don't actually roam more than once every six months... On 28 June 2012 20:09, Ben Metcalfe bwmetca...@gmail.com wrote: Here's a decent summary of roaming profiles on the latest windows iterations. http://technet.microsoft.com/en-us/library/hh848267 Branche cache may also be relevant: http://technet.microsoft.com/en-us/library/hh831696 WIthout the original windows admin here to query its difficult to be sure, but he might well have been talking about having offline files enabled on redirected folders attached to roaming profiles, which will display an rsync-like behaviour when reconnected. Offline files works on my illumos-based ZFS/samba NAS (the last time I checked) indistinguishably from the way it does against microsoft smb shares though, so I can't see any reason why it shouldn't work on linux samba... or maybe I'm not testing it rigourously. http://windowsteamblog.com/windows/b/springboard/archive/2010/04/19/understanding-user-state-virtualization-improvements-in-windows-7.aspx Here's an old (but still applicable?) HOWTO for enabling Vista's specific offline files efficiently against samba/linux: http://blogs.technet.com/b/filecab/archive/2007/03/16/using-offline-files-with-samba-emc-servers-nas-devices.aspx YMMV on Windows 7 and 8. On 28 June 2012 16:26, Chris Weiss cwe...@gmail.com wrote: On Thu, Jun 28, 2012 at 10:19 AM, Dave Ewart da...@ceu.ox.ac.uk wrote: On Thursday, 28.06.2012 at 11:07 -0400, Steve Thompson wrote: On Thu, 28 Jun 2012, Todor Fassl wrote: Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. However native speed won't be important if, under Samba, a full roaming profile is downloaded on each login whereas under Windows an rsync-like action takes place to only download minimal changes. I don't know whether that's the case or not, whether it's configurable behaviour under either Samba or Windows Server, but it's certainly an interesting point. is it possible that unix file timestamps having a greater precision than ntfs is causing windows to see a change? I know rsync has an option to combat this. -- 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
Re: [Samba] speed of samba vs Windows
...and apologies for doing the reply to sender/reply to list thing as well. :) On 28 June 2012 20:15, Ben Metcalfe bwmetca...@gmail.com wrote: That's the point. I am pushing the idea that our problem is not using folder redirection and the Windows guy is pushing the idea that its samba itself. Spot-on. Your windows guy just needs to implement a few AD registry tweaks (see below etc) to get things working sweetly, and folder redirection (to MS-Server or samba/linux) is considered to be best-practice in every microsoft house I've ever come across. No-one uses roaming profiles without it, unless all their workstations are wired with 10GB ethernet to the most over-spec'd server I've ever seen, or their users don't actually roam more than once every six months... On 28 June 2012 20:09, Ben Metcalfe bwmetca...@gmail.com wrote: Here's a decent summary of roaming profiles on the latest windows iterations. http://technet.microsoft.com/en-us/library/hh848267 Branche cache may also be relevant: http://technet.microsoft.com/en-us/library/hh831696 WIthout the original windows admin here to query its difficult to be sure, but he might well have been talking about having offline files enabled on redirected folders attached to roaming profiles, which will display an rsync-like behaviour when reconnected. Offline files works on my illumos-based ZFS/samba NAS (the last time I checked) indistinguishably from the way it does against microsoft smb shares though, so I can't see any reason why it shouldn't work on linux samba... or maybe I'm not testing it rigourously. http://windowsteamblog.com/windows/b/springboard/archive/2010/04/19/understanding-user-state-virtualization-improvements-in-windows-7.aspx Here's an old (but still applicable?) HOWTO for enabling Vista's specific offline files efficiently against samba/linux: http://blogs.technet.com/b/filecab/archive/2007/03/16/using-offline-files-with-samba-emc-servers-nas-devices.aspx YMMV on Windows 7 and 8. On 28 June 2012 16:26, Chris Weiss cwe...@gmail.com wrote: On Thu, Jun 28, 2012 at 10:19 AM, Dave Ewart da...@ceu.ox.ac.uk wrote: On Thursday, 28.06.2012 at 11:07 -0400, Steve Thompson wrote: On Thu, 28 Jun 2012, Todor Fassl wrote: Our Windows guy insists samba is slow but I don't believe it. He claims that when you load a roamng profile, Windows downloads only files that have changed and samba downloads everything. But he doesn't know anything about samba and I don't know where he got that from. However native speed won't be important if, under Samba, a full roaming profile is downloaded on each login whereas under Windows an rsync-like action takes place to only download minimal changes. I don't know whether that's the case or not, whether it's configurable behaviour under either Samba or Windows Server, but it's certainly an interesting point. is it possible that unix file timestamps having a greater precision than ntfs is causing windows to see a change? I know rsync has an option to combat this. -- 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
Re: [Samba] speed of samba vs Windows
At Thu, 28 Jun 2012 13:46:07 -0500 Todor Fassl fassl@gmail.com wrote: is it possible that unix file timestamps having a greater precision than ntfs is causing windows to see a change? I know rsync has an option to combat this. Well, I have no reason to believe that our Windows guy is correct and that Windows downloads only changed files and samba downloads the whole profile. I'm guessing he is basing that on how slow logins are. I can guarantee that he hasn't actually checked it out. He either thought it up himself or he heard it somewhere. Does anyone know if Windows does download only files that have changed? Something just occured to me... Well, maybe this is a bug in samba but probably not. When you join a machine to a domain where a time server is configured, it doesn't automatically configure the time servers on the client machine. On our network, the file server is the PDC. We have redundant BDCs which are configured as time servers in samba and are also ntp servers for the linux machines. If I boot a linux machine, I can use ntpq -p to make sure that the machine is getting data from our ntp servers. But if I go into the Windows control panel and look at Date and Time, the server listed there is time.windows.com. [Which, as it occurs to me, is also bogus in that what the heck is windows.com? If its Microsoft, why isn't the default time server time.microsoft.com?] dig time.windows.com = ;; ANSWER SECTION: time.windows.com. 3482IN CNAME time.microsoft.akadns.net. time.microsoft.akadns.net. 158 IN A 65.55.21.13 Yes. windows.com is a real live domain name, (owned by Microsoft), and time.windows.com is a real host name with actual records. And it appears to be a legit time server. Anyway, it seems to me that if you join a machine to a domain with a time server configured, it should show up in Date and Time - Internet Time - Server. But our BDCs aren't even listed there. Gawd, I hate Windows. I don't hate Microsoft or Bill Gates. He seems like a nice enough guy to me. And I don't blame him for getting to be a bzillionaire even though his software kinda sucks. But, still, I hate Windows. -- Robert Heller -- 978-544-6933 / hel...@deepsoft.com Deepwoods Software-- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] CTDB and IPv6
I am attempting to enable IPv6 on our CTDB setup. I have placed the IPv6 address in the public_addresses file with the correct prefix. The addresses never come up and I recieve these messages in the log 2012/06/28 10:54:43.313227 [ 1820]: Async operation failed with ret=0 res=1 opcode=0 2012/06/28 10:54:43.313918 [ 1820]: Async operation failed with ret=0 res=1 opcode=0 2012/06/28 10:54:43.313929 [ 1820]: Async wait failed - fail_count=2 2012/06/28 10:54:43.313934 [ 1820]: server/ctdb_takeover.c:1517 Async control CTDB_CONTROL_TAKEOVER_IP failed 2012/06/28 10:54:43.313941 [ 1820]: server/ctdb_recoverd.c:1588 Unable to setup public takeover addresses 2012/06/28 10:54:44.316099 [ 1820]: Taking out recovery lock from recovery daemon 2012/06/28 10:54:44.316129 [ 1820]: Take the recovery lock 2012/06/28 10:54:44.317788 [ 1820]: Recovery lock taken successfully 2012/06/28 10:54:44.317839 [ 1820]: Recovery lock taken successfully by recovery daemon I am running version 1.0.114.3-3.el6 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
From: Robert Heller hel...@deepsoft.com the heck is windows.com? If its Microsoft, why isn't the default time server time.microsoft.com?] dig time.windows.com = ;; ANSWER SECTION: time.windows.com. 3482IN CNAME time.microsoft.akadns.net. time.microsoft.akadns.net. 158 IN A 65.55.21.13 Yes. windows.com is a real live domain name, (owned by Microsoft), and time.windows.com is a real host name with actual records. And it appears to be a legit time server. I should point our ntp servers at it just for giggles. But I just meant why the heck is the default time.windows.com instead of time.microsoft.com? Wouldn't that make more sense? Richard Stallman could own windows.com for all I know. Was it Xerox who invented the original GUI? It could be owned by Xerox. I guess Microsoft doesn't think that way. Windows is Microsoft, Microsoft is Windows. But we digress. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
From: Ben Metcalfe bwmetca...@gmail.com To: samba@lists.samba.org Sent: Thursday, June 28, 2012 2:24 PM Subject: Re: [Samba] speed of samba vs Windows On 28 June 2012 20:15, Ben Metcalfe bwmetca...@gmail.com wrote: That's the point. I am pushing the idea that our problem is not using folder redirection and the Windows guy is pushing the idea that its samba itself. Spot-on. Your windows guy just needs to implement a few AD registry tweaks (see below etc) to get things working sweetly, Well, that is not going to happen. Eh -- maybe if I can persuade the boss. But I think if this is going to get fixed, I am going to have to fix it myself. But that is probably fair because I think I probably messed it up. I believe folder redirection was working at one time under my predecessor. I believe I messed it up when I built a new file server. I have a vague memory of choosing to not copy some files in the root of the netlogon share over to the new server not knowing what they were for. My predecessor left a lot of stuff just lying around. I mean, who doesn't? So I thought they were extraneous and when the domain seemed to work find for a few months, I figured it was okay to reformat the hard drive on the old server. We are just now making the switch from XP to Win7. I understand that XP and Win7 profiles are not compatible. If we have to have our Windows users (and there aren't that many) create new profiles, maybe I can make sure they get created with full folder redirection implemented. Even if we have to migrate the profiles (and I have no idea oif that is even possible) maybe we can also add the appropriate registry keys. I already know way more than I want to about Windows systems admin. Guess I'll have to learn about setting registry keys and default user profiles, etc. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
We are just now making the switch from XP to Win7. I understand that XP and Win7 profiles are not compatible. If we have to have our Windows users (and there aren't that many) create new profiles, maybe I can make sure they get created with full folder redirection implemented. Even if we have to migrate the profiles (and I have no idea oif that is even possible) maybe we can also add the appropriate registry keys. I believe when you enable folder redirection for the first time the files will get moved to the redirected location. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] speed of samba vs Windows
Well, that is not going to happen. Needs to happen for stuff to work right. Vista and Windows 7 needs to be told how to handle time stamps on Samba shares or data gets copied twice *needlessly* during the logon process. Setting up the correct registry entry *RoundUpWriteTimeOnSync* in some very simple group policy should be trivial for your windows guy and roughly double your logon speed. You all win, and he won't have broken anything. He can follow a microsoft approved technique from technet.com: http://blogs.technet.com/b/filecab/archive/2007/03/16/using-offline-files-with-samba-emc-servers-nas-devices.aspx or just ask him to search as follows: https://www.google.co.uk/search?q=RoundUpWriteTimeOnSync and he'll be convinced. On 28 June 2012 21:08, Todor Fassl fassl@gmail.com wrote: From: Ben Metcalfe bwmetca...@gmail.com To: samba@lists.samba.org Sent: Thursday, June 28, 2012 2:24 PM Subject: Re: [Samba] speed of samba vs Windows On 28 June 2012 20:15, Ben Metcalfe bwmetca...@gmail.com wrote: That's the point. I am pushing the idea that our problem is not using folder redirection and the Windows guy is pushing the idea that its samba itself. Spot-on. Your windows guy just needs to implement a few AD registry tweaks (see below etc) to get things working sweetly, Well, that is not going to happen. Eh -- maybe if I can persuade the boss. But I think if this is going to get fixed, I am going to have to fix it myself. But that is probably fair because I think I probably messed it up. I believe folder redirection was working at one time under my predecessor. I believe I messed it up when I built a new file server. I have a vague memory of choosing to not copy some files in the root of the netlogon share over to the new server not knowing what they were for. My predecessor left a lot of stuff just lying around. I mean, who doesn't? So I thought they were extraneous and when the domain seemed to work find for a few months, I figured it was okay to reformat the hard drive on the old server. We are just now making the switch from XP to Win7. I understand that XP and Win7 profiles are not compatible. If we have to have our Windows users (and there aren't that many) create new profiles, maybe I can make sure they get created with full folder redirection implemented. Even if we have to migrate the profiles (and I have no idea oif that is even possible) maybe we can also add the appropriate registry keys. I already know way more than I want to about Windows systems admin. Guess I'll have to learn about setting registry keys and default user profiles, etc. -- 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] the user name could not be found while joining winXP PC to samba domain
Hi, I get the user name could not be found while joining winXP PC to samba domain in winxp pc, I followed this URL. https://mail.google.com/mail/?shva=1#drafts/1383668f881fefc4 http://kura2gurun.blogspot.com/2011/06/samba-pdc-with-centos-directory-server.html I tried on BOTH CentOS 6.2 64bit and CentOS 5.4 32bit But, The same issue? any comments. -- Thank you Indunil Jayasooriya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via d7d1bb9 s3:smb2_create: add usefull DEBUG() message via 66fa891 s3:smbd/files: fsp-fnum is uint64_t not int! via bbad8f6 s3:brlock: s/int/uint64_t for fnum via c5f1ab9 s3:brlock: add some const to print_lock_struct() via a38d691 s3:wscript: use LOCKING subsystem for smbtorture3 from f80e399 source4/smbd/pidfile: don't panic if pid file is corrupt. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d7d1bb9444ab89c2fd922a8120eb5b21d06d0c54 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 10:02:01 2012 +0200 s3:smb2_create: add usefull DEBUG() message All calls which take an file handle have the same, so we should also log it, when we create a handle. metze Autobuild-User(master): Stefan Metzmacher me...@samba.org Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104 commit 66fa891d2d041652ecde02b53186802137ce3b02 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 10:00:37 2012 +0200 s3:smbd/files: fsp-fnum is uint64_t not int! metze commit bbad8f6d72f2be5bf3556c57e06d1ae604f1be36 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 09:54:41 2012 +0200 s3:brlock: s/int/uint64_t for fnum fsp-fnum and lock-fnum are uint64_t already and we should not truncate the value here. Currently this doesn't matter as we only use 16-bit. But as 'int' is int32_t and we later compare fnum with lock-fnum == fnum, the cast from int32_t to uint64_t goes via int64_t instead of uint32_t. This means even if fsp-fnum just uses 32-bit of the uint64_t we'll get the wrong result, as the implicit cast from a negative int32_t value to uint64_t adds 0x. metze commit c5f1ab9a886104780ee65e43a5f36a3259df60f3 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 09:54:14 2012 +0200 s3:brlock: add some const to print_lock_struct() metze commit a38d6914af10ae18420b3400cf953292fd2699a5 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 00:51:45 2012 +0200 s3:wscript: use LOCKING subsystem for smbtorture3 metze --- Summary of changes: source3/locking/brlock.c |4 ++-- source3/smbd/files.c |6 +++--- source3/smbd/smb2_create.c |3 +++ source3/wscript_build |3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 7150936..efde599 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -46,7 +46,7 @@ static struct db_context *brlock_db; Debug info at level 10 for lock struct. / -static void print_lock_struct(unsigned int i, struct lock_struct *pls) +static void print_lock_struct(unsigned int i, const struct lock_struct *pls) { DEBUG(10,([%u]: smblctx = %llu, tid = %u, pid = %s, , i, @@ -1487,7 +1487,7 @@ void brl_close_fnum(struct messaging_context *msg_ctx, { files_struct *fsp = br_lck-fsp; uint32_t tid = fsp-conn-cnum; - int fnum = fsp-fnum; + uint64_t fnum = fsp-fnum; unsigned int i; struct lock_struct *locks = br_lck-lock_data; struct server_id pid = messaging_server_id(fsp-conn-sconn-msg_ctx); diff --git a/source3/smbd/files.c b/source3/smbd/files.c index d11d6d7..b5be083 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -528,7 +528,7 @@ void fsp_free(files_struct *fsp) void file_free(struct smb_request *req, files_struct *fsp) { struct smbd_server_connection *sconn = fsp-conn-sconn; - int fnum = fsp-fnum; + uint64_t fnum = fsp-fnum; if (fsp-notify) { struct notify_context *notify_ctx = @@ -566,8 +566,8 @@ void file_free(struct smb_request *req, files_struct *fsp) fsp_free(fsp); - DEBUG(5,(freed files structure %d (%u used)\n, -fnum, (unsigned int)sconn-num_files)); + DEBUG(5,(freed files structure %llu (%u used)\n, +(unsigned long long)fnum, (unsigned int)sconn-num_files)); } / diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index f540377..b729ebf 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -826,6 +826,9 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, state-out_file_id_volatile = result-fnum; state-out_context_blobs = out_context_blobs; + DEBUG(10,(smbd_smb2_create_send: %s - %s\n, + fsp_str_dbg(result), fsp_fnum_dbg(result))); +
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via d6939c3 s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum from d7d1bb9 s3:smb2_create: add usefull DEBUG() message http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d6939c39c0fc9b6946c1ab6f58f07de1bfddbb65 Author: Stefan Metzmacher me...@samba.org Date: Thu Jun 28 12:22:07 2012 +0200 s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher me...@samba.org Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104 --- Summary of changes: source3/smbd/nttrans.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 2b426b4..0cac3a1 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -279,7 +279,7 @@ static void send_nt_replies(connection_struct *conn, / static void nt_open_pipe(char *fname, connection_struct *conn, -struct smb_request *req, int *ppnum) +struct smb_request *req, uint16_t *ppnum) { files_struct *fsp; NTSTATUS status; @@ -314,7 +314,7 @@ static void do_ntcreate_pipe_open(connection_struct *conn, struct smb_request *req) { char *fname = NULL; - int pnum = -1; + uint16_t pnum = FNUM_FIELD_INVALID; char *p = NULL; uint32 flags = IVAL(req-vwv+3, 1); TALLOC_CTX *ctx = talloc_tos(); @@ -746,7 +746,7 @@ static void do_nt_transact_create_pipe(connection_struct *conn, { char *fname = NULL; char *params = *ppparams; - int pnum = -1; + uint16_t pnum = FNUM_FIELD_INVALID; char *p = NULL; NTSTATUS status; size_t param_len; -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 572701f s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h from d6939c3 s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 572701f9c84f70271d8ba7353c6638c0358bfbdd Author: Volker Lendecke v...@samba.org Date: Thu Jun 28 11:19:31 2012 +0200 s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h Signed-off-by: Bjoern Jacke b...@sernet.de Autobuild-User(master): Björn Jacke b...@sernet.de Autobuild-Date(master): Thu Jun 28 16:43:13 CEST 2012 on sn-devel-104 --- Summary of changes: source3/lib/pthreadpool/pthreadpool_sync.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/pthreadpool/pthreadpool_sync.c b/source3/lib/pthreadpool/pthreadpool_sync.c index 6c18b8f..0c2d12f 100644 --- a/source3/lib/pthreadpool/pthreadpool_sync.c +++ b/source3/lib/pthreadpool/pthreadpool_sync.c @@ -22,7 +22,6 @@ #include unistd.h #include stdlib.h #include string.h -#include pthread.h #include signal.h #include assert.h #include fcntl.h -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 7468ce6 s4-torture: fix typo in samlogon test. via 4aaeed2 s4-torture: use torture context for printing debug output. from 572701f s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 7468ce6f93d21af2bec35d52d16efe9cced0d1e8 Author: Günther Deschner g...@samba.org Date: Thu Jun 28 14:57:17 2012 +0200 s4-torture: fix typo in samlogon test. Guenther Autobuild-User(master): Günther Deschner g...@samba.org Autobuild-Date(master): Thu Jun 28 18:43:46 CEST 2012 on sn-devel-104 commit 4aaeed2dac9958ab56fc7d757386285efc64e805 Author: Günther Deschner g...@samba.org Date: Thu Jun 28 13:59:50 2012 +0200 s4-torture: use torture context for printing debug output. Guenther --- Summary of changes: source4/torture/rpc/samlogon.c | 210 +++- 1 files changed, 98 insertions(+), 112 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c index cff39dd..b67c832 100644 --- a/source4/torture/rpc/samlogon.c +++ b/source4/torture/rpc/samlogon.c @@ -49,6 +49,7 @@ enum ntlm_break { struct samlogon_state { TALLOC_CTX *mem_ctx; + struct torture_context *tctx; const char *comment; const char *account_name; const char *account_domain; @@ -356,10 +357,10 @@ static bool test_lm_ntlm_broken(struct samlogon_state *samlogon_state, enum ntlm if (memcmp(lm_hash, lm_key, sizeof(lm_key)) != 0) { - d_printf(LM Key does not match expectations!\n); - d_printf(lm_key:\n); + torture_comment(samlogon_state-tctx, LM Key does not match expectations!\n); + torture_comment(samlogon_state-tctx, lm_key:\n); dump_data(1, lm_key, 8); - d_printf(expected:\n); + torture_comment(samlogon_state-tctx, expected:\n); dump_data(1, lm_hash, 8); pass = false; } @@ -373,9 +374,9 @@ static bool test_lm_ntlm_broken(struct samlogon_state *samlogon_state, enum ntlm if (memcmp(lm_key_expected, user_session_key, 16) != 0) { *error_string = strdup(NT Session Key does not match expectations (should be first-8 LM hash)!\n); - d_printf(user_session_key:\n); + torture_comment(samlogon_state-tctx, user_session_key:\n); dump_data(1, user_session_key, sizeof(user_session_key)); - d_printf(expected:\n); + torture_comment(samlogon_state-tctx, expected:\n); dump_data(1, lm_key_expected, sizeof(lm_key_expected)); pass = false; } @@ -385,9 +386,9 @@ static bool test_lm_ntlm_broken(struct samlogon_state *samlogon_state, enum ntlm if (memcmp(session_key.data, user_session_key, sizeof(user_session_key)) != 0) { *error_string = strdup(NT Session Key does not match expectations!\n); - d_printf(user_session_key:\n); + torture_comment(samlogon_state-tctx, user_session_key:\n); dump_data(1, user_session_key, 16); - d_printf(expected:\n); + torture_comment(samlogon_state-tctx, expected:\n); dump_data(1, session_key.data, session_key.length); pass = false; } @@ -473,10 +474,10 @@ static bool test_ntlm_in_lm(struct samlogon_state *samlogon_state, char **error_ if (lm_good) { if (memcmp(lm_hash, lm_key, sizeof(lm_key)) != 0) { - d_printf(LM Key does not match expectations!\n); - d_printf(lm_key:\n); + torture_comment(samlogon_state-tctx, LM Key does not match expectations!\n); + torture_comment(samlogon_state-tctx, lm_key:\n); dump_data(1, lm_key, 8); - d_printf(expected:\n); + torture_comment(samlogon_state-tctx, expected:\n); dump_data(1, lm_hash, 8); pass = false; } @@ -484,10 +485,10 @@ static bool test_ntlm_in_lm(struct samlogon_state *samlogon_state, char **error_ } else { if (memcmp(session_key.data, lm_key, sizeof(lm_key)) != 0) { - d_printf(LM Key does not match expectations (first 8 session key)!\n); -
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via a29bf4a selftest: run pdbtest against s3dc as well via 30fd88e selftest: use a loop rather than declare tests for both dc and s3dc via 15b9198 librpc/ndr: Initilaise the remainder of struct dom_sid after a pull from 7468ce6 s4-torture: fix typo in samlogon test. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a29bf4acf573e46b8bbb0bfe33df94b409825b27 Author: Andrew Bartlett abart...@samba.org Date: Thu Jun 28 21:21:23 2012 +1000 selftest: run pdbtest against s3dc as well This validates the password expiry, account disable in the s3 auth code and the save/restore of values in tdbsam. It also provides the first test of some net sam set subcommands. Andrew Bartlett Autobuild-User(master): Andrew Bartlett abart...@samba.org Autobuild-Date(master): Thu Jun 28 20:39:38 CEST 2012 on sn-devel-104 commit 30fd88ed65ee470f366afec4fdd84054edda754f Author: Andrew Bartlett abart...@samba.org Date: Thu Jun 28 20:42:31 2012 +1000 selftest: use a loop rather than declare tests for both dc and s3dc commit 15b9198644613536401a49dd779d4e9be706d980 Author: Andrew Bartlett abart...@samba.org Date: Tue Jun 26 20:07:32 2012 +1000 librpc/ndr: Initilaise the remainder of struct dom_sid after a pull This copes with the fact that r-sub_auths is a fixed-size array, not an allocated pointer, and so will still have some bytes no filled in if the sid did not have a MAX_SUB_AUTHS sub-authorities. Andrew Bartlett --- Summary of changes: librpc/ndr/ndr_sec_helper.c|1 + source4/selftest/tests.py | 34 +- testprogs/blackbox/test_pdbtest.sh |6 +++--- 3 files changed, 21 insertions(+), 20 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/ndr/ndr_sec_helper.c b/librpc/ndr/ndr_sec_helper.c index 984b6bd..66b0013 100644 --- a/librpc/ndr/ndr_sec_helper.c +++ b/librpc/ndr/ndr_sec_helper.c @@ -335,6 +335,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_dom_sid(struct ndr_pull *ndr, int ndr_flags, return ndr_pull_error(ndr, NDR_ERR_RANGE, value out of range); } NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r-id_auth, 6)); + ZERO_STRUCT(r-sub_auths); for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 r-num_auths; cntr_sub_auths_0++) { NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r-sub_auths[cntr_sub_auths_0])); } diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 7c34090..97030ba 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -172,22 +172,23 @@ for t in net_tests: # FIXME: Integrate these into a single smbtorture test transport = ncacn_np -for ntlmoptions in [ --k no --option=usespnego=yes, --k no --option=usespnego=yes --option=ntlmssp_client:128bit=no, --k no --option=usespnego=yes --option=ntlmssp_client:56bit=yes, --k no --option=usespnego=yes --option=ntlmssp_client:56bit=no, --k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes, --k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=no, --k no --option=usespnego=yes --option=clientntlmv2auth=yes, --k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no, --k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes, --k no --option=usespnego=no --option=clientntlmv2auth=yes, --k no --option=gensec:spnego=no --option=clientntlmv2auth=yes, --k no --option=usespnego=no]: -name = rpc.lsa.secrets on %s with with %s % (transport, ntlmoptions) -plansmbtorturetestsuite('rpc.lsa.secrets', dc, [%s:$SERVER[] % (transport), ntlmoptions, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME'], samba4.%s % name) -plansmbtorturetestsuite('rpc.lsa.secrets', s3dc, [%s:$SERVER[] % (transport), ntlmoptions, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=gensec:target_hostname=$NETBIOSNAME'], samba4.%s % name) +for env in [dc, s3dc]: +for ntlmoptions in [ +-k no --option=usespnego=yes, +-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no, +-k no --option=usespnego=yes --option=ntlmssp_client:56bit=yes, +-k no --option=usespnego=yes --option=ntlmssp_client:56bit=no, +-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes, +-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=no, +-k no
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 7560b1c s3: fine tune and clean up statvfs tests via f6ac6b8 docs-xml: fix typos and format in smb.conf server max protocol man via 11fc75f packaging(RHEL-CTDB): fix build dependencies from a29bf4a selftest: run pdbtest against s3dc as well http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 7560b1cea6d2c0b2962f5802f724525fc0ec9bf9 Author: Björn Jacke b...@sernet.de Date: Thu Jun 28 21:17:28 2012 +0200 s3: fine tune and clean up statvfs tests This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke b...@sernet.de Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104 commit f6ac6b8f3c40c99e7bc43d88ec5a2d95ecfc97a4 Author: Björn Baumbach b...@sernet.de Date: Wed Jun 27 13:06:50 2012 +0200 docs-xml: fix typos and format in smb.conf server max protocol man commit 11fc75fcb515b27cacf2f703c58c6ef10b645fee Author: Björn Baumbach b...@sernet.de Date: Thu May 3 14:11:42 2012 +0200 packaging(RHEL-CTDB): fix build dependencies Building manual pages needs rsync for copying built mans. source3/script/installmo.sh calls msgfmt, thats part of gettext. --- Summary of changes: docs-xml/manpages-3/net.8.xml | 32 +-- docs-xml/smbdotconf/misc/ncalrpcdir.xml| 10 +++--- docs-xml/smbdotconf/protocol/servermaxprotocol.xml | 32 ++- docs-xml/smbdotconf/vfs/getquotacommand.xml|2 +- packaging/RHEL-CTDB/samba.spec.tmpl|4 +- source3/configure.in | 13 source3/smbd/statvfs.c |4 +- 7 files changed, 61 insertions(+), 36 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/manpages-3/net.8.xml b/docs-xml/manpages-3/net.8.xml index f20afb2..c85f87f 100644 --- a/docs-xml/manpages-3/net.8.xml +++ b/docs-xml/manpages-3/net.8.xml @@ -1988,10 +1988,34 @@ string./member refsect3 titleREGISTRY IMPORT replaceablefile/replaceable!-- - --replaceable[opt]/replaceable/title - - paraImport a registration entries (.reg) emphasisfile/emphasis. - /para + --replaceable [--precheck lt;check-filegt;] [opt]/replaceable/title + paraImport a registration entries (.reg) emphasisfile/emphasis./para + paraThe following options are available:/para + variablelist +varlistentryterm--precheck replaceablecheck-file/replaceable/term +listitempara + This is a mechanism to check the existence or non-existence of + certain keys or values specified in a precheck file before applying + the import file. + The import file will only be applied if the precheck succeeds. +/para +para + The check-file follows the normal registry file syntax with the + following semantics: +/para + itemizedlist + listitemparalt;value namegt;=lt;valuegt; checks whether the + value exists and has the given value./para/listitem + listitemparalt;value namegt;=- checks whether the value does + not exist./para/listitem + listitempara[key] checks whether the key exists./para + /listitem + listitempara[-key] checks whether the key does not exist./para + /listitem + /itemizedlist +/listitem +/varlistentry + /variablelist /refsect3 refsect3 diff --git a/docs-xml/smbdotconf/misc/ncalrpcdir.xml b/docs-xml/smbdotconf/misc/ncalrpcdir.xml index b53acef..01b5b5c 100644 --- a/docs-xml/smbdotconf/misc/ncalrpcdir.xml +++ b/docs-xml/smbdotconf/misc/ncalrpcdir.xml @@ -1,11 +1,11 @@ samba:parameter name=ncalrpc dir - context=G - advanced=1 developer=1 +context=G +advanced=1 developer=1 type=string - xmlns:samba=http://www.samba.org/samba/DTD/samba-doc; +xmlns:samba=http://www.samba.org/samba/DTD/samba-doc; description - paraThis directory will hold a series of named pipes to allow RPC over inter-process communication. /para. - paraThis will allow Samba and other unix processes to interact over DCE/RPC without using TCP/IP. Additionally a sub-directory 'np' has restricted permissions, and allows a trusted communication channel between Samba processes/para + paraThis directory will hold a series of named pipes to allow RPC over inter-process communication./para + paraThis will allow Samba and other unix processes to interact over DCE/RPC without using TCP/IP. Additionally a sub-directory 'np' has restricted permissions, and allows a trusted communication channel between Samba processes/para /description value
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via ded2cb8 docs-xml: document server max protocol SMB2 selects PROTOCOL_SMB2_10 via dc66e63 s3:param: change server max protocol to SMB2 (SMB2_10) via a5b62a6 lib/param: let SMB2 select PROTOCOL_SMB2_10 via 34a9892 s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() simpler via 967f2c4 s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit. via 5b7f5d0 s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139 via 1db83d2 s3:smb2_server: grant extra credits for multi-credit requests via 648b959 s3:smb2_server: implement credit granting similar to windows via 82dc0b3 s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX via ee8ae45 s3:smb2_server: make sure we don't grant more credits than we allow via 4fe41c0 s3:smb2_server: check the credit_charge against the already granted credits via 984fdaf s3:smb2_server: split out a smb2_validate_sequence_number() function via d6e7a76 s3:smb2_server: clear sequence window if we got the lowest sequence id via bd6d415 s3:smb2_server: fix calculation of the next bitmap_offset via d1ee774 s3:smb2_server: remove unused and confusing DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR via 925994e s3:smb2_server: call smbd_smb2_request_validate() also in smbd_smb2_first_negprot() via 0b8eac9 s3:smb2_server: start the connection with one credit granted to the client from 7560b1c s3: fine tune and clean up statvfs tests http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ded2cb8f278b513d01cd143312cda2e3b4bb7da5 Author: Stefan Metzmacher me...@samba.org Date: Sun Jun 3 23:09:33 2012 +0200 docs-xml: document server max protocol SMB2 selects PROTOCOL_SMB2_10 metze Autobuild-User(master): Stefan Metzmacher me...@samba.org Autobuild-Date(master): Fri Jun 29 02:07:17 CEST 2012 on sn-devel-104 commit dc66e63d5feca2890ebe6325b5eee3141d89831e Author: Stefan Metzmacher me...@samba.org Date: Sun Jun 3 23:04:44 2012 +0200 s3:param: change server max protocol to SMB2 (SMB2_10) metze commit a5b62a60cc2421664da51d4ad080390644f280b7 Author: Stefan Metzmacher me...@samba.org Date: Sun Jun 3 23:02:56 2012 +0200 lib/param: let SMB2 select PROTOCOL_SMB2_10 metze commit 34a9892ec17a831bf785ee5c1dc4e0ab0edda0ce Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 23:35:46 2012 +0200 s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() simpler We just need a max_charge variable to make the algorithm independent of multi_credit support. metze commit 967f2c44b3b911d151ea262b748d68654ba9e2fc Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 21:14:43 2012 +0200 s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit. A credit charge of 0 is really not a special case, it just means the same as 1. metze commit 5b7f5d02b5a432fff116f5e2a17e956e3255cd35 Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 21:40:00 2012 +0200 s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139 In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze commit 1db83d2b376fc409a51c28dd7a30717819b366a6 Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 21:45:54 2012 +0200 s3:smb2_server: grant extra credits for multi-credit requests metze commit 648b959b13224105addaae483823bc422ed1cc21 Author: Stefan Metzmacher me...@samba.org Date: Wed Jun 27 15:33:43 2012 +0200 s3:smb2_server: implement credit granting similar to windows This makes it much easier to compare traces. metze commit 82dc0b33b9af5094d78f3ecd855900e49c580343 Author: Stefan Metzmacher me...@samba.org Date: Wed Jun 27 15:33:43 2012 +0200 s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX metze commit ee8ae459aea6879377b5510851a6dc673cf72aad Author: Stefan Metzmacher me...@samba.org Date: Wed Jun 27 15:33:43 2012 +0200 s3:smb2_server: make sure we don't grant more credits than we allow If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze commit 4fe41c0bb14f6ae7e52aa7f180e66c7695eb6fa0 Author: Stefan Metzmacher me...@samba.org Date: Tue Jun 26 14:28:07 2012 +0200 s3:smb2_server: check the credit_charge against the already granted credits metze commit 984fdaf9149d96d0d28600443981d87d13eb355c Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 23:17:55 2012 +0200 s3:smb2_server: split out a
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 485787f Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem. via 821bd95 Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. via 7630fe5 Add missing setresgid() wrapper. from ded2cb8 docs-xml: document server max protocol SMB2 selects PROTOCOL_SMB2_10 http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 485787f0dfa64bbada7c971ec44f04a1095b4229 Author: Jeremy Allison j...@samba.org Date: Thu Jun 28 13:41:19 2012 -0700 Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem. See this post: https://lists.samba.org/archive/samba-technical/2012-June/085101.html for details. Autobuild-User(master): Jeremy Allison j...@samba.org Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104 commit 821bd95156e8cc6d843aecb0a27d4a08761b7dac Author: Jeremy Allison j...@samba.org Date: Thu Jun 28 11:59:51 2012 -0700 Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba. commit 7630fe50bd7d0783d1f6b253cbee46a3f774 Author: Jeremy Allison j...@samba.org Date: Mon Jun 25 18:08:36 2012 -0700 Add missing setresgid() wrapper. --- Summary of changes: lib/replace/libreplace.m4 |4 +- lib/replace/wscript |4 +- lib/uid_wrapper/uid_wrapper.c | 15 ++- lib/uid_wrapper/uid_wrapper.h | 43 lib/uid_wrapper/wscript_build |2 +- lib/util/setid.c| 214 +++ lib/util/setid.h| 43 +++ lib/util/unix_privs.c |5 +- lib/util/wscript_build |7 +- source3/Makefile.in |6 +- source3/configure.in| 19 +++- source3/include/includes.h |3 + source3/lib/system.c|9 +- source3/lib/system_smbd.c |3 +- source3/lib/util_sec.c | 145 source3/smbd/sec_ctx.c |3 +- source3/web/cgi.c |5 +- source3/wscript | 12 ++- source4/include/includes.h |3 + source4/ntvfs/unixuid/vfs_unixuid.c | 11 +- tests/summary.c |2 +- testsuite/smbd/sec_ctx1.c |4 +- testsuite/smbd/sec_ctx_nonroot.c|4 +- 23 files changed, 439 insertions(+), 127 deletions(-) create mode 100644 lib/util/setid.c create mode 100644 lib/util/setid.h Changeset truncated at 500 lines: diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 index ad0f904..d298b92 100644 --- a/lib/replace/libreplace.m4 +++ b/lib/replace/libreplace.m4 @@ -124,8 +124,10 @@ AC_CHECK_HEADERS(sys/mount.h mntent.h) AC_CHECK_HEADERS(stropts.h) AC_CHECK_HEADERS(unix.h) AC_CHECK_HEADERS(malloc.h) +AC_CHECK_HEADERS(syscall.h) +AC_CHECK_HEADERS(sys/syscall.h) -AC_CHECK_FUNCS(seteuid setreuid setresuid setegid setregid setresgid) +AC_CHECK_FUNCS(syscall setuid seteuid setreuid setresuid setgid setegid setregid setresgid setgroups) AC_CHECK_FUNCS(chroot bzero strerror strerror_r memalign posix_memalign getpagesize) AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename) AC_CHECK_FUNCS(waitpid wait4 strlcpy strlcat initgroups memmove strdup) diff --git a/lib/replace/wscript b/lib/replace/wscript index 68138cf..157296b 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -163,7 +163,7 @@ def configure(conf): conf.CHECK_FUNCS('shl_load shl_unload shl_findsym') conf.CHECK_FUNCS('pipe strftime srandom random srand rand usleep setbuffer') -conf.CHECK_FUNCS('lstat getpgrp utime utimes seteuid setreuid setresuid setegid') +conf.CHECK_FUNCS('lstat getpgrp utime utimes setuid seteuid setreuid setresuid setgid setegid') conf.CHECK_FUNCS('setregid setresgid chroot strerror vsyslog setlinebuf mktime') conf.CHECK_FUNCS('ftruncate chsize rename waitpid wait4') conf.CHECK_FUNCS('initgroups pread pwrite strndup strcasestr') @@ -207,7 +207,7 @@ def configure(conf): conf.CHECK_FUNCS('if_nametoindex strerror_r') conf.CHECK_FUNCS('getdirentries getdents syslog') conf.CHECK_FUNCS('gai_strerror get_current_dir_name') -conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups setsid') +conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups syscall setsid') conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize') conf.CHECK_FUNCS('getpwent_r getpwnam_r
[SCM] CTDB repository - branch 1.2.40 updated - ctdb-1.9.1-570-g8c3aed3
The branch, 1.2.40 has been updated via 8c3aed36615e083e0b91efd70380b7711f9f9f7e (commit) via 0aa9a450ef8919acf9c6e3309712ed31fc7e70cc (commit) via 9d8a6d792c40eed02f01a657c4fd252e9aae7039 (commit) via bf0ce09db2302ef52ea0861cb8079c8b7220ec79 (commit) via ee3cbeb874cf0dd1d91ddf3ebb9e4bd94fb15169 (commit) via 183650afc505f5a3025ccbf7c6e07778761223c7 (commit) via ce82656a88ec6cd3955b071f87bfa611abe0a94a (commit) via c016f65ff147f3e92a39a26fcc086ca7992b1663 (commit) via 47197d7571a20d047b6cf19597e8c9d7c3064f24 (commit) via 7e6a846aca704aa5394631e1fe35d893b881b8a6 (commit) via b00fcf9af9a2e2dad0b2ca282ab03b7b70a1493b (commit) from b54938c8dfaac046aee9eec92724e7ba2153d65a (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2.40 - Log - commit 8c3aed36615e083e0b91efd70380b7711f9f9f7e Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Fri Jun 29 12:31:13 2012 +1000 New version 1.2.44 commit 0aa9a450ef8919acf9c6e3309712ed31fc7e70cc Author: Martin Schwenke mar...@meltin.net Date: Thu Jun 21 14:18:35 2012 +1000 eventscripts: 13.per_ip_routing - flock should have a timeout ... and flock failure should be fatal. Signed-off-by: Martin Schwenke mar...@meltin.net commit 9d8a6d792c40eed02f01a657c4fd252e9aae7039 Author: Martin Schwenke mar...@meltin.net Date: Thu Jun 21 14:17:06 2012 +1000 eventscripts: 13.per_ip_routing - readability improvement Signed-off-by: Martin Schwenke mar...@meltin.net commit bf0ce09db2302ef52ea0861cb8079c8b7220ec79 Author: Martin Schwenke mar...@meltin.net Date: Fri Jun 15 17:22:02 2012 +1000 eventscripts: 13.per_ip_routing should remove bogus routes on ipreallocated Signed-off-by: Martin Schwenke mar...@meltin.net commit ee3cbeb874cf0dd1d91ddf3ebb9e4bd94fb15169 Author: Martin Schwenke mar...@meltin.net Date: Wed Jun 13 13:49:49 2012 +1000 eventscripts: Print a warning on failure to delete a routing rule del_routing_for_ip() currently fails silently, which could hide real errors. In add_routing_for_ip() we don't want to see any error when calling del_routing_for_ip(), since we don't expect the rule to be there. Signed-off-by: Martin Schwenke mar...@meltin.net commit 183650afc505f5a3025ccbf7c6e07778761223c7 Author: Martin Schwenke mar...@meltin.net Date: Tue Apr 24 17:17:07 2012 +1000 Eventscripts: fix basename - dirname typo I fixed one of these previously but didn't notice this one... :-( Signed-off-by: Martin Schwenke mar...@meltin.net commit ce82656a88ec6cd3955b071f87bfa611abe0a94a Author: Martin Schwenke mar...@meltin.net Date: Wed Apr 18 16:49:48 2012 +1000 Eventscripts - Fix typo in 13.per_ip_routing support for __auto_link_local__ Signed-off-by: Martin Schwenke mar...@meltin.net commit c016f65ff147f3e92a39a26fcc086ca7992b1663 Author: Martin Schwenke mar...@meltin.net Date: Tue Mar 20 16:23:24 2012 +1100 Eventscripts - make 13.per_ip_routing fail gracefully if config is missing Currently it spews out random messages about the file being missing. Signed-off-by: Martin Schwenke mar...@meltin.net commit 47197d7571a20d047b6cf19597e8c9d7c3064f24 Author: Martin Schwenke mar...@meltin.net Date: Tue Mar 20 16:21:09 2012 +1100 Eventscripts - make 13.per_ip_routing try harder to find public_addresses Signed-off-by: Martin Schwenke mar...@meltin.net commit 7e6a846aca704aa5394631e1fe35d893b881b8a6 Author: Martin Schwenke mar...@meltin.net Date: Tue Mar 20 16:20:10 2012 +1100 Eventscripts - use set_proc() rather than accessing /proc directly Signed-off-by: Martin Schwenke mar...@meltin.net commit b00fcf9af9a2e2dad0b2ca282ab03b7b70a1493b Author: Martin Schwenke mar...@meltin.net Date: Tue Mar 20 16:18:49 2012 +1100 Eventscripts - 13.per_ip_routing should use dirname not basename for mkdir Signed-off-by: Martin Schwenke mar...@meltin.net --- Summary of changes: config/events.d/13.per_ip_routing | 75 + packaging/RPM/ctdb.spec.in|4 +- 2 files changed, 62 insertions(+), 17 deletions(-) Changeset truncated at 500 lines: diff --git a/config/events.d/13.per_ip_routing b/config/events.d/13.per_ip_routing index d17342d..f16a74e 100755 --- a/config/events.d/13.per_ip_routing +++ b/config/events.d/13.per_ip_routing @@ -93,7 +93,7 @@ ensure_table_id_for_ip () _f=$CTDB_ETCDIR/iproute2/rt_tables # This file should always exist, but... if [ ! -f $_f ] ; then - mkdir -p $(basename $_f) + mkdir -p $(dirname $_f) touch $_f fi @@ -105,7 +105,9 @@ ensure_table_id_for_ip () # new unused one (that is greater than all the used ones in the # range).
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via f3862b9 ccan: we're subsystems, not a library. from 485787f Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit f3862b917168ade88a048cdee688986b0479fe37 Author: Rusty Russell ru...@rustcorp.com.au Date: Fri Jun 29 12:09:06 2012 +0930 ccan: we're subsystems, not a library. Don't expose a libccan.so; it would produce clashes if someone else does the same thing. Unfortunately, if we just change it from a SAMBA_LIBRARY to a SAMBA_SUBSYSTEM, it doesn't create a static library as we'd like, but links all the object files in. This means we get many duplicates (eg. everyone gets a copy of tally, even though only ntdb wants it). So, the solution is twofold: 1) Make the ccan modules separate. 2) Make the ccan modules SAMBA_SUBSYSTEMs not SAMBA_LIBRARYs so we don't build shared libraries which we can't share. 3) Make the places which uses ccan explicit. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Autobuild-User(master): Rusty Russell ru...@rustcorp.com.au Autobuild-Date(master): Fri Jun 29 06:22:44 CEST 2012 on sn-devel-104 --- Summary of changes: lib/ccan/wscript | 43 +++ lib/ldb/wscript|5 + lib/ntdb/wscript | 11 ++- lib/tdb_compat/wscript |4 +--- source3/wscript_build |5 ++--- 5 files changed, 41 insertions(+), 27 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/ccan/wscript b/lib/ccan/wscript index c1dae41..565a657 100644 --- a/lib/ccan/wscript +++ b/lib/ccan/wscript @@ -121,19 +121,38 @@ def configure(conf): # backtrace could be in libexecinfo or in libc conf.CHECK_FUNCS_IN('backtrace backtrace_symbols', 'execinfo', checklibc=True, headers='execinfo.h') +def ccan_module(bld, name, deps=''): +bld.SAMBA_SUBSYSTEM('ccan-%s' % name, +source=bld.path.ant_glob('%s/*.c' % name), +deps=deps) + def build(bld): +# These have actual C files. +ccan_module(bld, 'hash', 'ccan-build_assert') +ccan_module(bld, 'ilog', 'ccan-compiler'); +ccan_module(bld, 'read_write_all') +ccan_module(bld, 'str', 'ccan-build_assert') +ccan_module(bld, 'tally', 'ccan-build_assert ccan-likely') -for ccan_dir in [err, hash, htable, ilog, likely, list, read_write_all, str, tally, time]: -bld.SAMBA_SUBSYSTEM('ccan-%s' % ccan_dir, -source=bld.path.ant_glob('%s/*.c' % ccan_dir)) +# These are headers only. +ccan_module(bld, 'array_size', 'ccan-build_assert') +ccan_module(bld, 'asearch','ccan-typesafe_cb ccan-array_size') +ccan_module(bld, 'build_assert') +ccan_module(bld, 'cast', 'ccan-build_assert') +ccan_module(bld, 'check_type', 'ccan-build_assert') +ccan_module(bld, 'compiler') +ccan_module(bld, 'endian') +ccan_module(bld, 'likely', 'ccan-str') +ccan_module(bld, 'typesafe_cb') +# Failtest pulls in a lot of stuff, and it's only for unit tests. if bld.env.DEVELOPER_MODE: -bld.SAMBA_LIBRARY('ccan-failtest', - source=bld.path.ant_glob('failtest/*.c'), - deps='execinfo ccan ccan-htable ccan-list ccan-read_write_all ccan-time', - private_library=True) - -bld.SAMBA_LIBRARY('ccan', - source='', - deps='ccan-err ccan-hash ccan-ilog ccan-likely ccan-tally', - private_library=True) +ccan_module(bld, 'container_of', 'ccan-check_type') +ccan_module(bld, 'err', 'ccan-compiler') +ccan_module(bld, 'htable', 'ccan-compiler') +ccan_module(bld, 'list', 'ccan-container_of') +ccan_module(bld, 'time') +ccan_module(bld, 'tcon') +ccan_module(bld, 'tlist', 'ccan-list ccan-tcon') +ccan_module(bld, 'failtest', +ccan-err ccan-hash ccan-htable ccan-list ccan-read_write_all ccan-str ccan-time) diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 94a9682..6cdddb3 100755 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -16,7 +16,7 @@ sys.path.insert(0, srcdir + '/buildtools/wafsamba') import wafsamba, samba_dist, Options samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc -lib/tdb:lib/tdb lib/tdb2:lib/tdb2 lib/tdb:lib/tdb lib/ccan:lib/ccan lib/tevent:lib/tevent lib/popt:lib/popt +lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent lib/popt:lib/popt buildtools:buildtools''') @@ -39,9 +39,6 @@ def configure(conf):