ira/wip.git
14 years agospoolss: remove unused spoolss_StringArray2.
Günther Deschner [Thu, 10 Dec 2009 13:23:49 +0000 (14:23 +0100)]
spoolss: remove unused spoolss_StringArray2.

Guenther

14 years agos4-smbtorture: fix and extend enum printerkey test.
Günther Deschner [Thu, 10 Dec 2009 13:21:12 +0000 (14:21 +0100)]
s4-smbtorture: fix and extend enum printerkey test.

Guenther

14 years agos3-spoolss: fix enumprinter key client and server.
Günther Deschner [Thu, 10 Dec 2009 13:20:22 +0000 (14:20 +0100)]
s3-spoolss: fix enumprinter key client and server.

Guenther

14 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 10 Dec 2009 13:27:33 +0000 (14:27 +0100)]
s3: re-run make samba3-idl.

Guenther

14 years agospoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.
Günther Deschner [Thu, 10 Dec 2009 13:19:28 +0000 (14:19 +0100)]
spoolss: use spoolss_KeyNames in spoolss_EnumPrinterKey.

Guenther

14 years agospoolss: add spoolss_KeyNames union.
Günther Deschner [Thu, 10 Dec 2009 13:18:46 +0000 (14:18 +0100)]
spoolss: add spoolss_KeyNames union.

Guenther

14 years agos3:packaging: Fix version detection.
Karolin Seeger [Thu, 10 Dec 2009 13:57:08 +0000 (14:57 +0100)]
s3:packaging: Fix version detection.

