1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00

51676 Commits

Author SHA1 Message Date
Volker Lendecke
d0ee90ace9 Fix a buffer handling bug when adding lots of registry keys
This is *ancient*... From 2002, and nobody noticed until someone added lots of
shares using net conf... :-)
2009-02-19 14:26:50 +01:00
Günther Deschner
7d44cd50e8 s3: re-run make samba3-idl.
Guenther
2009-02-19 13:06:11 +01:00
Günther Deschner
1852cd0a60 spoolss: fill in spoolss_GetPrintProcessorDirectory.
Guenther
2009-02-19 13:05:32 +01:00
Günther Deschner
e9d5405948 s3-libnet: fix coverity #848 (UNINIT).
Guenther
2009-02-19 13:01:59 +01:00
Stefan Metzmacher
052f3f0d4d s4:librpc/ndr: if uninitialized variable in string_array code
metze
2009-02-19 11:13:35 +01:00
Stefan Metzmacher
7082e4526f s3:librpc/ndr: if uninitialized variable in string_array code
metze
2009-02-19 11:13:34 +01:00
Stefan Metzmacher
d61e152b29 librpc: rerun make idl 2009-02-19 11:13:34 +01:00
Stefan Metzmacher
6563c2b7e4 pidl:NDR/Parser: don't call [noopnum] function when creating the ndr_interface_table
metze
2009-02-19 11:13:33 +01:00
Zack Kirsch
96b3242f12 s3 OneFS: Fixes "inherit permissions" and "nt acl support" for Onefs. 2009-02-19 00:15:44 -08:00
todd stecher
59d21afa83 S3: Dumb down debug spew in perfcount module code 2009-02-19 00:01:41 -08:00
todd stecher
fdcd5a3a20 S3: Make changes to perfcount API set for when a single request leads to multiple replies
(e.g. reply_echo). Change test and onefs modules to match new api set (thanks Volker!).
2009-02-19 00:01:00 -08:00
Tim Prouty
6bac890533 s4 torture: Add new test to create a file with a lot of streams
This tests how streaminfo deals with large buffers

smbclient seems to have problems when the buffer size approaches the
max data size.  Also smbclient exposes no way to specify the max data
size that is sent in a trans2 request.  Instead it hardcodes in a much
larger max than windows uses.  For these reasons this test isn't
actually run, but is more of a reference for how windows handles
streaminfo buffers.
2009-02-18 23:48:35 -08:00
Tim Prouty
ab025bf0fe s3: Fix bug opening streams with truncating disposition
Do not attempt to delete streams on a truncating open, if the name
we're opening is itself a stream.

Port 176e8857203944bc332844b700749120ce90c891 to standard open path
2009-02-18 23:48:35 -08:00
Tim Prouty
7a2c4acf86 s4 torture: Add additional streams create disposition test 2009-02-18 23:48:35 -08:00
Zack Kirsch
053e1873c5 s3: OneFS: Pass in the client's fnum to the ifs_cbrl syscall. 2009-02-18 20:50:05 -08:00
Aravind Srinivasan
176e885720 s3: Fix OneFS bug opening streams with truncating disposition
Do not attempt to delete streams on a truncating open, if the name we're
opening is itself a stream
2009-02-18 20:50:05 -08:00
Aravind Srinivasan
8e8aa27e1b s3: Fix streams enumeration bug in OneFS implementation
Previously, we didn’t call SMB_VFS_OPEN_DIR from the streams module,
instead we called fdopendir(). As a result we failed to populate the
dir_state list in the readdirplus module. So when we tried to view the
stream data, we will always returned NULL.

