1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

18373 Commits

Author SHA1 Message Date
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
7a2c4acf86 s4 torture: Add additional streams create disposition test 2009-02-18 23:48:35 -08:00
Günther Deschner
cf5ba874de s4-smbtorture: enable spoolss_AddPrinterDriverEx ndr test.
Guenther
2009-02-18 20:35:48 +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
Günther Deschner
64cec99843 s4-smbtorture: fix spoolss test after count out,ref idl changes.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
9877f3d574 s4-spoolss: fix spoolss server after out,ref count pointer changes.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
f34f4074f8 s4-spoolss: fix dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx server.
Guenther
2009-02-17 00:32:58 +01:00
Günther Deschner
2fde3d2bc4 s4-smbtorture: fix spoolss notify test.
Guenther
2009-02-17 00:32:28 +01:00
Stefan Metzmacher
94abbead1b s4:netlogon: implement netr_LogonGetCapabilities with NT_STATUS_NOT_IMPLEMENTED
This hopefully fixes bug .

metze
2009-02-16 11:00:07 +01:00
Stefan Metzmacher
201a033c8f s4:netlogon: always return correct negotiate_flags in Authenticate[2|3]()
metze
2009-02-16 09:53:51 +01:00
Günther Deschner
886c028e44 s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
Guenther
2009-02-14 01:21:21 +01:00
Aravind Srinivasan
4d83d3a286 s4 torture: Add rename test to imitate the way OS X renames files
This tests for mis-behaved case-insensitive get_real_filename
implementations.
2009-02-13 13:18:54 -08:00
Jeremy Allison
7d73130125 Fix the build. When you do "make distclean; ./autogen; ./configure; make" and it still doesn't build you know it's messed up.
Jeremy.
2009-02-13 10:36:11 -08:00
Stefan Metzmacher
f3262027a3 s4:configure: require the same version for external and internal libtevent
Until we reach 1.0.0, we better require the exact same version.

metze
2009-02-13 18:55:22 +01:00
Stefan Metzmacher
f131718c60 s4:lib/socket: add socket_address_copy()
metze
2009-02-13 13:44:38 +01:00
Stefan Metzmacher
f3c5bd9b77 s4:ldb_ildap: remove compiler warnings
metze
2009-02-13 13:44:37 +01:00
Stefan Metzmacher
3c9ad421fb s4:libcli/ldap: use const char * const *attributes as in all other places
metze
2009-02-13 13:44:36 +01:00
Stefan Metzmacher
66b2604ef1 s4:ntvfs_generic: use talloc_get_type() to remote compiler warnings
metze
2009-02-13 13:44:36 +01:00
Stefan Metzmacher
abb96e202b s4:torture/samba3rpc: fix the build after get_myname() changes
metze
2009-02-13 13:36:11 +01:00
Volker Lendecke
c6f82b5259 Remove the s4 version of smbspool.c 2009-02-13 12:15:04 +01:00
Volker Lendecke
0844cca1d5 Replace get_myname() with the talloc version from v3-3-test 2009-02-13 12:15:03 +01:00
Andrew Bartlett
0ccdb5f74a Remove useless invocation of messaging_init() in RPC-PAC test 2009-02-13 16:56:46 +11:00
Andrew Bartlett
cd6026135d Push sam_get_server_info_principal into the auth subsystem
This means it must be accessed via the supplied auth_context in the
GENSEC server, and should remove the hard depenceny of GENSEC on the
auth subsystem and ldb (allowing LDB not to rely on LDB is considered
a good thing, apparently)

Andrew Bartlett
2009-02-13 14:02:49 +11:00
Andrew Bartlett
71632a1697 Remove auth/ntlm as a dependency of GENSEC by means of function pointers.
When starting GENSEC on the server, the auth subsystem context must be
passed in, which now includes function pointers to the key elements.

This should (when the other dependencies are fixed up) allow GENSEC to
exist as a client or server library without bundling in too much of
our server code.

