summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-14Remove an unnecessary size checkVolker Lendecke1-10/+4
rpc_read is only ever called with at most fraglen-RPC_HEADER_SIZE length
2009-01-14Check the fragment size the server has sent usVolker Lendecke1-0/+10
2009-01-14Slightly simplify rpc_read: It should not do the resizeVolker Lendecke1-18/+34
2009-01-14Always read with offset 0 from a named pipeVolker Lendecke1-6/+5
2009-01-14s3-eventlog: fix ps struct removal leftover.Günther Deschner1-1/+0
Guenther
2009-01-14s3: re-run make samba3-idl.Günther Deschner3-153/+216
Guenther
2009-01-14eventlog: more eventlog record idl fixes.Günther Deschner1-5/+5
- treat eventlogEventTypes as an enum. - do not align the full eventlog entry. - set range on number of strings according to docs. - make a little more obvious what the reserved field stands for. Guenther
2009-01-14s3-rpcclient: always parse the full eventlog entry.Günther Deschner1-3/+3
Guenther
2009-01-14s3-eventlog: use main talloc context in eventlog read call.Günther Deschner1-3/+2
Guenther
2009-01-14s4-smbtorture: also test for invalid flags in eventlog test_ReadEventLog.Günther Deschner1-1/+7
Guenther
2009-01-14s4-smbtorture: pure cosmetic cleanup of eventlog test.Günther Deschner1-42/+42
Guenther
2009-01-14s4 torture: Fix the wbinfo blackbox testsKai Blin1-5/+13
2009-01-14Fix error message in mkrelease to refer to source4, not sourceAndrew Bartlett1-1/+1
2009-01-14Fixed problemed showed on a number of systems on the buildfarm.Torgeir Lerkerod1-1/+4
Problem shows up as perl error related to config.pm in reality this was related to the ECHO_C variable. Added test to skip that variable as no perl module is using it. Torgeir Signed-off-by: Torgeir Lerkerod <Torgeir.Lerkerod@gmail.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-01-13From boyang - ensure we never "return" from a forked child, always _exit().Jeremy Allison2-5/+5
Jeremy.
2009-01-13Only call sendfile_short_read() if we need it.Jeremy Allison1-2/+6
Jeremy.
2009-01-13Fix bug noticed by Volker - if sendfile returns zero thenJeremy Allison2-6/+78
we might have to handle a short send by filling with zeros. Jeremy.
2009-01-13Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2-4/+4
Jeremy.
2009-01-13pidl: remove references to EJS and SWIG codeStefan Metzmacher2-4/+0
This fixes 'make install'. metze
2009-01-12Covert several persistant tdb files to use state_path() instead of lock_path()Steven Danneman3-3/+3
2009-01-12Audit usage of get_dyn_STATEDIR() and replace with state_path()Steven Danneman1-2/+2
The state directory is now run-time configurable through loadparm, so all references to it should be done through state_path() or lp_statedir().
2009-01-12Deprecate the "share modes" parameter to address bug #6024, swat disagrees ↵Jeremy Allison2-12/+13
with smbstatus as to share mode with share modes = No set in samba. Jeremy.
2009-01-12s3: re-run make samba3-idl.Günther Deschner2-15/+47
Guenther
2009-01-12s3-rpcclient: some cleanup for eventlog client.Günther Deschner1-9/+26
Guenther
2009-01-12eventlog: some fixes for eventlog_Record struct.Günther Deschner1-4/+7
* make reserved field always have value 0x654c664C ("eLfL"). * add missing sid entry * add padding and 2nd size counter. * use time_t in eventlog_Record. Guenther
2009-01-12eventlog: make out pointer a ref pointer in eventlog_GetNumRecords.Günther Deschner1-1/+1
Guenther
2009-01-12s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp casesStefan Metzmacher1-16/+35
SMB signing works the same regardless of the used auth mech. We need to start with the temp signing ("BSRSPYL ") and the session setup response with NT_STATUS_OK is the first signed packet. Now we set the krb5 session key if we got the NT_STATUS_OK from the server and then recheck the packet. All this is needed to make the fallback from krb5 to ntlmssp possible. This commit also resets the cli->vuid value to 0, if the krb5 auth didn't succeed. Otherwise the server handles NTLMSSP packets as krb5 packets. The restructuring of the SMB signing code is needed to make sure the krb5 code only starts the signing engine on success. Otherwise the NTLMSSP fallback could not initialize the signing engine (again). metze
2009-01-12nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messagesMichael Adam1-1/+1
I just saw this in "make test" after "SMBD OUTPUT:"... Michael
2009-01-12Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.cSteven Danneman11-51/+188
If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam <obnox@samba.org>
2009-01-12Even for srclen == 0 we have to return somethingVolker Lendecke1-0/+6
This fixes a regression reported by Corinna Vinschen <corinna@vinschen.de> Thanks, Volker
2009-01-12tevent: use for() loops instead of while() loopsStefan Metzmacher1-12/+9
metze
2009-01-11s3: Fix uninitialized variable in OneFS streamsTim Prouty1-2/+5
2009-01-11s3: Differentiate between posix files with colons and actual streamsTim Prouty1-2/+34
It is possible for a posix file created locally or over nfs to have a ":" in the name. Since ":" is a reserved character in windows, filenames containing a colon must be mangled in a directory listing. Right now files containing colons will not even be displayed in directory listings if streams modules are in use. During the directory listing the file will be detected as a stream because of the colon, but the streams module will fail to find the stream since it doesn't exist. This fix adds a step to is_ntfs_stream_name that stats the filename to differentiate between actual streams and files containing colons. While this is an improvement, it isn't perfect. Consider the case where there is a file on disk called "a.txt:s1" and also a file called "a.txt" that has a stream called "s1". This patch will always preference "a.txt:s1" over a.txt's s1 stream. The real issue is that at the vfs level, the vfs modules have no way to tell between a demangled name with a colon and an actual stream. A more invasive, but better, long-term fix would be to add all paths that come over the wire into a struct containing metadata about the path. This metadata could include a flag to indicate whether the path came over the wire with a colon ":" (guaranteeing that the client is requesting a stream). Passing this struct down to the lower levels, including all path-based vfs calls, would allow the above case to be handled correctly in all cases.
2009-01-11s3: Add OneFS alternate data streams implementationTim Prouty5-15/+674
2009-01-11s3: General cleanup of the open path in the OneFS vfs moduleTim Prouty5-27/+17
2009-01-11Move cli_api_pipe() to its only user cli_pipe.cVolker Lendecke3-29/+26
2009-01-11tevent: Fix build breakTim Prouty1-1/+1
2009-01-11Fix tevent_common_context_destructor to remove all events instead of just ↵Bo Yang1-4/+10
the first one Signed-off-by: Bo Yang <boyang@novell.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-10Don't set child->requests to NULL in parent after forkBo Yang1-1/+0
2009-01-10Fix a type-punned errorVolker Lendecke1-1/+1
2009-01-10Fix a C++ warningVolker Lendecke1-2/+2
2009-01-09Minor tidyup of unix account missing code.Jeremy Allison1-5/+5
Jeremy.
2009-01-09Remove the rpc_srv_register wrapper around rpc_pipe_register_commandsVolker Lendecke1-15/+4
2009-01-09Call rpc_srv_register instead of rpc_pipe_register_commands in eventlog and ↵Volker Lendecke1-2/+2
svcctl
2009-01-09Fake up ndr_table_spoolssVolker Lendecke1-4/+27
2009-01-09Pass the full ndr_interface_table into the s3 rpcserver when registeringVolker Lendecke17-15/+29
2009-01-09Add derpc_transport_string_by_transport(), apply some constVolker Lendecke3-8/+18
2009-01-09start rpcclient epmapperVolker Lendecke3-1/+136
2009-01-09Fix some nonempty blank linesVolker Lendecke1-26/+26
2009-01-09Simplify find_pipe_fns_by_context slightlyVolker Lendecke1-8/+4