To solve this I separated onefs_opendir() and the initialization of
the dir_state list. This is done by introducing a new utility function
“onefs_rdp_add_dir_state()”, which initializes the dir_state structure
and adds it to the dir_state list.  This function is called from the
streams module before calling readdir().
2009-02-18 20:49:31 -08:00
todd stecher
c19214424b S3: Log warning in smbstatus about lack of pid in anonymous mode. 2009-02-18 18:08:33 -08:00
todd stecher
03421944b2 S3: Stop creating SMBD cores when failing to create a pipe.
This was uncovered when the MAX FD limit was hit, causing an instant core
and invoking error reporting. This fix causes SMBD to exit, but without
building a core.
2009-02-18 18:08:33 -08:00
todd stecher
c441f58ded S3: Allow SMBD processes to survive in low memory condidtions
This commit adds a configure argument which allows for setting MADV_PROTECT
in the madvise() API.  With this enabled the kernel won't kill SMBD when
it's running low on memory.
2009-02-18 18:08:32 -08:00
Günther Deschner
cdcd525a05 s3-spoolss: remove old spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:07:58 +01:00
Günther Deschner
3b3ab50c05 s3-spoolss: use pidl for _spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:06:57 +01:00
Günther Deschner
aaec578c51 s3-rpcclient: use rpccli_spoolss_GetPrinterDriverDirectory in rpcclient.
Guenther
2009-02-19 02:06:12 +01:00
Günther Deschner
3089e004fe s3: re-run make samba3-idl.
Guenther
2009-02-19 02:05:38 +01:00
Günther Deschner
05a0bcc056 spoolss: make spoolss_DriverDirectoryInfo1 public and gensize.
Guenther
2009-02-19 02:04:56 +01:00
Günther Deschner
8dbb1d63e5 s3-spoolss: add support for "AddPort" via _spoolss_XcvData for Vista.
Guenther
2009-02-19 00:56:07 +01:00
Volker Lendecke
c5cc27c493 Interesting C compiler you have there... :-) 2009-02-19 00:52:34 +01:00
Günther Deschner
8e33960655 s3: re-run make samba3-idl.
Guenther
2009-02-19 00:51:15 +01:00
Günther Deschner
266e8954be spoolss: add spoolss_PortData2 (used by vista).
Guenther
2009-02-19 00:50:42 +01:00
Günther Deschner
28158165da spoolss: use spoolss access mask in OpenPrinter{Ex}.
Guenther
2009-02-19 00:50:33 +01:00
Jeremy Allison
c9295c93d1 Fix coverity CID-602. Possible use of uninitialized var.
Jeremy.
2009-02-18 15:45:49 -08:00
Günther Deschner
cf5ba874de s4-smbtorture: enable spoolss_AddPrinterDriverEx ndr test.
Guenther
2009-02-18 20:35:48 +01:00
Günther Deschner
836d2f5fd8 s3: re-run make samba3-idl.
Guenther
2009-02-18 20:21:09 +01:00
Günther Deschner
2cf4290116 spoolss: fix idl for spoolss_AddPrinterDriver and spoolss_AddPrinterDriverEx.
Guenther
2009-02-18 20:19:05 +01:00
Günther Deschner
890226c112 spoolss: add spoolss_AddDriverInfo8 (used by vista for adding drivers).
Guenther
2009-02-18 20:18:56 +01:00
Günther Deschner
1cd34565d0 s3-spoolss: remove old spoolss_XcvData.
Guenther
2009-02-18 16:12:27 +01:00
Günther Deschner
7312342062 s3-spoolss: use pidl for _spoolss_XcvData.
Guenther
2009-02-18 16:11:01 +01:00
Günther Deschner
e9bfc0ab51 s3: re-run make samba3-idl.
Guenther
2009-02-18 16:10:40 +01:00
Günther Deschner
6c91a83e94 spoolss: fix spoolss_MonitorUi struct.
Guenther
2009-02-18 16:10:26 +01:00
Günther Deschner
6a53ff1ea8 s3: re-run make samba3-idl.
Guenther
2009-02-18 14:47:33 +01:00
Günther Deschner
2e59cb50cc spoolss: add spoolss_MonitorUi struct.
Guenther
2009-02-18 14:46:19 +01:00
Günther Deschner
719221168f spoolss: add spoolss_PortData1.
Guenther
2009-02-18 14:46:05 +01:00
Stefan Metzmacher
975a881d54 tevent: add tevent_wakeup_send/recv()
This can be used as tevent_req based timer event.

metze
2009-02-18 10:31:36 +01:00
Stefan Metzmacher
7f6618a3de tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()
This makes more clear what the function does.

metze
2009-02-18 10:31:35 +01:00
Stefan Metzmacher
3f147cb7a3 s4:netlogon: don't mix in and out negotiate_flags in dcesrv_netr_ServerAuthenticate()
metze
2009-02-18 10:22:30 +01:00
Andrew Bartlett
48ba640100 Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel 2009-02-18 17:47:43 +11:00
Andrew Bartlett
6b8b7665bd paper over failure to reprovision with os.unlink()
We need to figure out why the deletes on the database fail, but for
now doing an unlink of templates_tdb isn't too bad.

Andrew Bartlett
2009-02-18 17:44:07 +11:00
Andrew Tridgell
bb7e6f0f51 Worked around a problem with select/poll/epoll and gnutls
Our packet layer relies on the event system reliably telling us when a
packet is available. When we are using a socket layer like TLS then
things get a bit trickier, as there may be bytes in the encryption
buffer which could be read even if there are no bytes at the socket
level. The GNUTLS library is supposed to prevent this happening by
always leaving some data at the socket level when there is data to be
processed in its buffers, but it seems that this is not always
reliable.

To work around this I have added a new packet option
packet_set_unreliable_select() which tells the packet layer to not
assume that the socket layer has a reliable select, and to instead
keep trying to read from the socket until it gets back no data. This
option is set for the ldap client and server when TLS is negotiated.

This seems to fix the problems with the ldaps tests.
2009-02-18 17:37:45 +11:00
Andrew Tridgell
b1ff79dbb2 fixed some of the TLS problems
This fixes two things in the TLS support for Samba4. The first is to
use a somewhat more correct hostname instead of 'Samba' when
generating the test certificates. That allows TLS test clients (such
as gnutls-cli) to connect to Samba4 using auto-generated certificates.

The second fix is to add a call to gcry_control() to tell gcrypt to
use /dev/urandom instead of /dev/random (on systems that support
that). That means that test certificate generation is now very fast,
which was previously an impediment to putting the TLS tests on the
build farm.
2009-02-18 14:46:57 +11:00
Jeremy Allison
0281166bb9 Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin@sandia.gov>.
Jeremy.
2009-02-17 15:54:33 -08:00