Andrew Bartlett
2009-02-13 10:24:16 +11:00
Volker Lendecke
147a2e3440 Fix Coverity ID 871 -- do not dereference "sp" before checking for NULL 2009-02-12 23:20:20 +01:00
Volker Lendecke
d75fe9b393 Fix Coverity ID 872 -- we have alread dereferenced "ac" 2 lines above 2009-02-12 23:17:19 +01:00
Jelmer Vernooij
082ba6a1ad Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-12 16:00:46 +01:00
Jelmer Vernooij
762fdc8c5c Provide a SamDB TestCase-class that can be used by OpenChange. 2009-02-12 16:00:11 +01:00
Jelmer Vernooij
7048e75aee Use created loadparm context, rather than the one specified on the command-line. 2009-02-12 15:58:11 +01:00
Günther Deschner
69b1550f7f s4-smbtorture: fix the build of the ndr spoolss tester.
Guenther
2009-02-11 23:36:43 +01:00
Günther Deschner
876e926c0c s4-spoolss: fix rpc_server stub names for opnum 0x42 and 0x43.
Guenther
2009-02-11 22:36:17 +01:00
Zack Kirsch
4e1a4cbe1f s4 torture: Smbtorture additions for Windows BRL
- Adds a few new BRL tests to RAW-LOCK
- Adds a "win7" target to allow torture to handle protocol changes in
  windows 7
2009-02-11 12:23:52 -08:00
Zack Kirsch
307f4a66ac s4 torture: Two minor fixes to smbtorture BRL tests. 2009-02-11 12:23:32 -08:00
Jelmer Vernooij
be9a4157f0 Catch specific exceptions, rather than catching everything, which might hide other exceptions silently. 2009-02-11 19:04:33 +01:00
Jelmer Vernooij
9e71fef57b Use convenience function for finding setup dir in SaMDB tests. 2009-02-11 18:45:51 +01:00
Jelmer Vernooij
53b59aa2cf Use convenience function for finding setup_dir based on location of
python module.
2009-02-11 18:44:57 +01:00
Jelmer Vernooij
ddb4db7c65 Move some samdb-specific code out of provision. 2009-02-11 18:31:52 +01:00
Jelmer Vernooij
d9e94bf336 Make it possible to override the setup path. 2009-02-11 18:17:00 +01:00
Jelmer Vernooij
f13895851f Cancel transactions when exceptions are raised. 2009-02-11 17:54:58 +01:00
Jelmer Vernooij
71221fded4 --interactive doesn't take any argument. 2009-02-11 16:58:00 +01:00
Tim Prouty
7eb097a66d s4 torture: Change nttransrename to use a normal access mask
batch9 already tests for stat-only opens
2009-02-10 19:35:33 -08:00
Günther Deschner
e3e03d7d83 s4-spoolss: fix dcerpc_spoolss_ReplyOpenPrinter caller.
Guenther
2009-02-10 23:57:30 +01:00
Günther Deschner
c1dbcd4cf8 s4-smbtorture: fix SPOOLSS test w.r.t. spoolss_ReplyOpenPrinter.
Guenther
2009-02-10 23:57:30 +01:00
Andrew Tridgell
fe5b0b595c added a workaround to the handling of unicodePwd for Win7-beta
The Win7-beta domain process has changed. It no longer uses SAMR for
setting the password, and instead uses a ldap modify on a SASL
encrypted ldap connection. We didn't handle that as the unicodePwd
attribute has a dual use, holding the nt style MD4 hases for DRS
replication, but holding a UTF-16 plaintext password for a LDAP
modify.

This patch copes with the ldap unicodePwd modify by recognising the
format and creating the correct attributes on the fly. Note that this
assumes we will never get a unicodePwd attribute set in NT MD4 format
with the first 2 and last 2 bytes set to 0x22 0x00. 

Andrew Bartlett is looking at a more robust solution, possibly using a
flag to say that this modify came via ldap, and not internal ldb
calls.
2009-02-10 17:31:57 +11:00
Andrew Tridgell
72c2da9d32 fixed two problems with the DsRGetDCNameEx2 call, as used by
Win7-beta.

The first problem is that we removed the dnsDomain attribute a while
back, so we were returning NULL for two fields. We now return the
realm.

The second problem is that Win7-beta sends the domain in the form the
user typed it, so it may be in either the short or long form. We check
for the short form and convert if needed.
2009-02-10 17:28:05 +11:00
Jelmer Vernooij
69fff2d750 Revert "Fix errornos assumption that all compilers are gcc"
This breaks (some?) files with gcc.

This reverts commit 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.
2009-02-09 23:29:41 +01:00