Adapted from 728b01fc03.
Thanks god I was not root! It would have delted /*!

Karolin

14 years agoImplementation of sDRightsEffective, allowedAttributesEffective and allowedChildClass...
Nadezhda Ivanova [Thu, 10 Dec 2009 13:49:53 +0000 (15:49 +0200)]
Implementation of sDRightsEffective, allowedAttributesEffective and allowedChildClassesEffective.

Behavior as documented in WSPP and tested. Needs optimisation though.

14 years agos3:packaging: Fix source dir.
Karolin Seeger [Thu, 10 Dec 2009 13:26:58 +0000 (14:26 +0100)]
s3:packaging: Fix source dir.

Karolin

14 years agos3:packaging: Fix typo in comment.
Karolin Seeger [Thu, 10 Dec 2009 13:08:43 +0000 (14:08 +0100)]
s3:packaging: Fix typo in comment.

Karolin

14 years agos4-ldb: fixed 2 bugs in ldb_dn_set_extended_component()
Andrew Tridgell [Thu, 10 Dec 2009 06:23:00 +0000 (17:23 +1100)]
s4-ldb: fixed 2 bugs in ldb_dn_set_extended_component()

The first bug was that setting a component twice could cause it to
appear twice in the DN.

The second bug was that using an existing ldb_val from a previous call
of ldb_dn_get_extended_component() as an argument to
ldb_dn_set_extended_component() would cause a valgrind error (as the
array the val pointed into will change).

14 years agos4-libcli: GUID_from_ndr_blob() is strict about the blob size
Andrew Tridgell [Thu, 10 Dec 2009 03:48:56 +0000 (14:48 +1100)]
s4-libcli: GUID_from_ndr_blob() is strict about the blob size

We need to create a blob of the right length

14 years agos4-schema: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:36:12 +0000 (14:36 +1100)]
s4-schema: use GUID_to_ndr_blob()

14 years agos4-schema: use binsearch.h
Andrew Tridgell [Thu, 10 Dec 2009 03:35:42 +0000 (14:35 +1100)]
s4-schema: use binsearch.h

14 years agoutil: added binsearch.h for binary array searches
Andrew Tridgell [Thu, 10 Dec 2009 03:35:24 +0000 (14:35 +1100)]
util: added binsearch.h for binary array searches

This was moved from the schema_query code. It will now be used in more
than one place, so best to make it a library macro. I think there are
quite a few places that could benefit from this.

14 years agos4-dsdb: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:33:13 +0000 (14:33 +1100)]
s4-dsdb: use GUID_to_ndr_blob()

14 years agos4-ldb: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:47 +0000 (14:32 +1100)]
s4-ldb: use GUID_to_ndr_blob()

14 years agos4-libnet: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:29 +0000 (14:32 +1100)]
s4-libnet: use GUID_to_ndr_blob()

14 years agos4-libcli: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:32:15 +0000 (14:32 +1100)]
s4-libcli: use GUID_to_ndr_blob()

14 years agos4-server: use GUID_to_ndr_blob() in cldap and smb servers
Andrew Tridgell [Thu, 10 Dec 2009 03:31:52 +0000 (14:31 +1100)]
s4-server: use GUID_to_ndr_blob() in cldap and smb servers

14 years agolibcli: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:31:13 +0000 (14:31 +1100)]
libcli: use GUID_to_ndr_blob()

14 years agos3-ldb: use GUID_to_ndr_blob()
Andrew Tridgell [Thu, 10 Dec 2009 03:30:46 +0000 (14:30 +1100)]
s3-ldb: use GUID_to_ndr_blob()

this also fixes an error in NTSTATUS handling

14 years agolibndr: added a GUID_to_ndr_blob() helper function
Andrew Tridgell [Thu, 10 Dec 2009 03:29:19 +0000 (14:29 +1100)]
libndr: added a GUID_to_ndr_blob() helper function

This can be used in many places that deal with GUIDs

14 years agos4-ldb: simplify ldif handlers using new GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:27:09 +0000 (11:27 +1100)]
s4-ldb: simplify ldif handlers using new GUID functions

14 years agos4-dsdb: simplify samdb_result_guid()
Andrew Tridgell [Thu, 10 Dec 2009 00:26:36 +0000 (11:26 +1100)]
s4-dsdb: simplify samdb_result_guid()

14 years agos4-dsdb: simplify linked attributes code using GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:26:18 +0000 (11:26 +1100)]
s4-dsdb: simplify linked attributes code using GUID functions

14 years agos4-dsdb: simplify schema code using new GUID functions
Andrew Tridgell [Thu, 10 Dec 2009 00:25:44 +0000 (11:25 +1100)]
s4-dsdb: simplify schema code using new GUID functions

14 years agos4-smb2: use new GUID function in smb2 negprot
Andrew Tridgell [Thu, 10 Dec 2009 00:25:13 +0000 (11:25 +1100)]
s4-smb2: use new GUID function in smb2 negprot

14 years agos4-libcli: use new GUID functions in libcli
Andrew Tridgell [Thu, 10 Dec 2009 00:24:54 +0000 (11:24 +1100)]
s4-libcli: use new GUID functions in libcli

14 years agos4-dsdb: use GUID_from_ndr_blob() to create dsdb_get_extended_dn_guid()
Andrew Tridgell [Thu, 10 Dec 2009 00:23:20 +0000 (11:23 +1100)]
s4-dsdb: use GUID_from_ndr_blob() to create dsdb_get_extended_dn_guid()

14 years agolibrpc: split out a separate GUID_from_ndr_blob() function
Andrew Tridgell [Thu, 10 Dec 2009 00:22:20 +0000 (11:22 +1100)]
librpc: split out a separate GUID_from_ndr_blob() function

This will simplify many of the places that deal with NDR formatted
GUIDs

14 years agos4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
Günther Deschner [Wed, 9 Dec 2009 14:31:51 +0000 (15:31 +0100)]
s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.

This demonstrates that s3 still does not have that call implemented correctly.

Guenther

14 years agos3: check for PAM_RADIO_TYPE.
Bo Yang [Thu, 10 Dec 2009 11:29:24 +0000 (19:29 +0800)]
s3: check for PAM_RADIO_TYPE.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3: Fix build on non-linux platform.
Bo Yang [Thu, 10 Dec 2009 09:20:03 +0000 (17:20 +0800)]
s3: Fix build on non-linux platform.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agoWHATSNEW4: Samba 3.0 is not up-to-date.
Karolin Seeger [Wed, 9 Dec 2009 08:15:39 +0000 (09:15 +0100)]
WHATSNEW4: Samba 3.0 is not up-to-date.

Karolin

14 years agos4-dsdb: added dsdb_functional_level() helper function
Andrew Tridgell [Wed, 9 Dec 2009 04:18:37 +0000 (15:18 +1100)]
s4-dsdb: added dsdb_functional_level() helper function

14 years agos4-drs: ensure we fill in ncRoot_dn in getncchanges
Andrew Tridgell [Wed, 9 Dec 2009 03:39:05 +0000 (14:39 +1100)]
s4-drs: ensure we fill in ncRoot_dn in getncchanges

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-drs: use parentGUID attribute in getncchanges
Andrew Tridgell [Wed, 9 Dec 2009 03:38:25 +0000 (14:38 +1100)]
s4-drs: use parentGUID attribute in getncchanges

Now that parentGUID is reliable again, use it instead
of building our own

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-ldb: fixed nested searches inside ldb modules
Andrew Tridgell [Wed, 9 Dec 2009 03:37:26 +0000 (14:37 +1100)]
s4-ldb: fixed nested searches inside ldb modules

We need to keep a search count in ltdb to allow for nesting
of searches inside a module

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4-ldb: added a missing ltdb_unlock_read()
Andrew Tridgell [Wed, 9 Dec 2009 03:36:50 +0000 (14:36 +1100)]
s4-ldb: added a missing ltdb_unlock_read()

14 years agos4-dsdb: use dsdb_module_search_dn in repl_meta_data
Andrew Tridgell [Wed, 9 Dec 2009 03:35:46 +0000 (14:35 +1100)]
s4-dsdb: use dsdb_module_search_dn in repl_meta_data

This allows us to search below the current module. That
will be important when we start using the results of this
search to get the linked attributes meta data right

14 years agos4-dsdb: fixed steal of parentGUID for empty msg
Andrew Tridgell [Wed, 9 Dec 2009 03:34:13 +0000 (14:34 +1100)]
s4-dsdb: fixed steal of parentGUID for empty msg

msg->elements could be NULL before we add parentGUID

14 years agos3: Give the user a chance to change password when password will expire soon.
Bo Yang [Thu, 10 Dec 2009 06:30:13 +0000 (14:30 +0800)]
s3: Give the user a chance to change password when password will expire soon.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3: keep subsecond times on cross-filesystem moves and don't follow links
Björn Jacke [Wed, 9 Dec 2009 01:06:17 +0000 (02:06 +0100)]
s3: keep subsecond times on cross-filesystem moves and don't follow links

14 years agos3:configure: check for lutimes, futimes and futimens
Björn Jacke [Wed, 9 Dec 2009 01:04:23 +0000 (02:04 +0100)]
s3:configure: check for lutimes, futimes and futimens

14 years agoMerge commit 'origin/master' into abartlet-devel
Andrew Bartlett [Wed, 9 Dec 2009 00:53:45 +0000 (11:53 +1100)]
Merge commit 'origin/master' into abartlet-devel

14 years agos4: On the way to alpha11
Andrew Bartlett [Wed, 9 Dec 2009 00:52:41 +0000 (11:52 +1100)]
s4: On the way to alpha11

14 years agos3:doc: make dos filetimes description less contradictory
Björn Jacke [Tue, 8 Dec 2009 20:32:51 +0000 (21:32 +0100)]
s3:doc: make dos filetimes description less contradictory

14 years agos3: make sys_posix_fallocate more generic
Björn Jacke [Tue, 8 Dec 2009 20:13:19 +0000 (21:13 +0100)]
s3: make sys_posix_fallocate more generic

this is in preparation for other preallocation methods to be introduced.

14 years agos3-spoolss: use SPOOLSS_ARCHITECTURE_ALL in driver enum server code.
Günther Deschner [Tue, 8 Dec 2009 13:46:10 +0000 (14:46 +0100)]
s3-spoolss: use SPOOLSS_ARCHITECTURE_ALL in driver enum server code.

Guenther

14 years agospoolss: add more spoolss architectures to IDL.
Günther Deschner [Tue, 1 Dec 2009 23:59:21 +0000 (00:59 +0100)]
spoolss: add more spoolss architectures to IDL.

Guenther

14 years agoThis is alpha10 samba-4.0.0alpha10
Andrew Bartlett [Tue, 8 Dec 2009 03:12:19 +0000 (14:12 +1100)]
This is alpha10

14 years agoA WHATSNEW for alpha10
Andrew Bartlett [Tue, 8 Dec 2009 03:11:45 +0000 (14:11 +1100)]
A WHATSNEW for alpha10

14 years agos4:selftest: skip SMB2-ACLS for now
Stefan Metzmacher [Tue, 8 Dec 2009 11:53:51 +0000 (12:53 +0100)]
s4:selftest: skip SMB2-ACLS for now

metze

14 years agos4:selftest: run RAW-STREAMS again
Stefan Metzmacher [Tue, 8 Dec 2009 10:52:25 +0000 (11:52 +0100)]
s4:selftest: run RAW-STREAMS again

metze

14 years agoRAW-STREAMS: convert failing tests to torture api
Stefan Metzmacher [Tue, 8 Dec 2009 10:47:06 +0000 (11:47 +0100)]
RAW-STREAMS: convert failing tests to torture api

This is needed as we want to mark failing tests as
known failures.

metze

14 years agospoolss: fix spoolss_DriverInfo8 IDL.
Günther Deschner [Mon, 7 Dec 2009 17:55:08 +0000 (18:55 +0100)]
spoolss: fix spoolss_DriverInfo8 IDL.

found by RPC-SPOOLSS torture teset.

Guenther

14 years agos4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
Günther Deschner [Mon, 7 Dec 2009 18:26:45 +0000 (19:26 +0100)]
s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.

Guenther

14 years agos3-spoolss: cleanup _spoolss_EnumPrinterDrivers().
Günther Deschner [Mon, 7 Dec 2009 15:19:26 +0000 (16:19 +0100)]
s3-spoolss: cleanup _spoolss_EnumPrinterDrivers().

Guenther

14 years agos3-spoolss: remove unused architecture from fill_printer_driver_info1().
Günther Deschner [Mon, 7 Dec 2009 15:18:55 +0000 (16:18 +0100)]
s3-spoolss: remove unused architecture from fill_printer_driver_info1().

Guenther

14 years agos3-spoolss: remove ridiculous amount of duplicate driver code.
Günther Deschner [Thu, 3 Dec 2009 18:42:22 +0000 (19:42 +0100)]
s3-spoolss: remove ridiculous amount of duplicate driver code.

Guenther

14 years agos3-spoolss: fully support level 8 drivers.
Günther Deschner [Thu, 3 Dec 2009 18:11:53 +0000 (19:11 +0100)]
s3-spoolss: fully support level 8 drivers.

Guenther

14 years agos3-spoolss: use driver level info8 everywhere in spoolss server internally.
Günther Deschner [Fri, 27 Nov 2009 00:49:08 +0000 (01:49 +0100)]
s3-spoolss: use driver level info8 everywhere in spoolss server internally.

Guenther

14 years agos4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.
Günther Deschner [Tue, 8 Dec 2009 09:21:28 +0000 (10:21 +0100)]
s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.

Guenther

14 years agos3: allocate only "new" space, not "old" sparse space in the posix_fallocate path
Björn Jacke [Tue, 8 Dec 2009 09:30:03 +0000 (10:30 +0100)]
s3: allocate only "new" space, not "old" sparse space in the posix_fallocate path

this makes the posix_fallocate path work analogous to the manual allocate path.

14 years agos4:selftest: use ${selftest_prefix} instead of hardcoded st/
Stefan Metzmacher [Tue, 8 Dec 2009 08:19:35 +0000 (09:19 +0100)]
s4:selftest: use ${selftest_prefix} instead of hardcoded st/

metze

14 years agopackaging(RHEL-CTDB): clean some commented out lines from the files sections
Michael Adam [Mon, 7 Dec 2009 13:27:28 +0000 (14:27 +0100)]
packaging(RHEL-CTDB): clean some commented out lines from the files sections

Michael

14 years agopackaging(RHEL-CTDB): explicitly list library versions in samba-winbind-32bit
Michael Adam [Mon, 7 Dec 2009 13:26:03 +0000 (14:26 +0100)]
packaging(RHEL-CTDB): explicitly list library versions in samba-winbind-32bit

Michael

14 years agopackaging(RHEL-CTDB): explicitly list library versions in samba-common
Michael Adam [Mon, 7 Dec 2009 13:25:32 +0000 (14:25 +0100)]
packaging(RHEL-CTDB): explicitly list library versions in samba-common

Michael

14 years agopackaging(RHEL-CTDB): explicitly list all packaged idmap/nss-info/charset modules
Michael Adam [Mon, 7 Dec 2009 13:20:24 +0000 (14:20 +0100)]
packaging(RHEL-CTDB): explicitly list all packaged idmap/nss-info/charset modules

in the samba-common package.
This is to  better be able to catch regressions or
build problems.

Michael

14 years agopackaging(RHEL-CTDB): explicitly list all the vfs modules in the main package
Michael Adam [Mon, 7 Dec 2009 13:16:15 +0000 (14:16 +0100)]
packaging(RHEL-CTDB): explicitly list all the vfs modules in the main package

Instead of the wildcard list, to better control regressions or
build problems.

Michael

14 years agopackaging(RHEL-CTDB): add some checks to test the built smbd
Michael Adam [Mon, 7 Dec 2009 13:12:05 +0000 (14:12 +0100)]
packaging(RHEL-CTDB): add some checks to test the built smbd

Test whether some required features have been built into smbd.
Can be extended...

Michael

14 years agopackaging(RHEL-CTDB): make everything instead of all in the build stage
Michael Adam [Mon, 7 Dec 2009 13:11:32 +0000 (14:11 +0100)]
packaging(RHEL-CTDB): make everything instead of all in the build stage

Michael

14 years agos4-selftest: show the test summary at the end of 'make test' in the build farm
Andrew Tridgell [Tue, 8 Dec 2009 04:58:45 +0000 (15:58 +1100)]
s4-selftest: show the test summary at the end of 'make test' in the build farm

This should make it easier to see what tests are failing with what
parameters

14 years agos4-heimdal: fixed a use-after-free heimdal bug
Andrew Tridgell [Tue, 8 Dec 2009 04:15:41 +0000 (15:15 +1100)]
s4-heimdal: fixed a use-after-free heimdal bug

This caused samba4kinit to segfault on some systems

14 years agos4-drs: use -r to ldbdel in unvampire devel script
Andrew Tridgell [Tue, 8 Dec 2009 03:42:08 +0000 (14:42 +1100)]
s4-drs: use -r to ldbdel in unvampire devel script

This ensures we delete any nTDSConnection objects

14 years agos4-ldb: fixed ldbdel with -r (recursive deletion)
Andrew Tridgell [Tue, 8 Dec 2009 03:40:20 +0000 (14:40 +1100)]
s4-ldb: fixed ldbdel with -r (recursive deletion)

We need to delete the deepest DNs first

14 years agos4:build Bump ldb and tdb required versions.
Andrew Bartlett [Mon, 7 Dec 2009 23:27:30 +0000 (10:27 +1100)]
s4:build Bump ldb and tdb required versions.

Hopefully this will ensure we don't get an older version from the system.

14 years agos4 torture: Cleanup RAW-ACLS a bit
Tim Prouty [Tue, 8 Dec 2009 01:19:30 +0000 (17:19 -0800)]
s4 torture: Cleanup RAW-ACLS a bit

Don't check SEC_DESC_DACL_AUTO_INHERITED right now
Disable RAW-ACLS-INHERITFLAGS for the short term
Update samba4's knownfail accordingly

14 years agos4-selftest: don't consider spoolss failures to be an error in s4
Andrew Tridgell [Tue, 8 Dec 2009 01:37:17 +0000 (12:37 +1100)]
s4-selftest: don't consider spoolss failures to be an error in s4

14 years agos4/smbstreams: Fix memory use after free.
Kamen Mazdrashki [Sat, 5 Dec 2009 23:59:42 +0000 (01:59 +0200)]
s4/smbstreams: Fix memory use after free.

The bug is that sometimes 'streams' is parent for 'new_name'.
With this said, 'new_name' must be dupped before 'streams'
pointer is freed.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agokrb5: Fix leaked hx509_context pointer
Kamen Mazdrashki [Sun, 6 Dec 2009 02:05:45 +0000 (04:05 +0200)]
krb5: Fix leaked hx509_context pointer

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agotdr-test: Fix 'push_charset' test
Kamen Mazdrashki [Sun, 6 Dec 2009 01:18:11 +0000 (03:18 +0200)]
tdr-test: Fix 'push_charset' test

4 bytes of 'bloe' string are pushed, so we should
check only for the first 4 caracters

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agotalloc: Fix write behind memory block
Kamen Mazdrashki [Sat, 5 Dec 2009 19:44:15 +0000 (21:44 +0200)]
talloc: Fix write behind memory block

If ALWASY_REALLOC is defined and we are to 'shrink' memory block,
memcpy() will write outside memory just allocated.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
14 years agos4 quicktest: exclude raw-streams from quicktest until bug is fixed
Tim Prouty [Fri, 4 Dec 2009 21:02:51 +0000 (13:02 -0800)]
s4 quicktest: exclude raw-streams from quicktest until bug is fixed

14 years agos4 torture: Add a new torture:hide_on_access_denied parameter
Tim Prouty [Sat, 5 Dec 2009 00:07:35 +0000 (16:07 -0800)]
s4 torture: Add a new torture:hide_on_access_denied parameter

It appears some newer versions of windows return
NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied
rather than NT_STATUS_ACCESS_DENIED.  I'm not sure how this translates
to directory enumeration yet, but for now make this a parameter that
can be checked in the various torture tests.

This also gets RAW-ACLS and SMB2-CREATE passing against win7.

14 years agos4 torture: win 7 doesn't like the sequential_only flag for directories
Tim Prouty [Thu, 6 Aug 2009 21:31:01 +0000 (14:31 -0700)]
s4 torture: win 7 doesn't like the sequential_only flag for directories

Remove it for now

14 years agos4 torture: Port RAW-ACLS tests to SMB2
Zack Kirsch [Sat, 4 Jul 2009 23:16:23 +0000 (16:16 -0700)]
s4 torture: Port RAW-ACLS tests to SMB2

- The smblsa calls had to be commented out for now and should be fixed
  later, but they aren't crucial to the test.
- The first two tests from RAW-ACLS were already ported to
  torture_smb2_setinfo() and test_create_acl(). Modifications were
  made similar to the RAW-ACLS changes.
- test_sd_get_set() was ported, but does not pass against XP or Vista;
  it is not added to the SMB2-ACLS test suite.
- printf -> torture_comment / torture_warning / torture_result

14 years agos4 torure: Add SMB2 utility functions
Zack Kirsch [Wed, 1 Jul 2009 20:30:12 +0000 (13:30 -0700)]
s4 torure: Add SMB2 utility functions

- Add a torture_setup_dir() equivalent in SMB2, called smb2_util_setup_dir().
- Add verify_sd() and verify_attrib() helper functions for SMB2.

14 years agos4 torture: RAW-ACL Improvements
Zack Kirsch [Thu, 2 Jul 2009 21:08:41 +0000 (14:08 -0700)]
s4 torture: RAW-ACL Improvements

- Change RAW-ACLS test suite so each test can be run individually.
- Add verify_sd() and verify_attrib() helper functions.
- Change test_nttrans_create() to work for both files and directories.
- Fix a segfault in test_inheritance() when the test errors out early.
- test_sd_get_set() does not pass against XP or Vista, so it is no longer added
  to the RAW-ACLS test suite.
- Minor fixes to test_inheritance().
- New INHERITFLAGS test, which tests the auto inheritance flags a bit more.
- printf -> torture_comment / torture_warning / torture_result

14 years agos4 torture: Convert RAW-STREAMS to a set of test suites rather than a monolithic...
Tim Prouty [Fri, 4 Dec 2009 21:04:12 +0000 (13:04 -0800)]
s4 torture: Convert RAW-STREAMS to a set of test suites rather than a monolithic test

14 years agos4 torture: Update RAW-RENAME to pass against win7
Tim Prouty [Tue, 27 Oct 2009 00:16:37 +0000 (17:16 -0700)]
s4 torture: Update RAW-RENAME to pass against win7

14 years agos4 torture: Add a new RAW-STREAMS test to simulate the summary tab
Tim Prouty [Tue, 27 Oct 2009 00:17:45 +0000 (17:17 -0700)]
s4 torture: Add a new RAW-STREAMS test to simulate the summary tab

14 years agos4 torture: Fix the streams create disposition tests to actually return an error...
Tim Prouty [Wed, 21 Oct 2009 23:51:17 +0000 (16:51 -0700)]
s4 torture: Fix the streams create disposition tests to actually return an error on failure

14 years agos4/torture: add test for zero byte read contention with byte range locks
Steven Danneman [Fri, 4 Dec 2009 02:50:33 +0000 (18:50 -0800)]
s4/torture: add test for zero byte read contention with byte range locks

14 years agos4/libcli: add define for exclusive lock mode
Steven Danneman [Fri, 4 Dec 2009 02:32:56 +0000 (18:32 -0800)]
s4/libcli: add define for exclusive lock mode

14 years agos4/torture: fix >80 column spacing issues
Steven Danneman [Fri, 4 Dec 2009 03:32:53 +0000 (19:32 -0800)]
s4/torture: fix >80 column spacing issues

14 years agos4/torture: add delete-on-close test for directories
Aravind Srinivasan [Tue, 17 Nov 2009 20:28:34 +0000 (12:28 -0800)]
s4/torture: add delete-on-close test for directories

This test opens a directory with delete on close, opens it again,
and checks to make sure that the second open returned with
NT_STATUS_DELETE_PENDING.

14 years agoparent_sd can never be null in this function, so don't
Jeremy Allison [Mon, 7 Dec 2009 22:41:09 +0000 (14:41 -0800)]
parent_sd can never be null in this function, so don't
check for it.

Jeremy.

14 years agoHopefullt final fix for 6802 - acl_xattr.c module: A created folder does not properly...
Jeremy Allison [Mon, 7 Dec 2009 22:36:12 +0000 (14:36 -0800)]
Hopefullt final fix for 6802 - acl_xattr.c module: A created folder does not properly inherit permissions from parent and 6938 - No hook exists to check creation rights when using acl_xattr module

Volker was right (dammit :-). It's much easier to catch
this case in the create_file() vfs call instead of trying
to do everything inside open() and mkdir(). Hook all these
functions to gain the desired effect.
Jeremy.