Stefan Metzmacher [Mon, 5 Nov 2007 14:47:34 +0000 (15:47 +0100)]
r25839: use nss_wrapper code in samba4 if
--enable-nss-wrapper or --enable-developer is given
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:45:08 +0000 (15:45 +0100)]
r25838: libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:42:38 +0000 (15:42 +0100)]
r25837: nss_wrapper: add nss_wrapper.pl
This script will be used to add|delete passwd|group entries
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:41:23 +0000 (15:41 +0100)]
r25836: nss_wrapper: add support for groups and return EPERM in initgroups()
The NSS_WRAPPER_GROUP envvar should point to
the /etc/group style file.
Note: NSS_WRAPPER_PASSWD and NSS_WRAPPER_GROUP both
need non-empty values to enable NSS Wrapper
support.
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:39:46 +0000 (15:39 +0100)]
r25835: nss_wrapper: add support for passwd accounts
The NSS_WRAPPER_PASSWD envvar should point to
the /etc/passwd style file.
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:38:36 +0000 (15:38 +0100)]
r25834: nss_wrapper: add lib/nss_wrapper skeleton
metze
Stefan Metzmacher [Mon, 5 Nov 2007 14:12:54 +0000 (15:12 +0100)]
r25833: - we don't need --root twice
- use $unix_name to make more clear what this variable means
metze
Stefan Metzmacher [Mon, 5 Nov 2007 10:08:35 +0000 (11:08 +0100)]
r25831: remove unused include
metze
Stefan Metzmacher [Mon, 5 Nov 2007 09:10:17 +0000 (10:10 +0100)]
r25830: fix compiler warning
metze
Stefan Metzmacher [Mon, 5 Nov 2007 06:09:41 +0000 (07:09 +0100)]
r25829: - use DEBUG() instead of printf
- return an error if strings doesn't match on validate
metze
Stefan Metzmacher [Mon, 5 Nov 2007 05:58:57 +0000 (06:58 +0100)]
r25828: don't ignore errors
metze
Volker Lendecke [Mon, 5 Nov 2007 01:33:30 +0000 (02:33 +0100)]
r25827: Start of samba3-regconfig test
Andrew Bartlett [Mon, 5 Nov 2007 01:29:17 +0000 (02:29 +0100)]
r25826: Prove that adding a user or computer via LDAP doesn't magicly give
them any more group memberships.
Andrew Bartlett
Andrew Bartlett [Mon, 5 Nov 2007 01:26:42 +0000 (02:26 +0100)]
r25825: Don't print the user's password hash at level 0.
Andrew Bartlett
Stefan Metzmacher [Sun, 4 Nov 2007 15:16:18 +0000 (16:16 +0100)]
r25824: - NT_STATUS_IS_ERR() is not the same as !NT_STATUS_IS_OK()
- make the success case some clear by returning NT_STATUS_OK
metze
Stefan Metzmacher [Sat, 3 Nov 2007 10:21:04 +0000 (11:21 +0100)]
r25823: remove unneeded nesting by using error and out logic
metze
Stefan Metzmacher [Sat, 3 Nov 2007 09:45:59 +0000 (10:45 +0100)]
r25822: use NDR_CHECK()
metze
Stefan Metzmacher [Sat, 3 Nov 2007 09:20:45 +0000 (10:20 +0100)]
r25821: always use ndr_push/pull_error() to report errors and not NTSTATUS directly
metze
Stefan Metzmacher [Sat, 3 Nov 2007 08:42:18 +0000 (09:42 +0100)]
r25820: but still return the error...
(sorry, this should have been one commit)
metze
Stefan Metzmacher [Sat, 3 Nov 2007 08:40:32 +0000 (09:40 +0100)]
r25819: make the success case more clear
metze
Stefan Metzmacher [Sat, 3 Nov 2007 07:31:10 +0000 (08:31 +0100)]
r25818: remove useless '\' chars at the end of lines
(they were copied from the macros by mistake)
metze
Günther Deschner [Fri, 2 Nov 2007 14:43:09 +0000 (15:43 +0100)]
r25817: Add very basic FRSAPI InfoW test. Again, this is surely not correct but at least
displays a lot of very useful information.
Guenther
Günther Deschner [Fri, 2 Nov 2007 14:41:55 +0000 (15:41 +0100)]
r25816: Add idl for frsapi_InfoW. Surely not correct, but a start.
Guenther
Günther Deschner [Fri, 2 Nov 2007 14:11:54 +0000 (15:11 +0100)]
r25815: Small DFS idl fixes.
Guenther
Günther Deschner [Fri, 2 Nov 2007 14:09:58 +0000 (15:09 +0100)]
r25814: Add my (C).
Guenther
Günther Deschner [Fri, 2 Nov 2007 14:06:58 +0000 (15:06 +0100)]
r25813: Add unfinished SecurityDescriptorsMasks test for winreg.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:51:49 +0000 (14:51 +0100)]
r25812: Add test for valid and invalid security descriptor and security information flag
combinations.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:50:27 +0000 (14:50 +0100)]
r25811: Add some security descriptor helper functions.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:43:11 +0000 (14:43 +0100)]
r25810: Add test for blocking security descriptor inheritance in winreg.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:37:07 +0000 (14:37 +0100)]
r25809: Add basic security descriptor inheritance test for winreg.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:27:58 +0000 (14:27 +0100)]
r25808: Move basic security descriptor test to a test_SecurityDescriptors() call.
Guenther
Günther Deschner [Fri, 2 Nov 2007 13:18:07 +0000 (14:18 +0100)]
r25807: Close handle during winreg test.
Guenther
Stefan Metzmacher [Fri, 2 Nov 2007 12:48:11 +0000 (13:48 +0100)]
r25806: let libndr.h include needed stuff and remove pidl magic
for choosing common required headers
metze
Stefan Metzmacher [Fri, 2 Nov 2007 12:05:43 +0000 (13:05 +0100)]
r25805: pidl: include libndr.h as first header in ndr_foo.h
metze
Stefan Metzmacher [Fri, 2 Nov 2007 12:02:25 +0000 (13:02 +0100)]
r25804: move including ndr_compression.h into HeaderInterface()
metze
Günther Deschner [Fri, 2 Nov 2007 11:54:19 +0000 (12:54 +0100)]
r25803: Make our security descriptor acl manipulation methods more generic so that we
can add and delete ACEs for SACLs as well as for DACLs.
Guenther
Stefan Metzmacher [Fri, 2 Nov 2007 11:50:24 +0000 (12:50 +0100)]
r25802: fix the build on solaris, void functions doesn't return values
metze
Günther Deschner [Fri, 2 Nov 2007 10:51:26 +0000 (11:51 +0100)]
r25801: Add security_ace_create() function.
Guenther
Günther Deschner [Fri, 2 Nov 2007 10:36:06 +0000 (11:36 +0100)]
r25800: Use dump_data_skip_zeros() in ndrdump.
Still obey the --dump-data parameter which enforces the full dump display
(thanks metze).
Guenther
Günther Deschner [Fri, 2 Nov 2007 10:33:53 +0000 (11:33 +0100)]
r25799: Add dump_data_skip_zeros() which omits 16 zero bytes in a row (if not at the
beginning or the end of a blob). Usefull when inspecting protocols that
exchange huge mostly empty blobs.
Guenther
Stefan Metzmacher [Fri, 2 Nov 2007 10:01:18 +0000 (11:01 +0100)]
r25798: - check return value of ndr_push_set_switch_value()
- fix memory leaks in error pathes
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:59:43 +0000 (10:59 +0100)]
r25797: use error and out logic
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:49:51 +0000 (10:49 +0100)]
r25796: use NT_STATUS_HAVE_NO_MEMORY()
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:35:09 +0000 (10:35 +0100)]
r25795: whitespace cleanup...
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:32:47 +0000 (10:32 +0100)]
r25794: use NDR_CHECK()
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:29:19 +0000 (10:29 +0100)]
r25793: check the return value of ndr_push_set_switch_value()
metze
Stefan Metzmacher [Fri, 2 Nov 2007 09:26:49 +0000 (10:26 +0100)]
r25792: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()
metze
Stefan Metzmacher [Fri, 2 Nov 2007 08:15:12 +0000 (09:15 +0100)]
r25791: wrepl_request_finished() sets req->status, so make this explicit
and avoid req->status = req->status...
metze
Stefan Metzmacher [Fri, 2 Nov 2007 07:49:23 +0000 (08:49 +0100)]
r25790: - remove some nesting by using error and out logic
- print in the print_* function ...
metze
Stefan Metzmacher [Fri, 2 Nov 2007 07:16:32 +0000 (08:16 +0100)]
r25789: print out what error happened...
metze
Andrew Bartlett [Fri, 2 Nov 2007 02:39:24 +0000 (03:39 +0100)]
r25788: Use a single routine to handle the creation of modify requests in the
linked_attributs code.
This drasticly reduces the code duplication here.
Andrew Bartlett
Andrew Bartlett [Fri, 2 Nov 2007 01:51:54 +0000 (02:51 +0100)]
r25787: Assert that we handle the group membership updating correctly,
including when we delete members from the DB.
Andrew Bartlett
Andrew Bartlett [Thu, 1 Nov 2007 21:01:48 +0000 (22:01 +0100)]
r25786: Add function required by linked_attributes module (We need a list of
all linked attributes in the schema, so we can try and find them).
Andrew Bartlett
Ronnie Sahlberg [Thu, 1 Nov 2007 19:30:55 +0000 (20:30 +0100)]
r25785: more small updates to frsrpc
tag 18 contains a timestamp
Stefan Metzmacher [Thu, 1 Nov 2007 12:22:20 +0000 (13:22 +0100)]
r25784: fix compiler warning
metze
Stefan Metzmacher [Thu, 1 Nov 2007 12:10:59 +0000 (13:10 +0100)]
r25783: socket_wrapper: don't include "includes.h"
metze
Stefan Metzmacher [Thu, 1 Nov 2007 11:39:12 +0000 (12:39 +0100)]
r25782: use NT_STATUS_HAVE_NO_MEMORY()
metze
Andrew Bartlett [Thu, 1 Nov 2007 11:34:06 +0000 (12:34 +0100)]
r25781: Handle and test linked attribute renames.
Andrew Bartlett
Stefan Metzmacher [Thu, 1 Nov 2007 10:43:00 +0000 (11:43 +0100)]
r25780: fix bool return
metze
Stefan Metzmacher [Thu, 1 Nov 2007 09:15:13 +0000 (10:15 +0100)]
r25779: the return value of ndr_pull_set_switch_value() should be checked
metze
Stefan Metzmacher [Thu, 1 Nov 2007 09:13:36 +0000 (10:13 +0100)]
r25778: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macros
metze
Stefan Metzmacher [Thu, 1 Nov 2007 08:50:24 +0000 (09:50 +0100)]
r25777: add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directly
metze
Stefan Metzmacher [Thu, 1 Nov 2007 08:48:42 +0000 (09:48 +0100)]
r25776: ndr compression: make use of NDR_CHECK() and not use NTSTATUS directly
metze
Stefan Metzmacher [Thu, 1 Nov 2007 07:15:41 +0000 (08:15 +0100)]
r25775: use ndr_pull_union_blob_all() in CLDAP code
metze
Stefan Metzmacher [Thu, 1 Nov 2007 07:10:54 +0000 (08:10 +0100)]
r25774: create ndr_pull_union_blob_all() and match the logic of the struct fns
metze
Ronnie Sahlberg [Thu, 1 Nov 2007 07:00:36 +0000 (08:00 +0100)]
r25773: update frsrpc.idl and add some more comments
Ronnie Sahlberg [Thu, 1 Nov 2007 03:00:05 +0000 (04:00 +0100)]
r25772: rename the tail fields
Ronnie Sahlberg [Thu, 1 Nov 2007 02:20:17 +0000 (03:20 +0100)]
r25771: In traces unknown7 has the same pattern as a UNIQUE pointer referral id
would often have.
Make a note that this may be a UNIQUE pointer.
Ronnie Sahlberg [Thu, 1 Nov 2007 02:17:55 +0000 (03:17 +0100)]
r25770: rename "unknown5" to tlv_size
Ronnie Sahlberg [Thu, 1 Nov 2007 02:16:28 +0000 (03:16 +0100)]
r25769: it looks like there are 9 uint32 before the TLV subcontext starts, not 6
Stefan Metzmacher [Wed, 31 Oct 2007 15:44:42 +0000 (16:44 +0100)]
r25768: pidl: NT_STATUS_IS_ERR() is NOT the same as !NT_STATUS_IS_OK()
Everything but success should be handled as error in the tests.
metze
Stefan Metzmacher [Wed, 31 Oct 2007 15:29:32 +0000 (16:29 +0100)]
r25767: pidl: make it easier to debug errors in pidl tests
we now print the C program that we tried to compile
metze
Stefan Metzmacher [Wed, 31 Oct 2007 15:27:21 +0000 (16:27 +0100)]
r25766: pidl: fix bugs in ndr_tagtype tests found by compiler warnings
metze
Stefan Metzmacher [Wed, 31 Oct 2007 15:25:44 +0000 (16:25 +0100)]
r25765: pidl: fix compiler warning in ndr_align test
metze
Jelmer Vernooij [Wed, 31 Oct 2007 13:48:48 +0000 (14:48 +0100)]
r25764: Fix total number of tests count to not include skipped tests.
Andrew Bartlett [Wed, 31 Oct 2007 04:14:31 +0000 (05:14 +0100)]
r25763: Handle modifies, in the easy case (add/delete of elements), for the
linked attributes.
Andrew Bartlett
Andrew Bartlett [Wed, 31 Oct 2007 03:41:36 +0000 (04:41 +0100)]
r25762: This test belongs best with the other checks for a valid parent, in
the objectclass module.
Andrew Bartlett
Andrew Bartlett [Wed, 31 Oct 2007 02:56:13 +0000 (03:56 +0100)]
r25761: Rename to be a DN to be a child of itself wasn't being checked for.
This prevents CN=test,dc=samba,dc=example,dc=com being renamed into
CN=test2,cn=test,dc=samba,dc=example,dc=com
Andrew Bartlett
Andrew Bartlett [Wed, 31 Oct 2007 01:50:13 +0000 (02:50 +0100)]
r25760: Test out relative distinguished name behaviour under renames.
Andrew Bartlett
Andrew Bartlett [Wed, 31 Oct 2007 00:19:20 +0000 (01:19 +0100)]
r25759: catch up the samba3sam tests with the change from cn=rootdse to @ROOTDSE
Andrew Bartlett
Jelmer Vernooij [Tue, 30 Oct 2007 23:14:54 +0000 (00:14 +0100)]
r25756: Add missing file with quick tests.
Andrew Bartlett [Tue, 30 Oct 2007 22:35:04 +0000 (23:35 +0100)]
r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
context caused by my objectclass module work.
Andrew Bartlett
Andrew Bartlett [Tue, 30 Oct 2007 20:03:54 +0000 (21:03 +0100)]
r25754: More work on normal forms for ldb input.
This patch is to ensure that all attributes are in the same case as
the schema specifies. In the process, I ensure that all attributes
are indeed in the schema.
This ensures we use the schema case, not the user supplied case for
future responses, which assists any (incorrect, but possible) case
sensitive processing on a client.
I've also removed more of the subtle 'schema &&' that metze objected
to in the for loops, moving to a much more explicit 'if (schema)'.
Andrew Bartlett
Andrew Bartlett [Tue, 30 Oct 2007 20:01:07 +0000 (21:01 +0100)]
r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett
Stefan Metzmacher [Tue, 30 Oct 2007 07:00:19 +0000 (08:00 +0100)]
r25752: use EJS_CHECK() instead of NDR_CHECK()
metze
Stefan Metzmacher [Tue, 30 Oct 2007 05:24:43 +0000 (06:24 +0100)]
r25751: use EJS_CHECK() instead of NDR_CHECK() in ejs code
metze
Andrew Bartlett [Mon, 29 Oct 2007 20:25:26 +0000 (21:25 +0100)]
r25750: Update the objectclass module to improve consistency in Samba4.
The aim here is to ensure that if we have
CN=Users,DC=samba,DC=example,DC=com
that we cannot have a DN of the form
cn=admin ,cn=useRS,DC=samba,DC=example,DC=com
This module pulls apart the DN, fixes up the relative DN part, and
searches for the parent to copy the base from.
I've used the objectclass module, as I intend to also validate the
placement of child objects, by reading the allowedChildClasses virtual
attribute.
In the future, I'll also force the attribute names to be consistant
(using the case from the schema).
Andrew Bartlett
Andrew Bartlett [Mon, 29 Oct 2007 10:11:36 +0000 (11:11 +0100)]
r25749: Add function required by linked_attributes module.
Andrew Bartlett
Andrew Bartlett [Mon, 29 Oct 2007 09:58:29 +0000 (10:58 +0100)]
r25748: Don't segfault if we don't have a schema yet.
Andrew Bartlett
Andrew Bartlett [Mon, 29 Oct 2007 09:54:06 +0000 (10:54 +0100)]
r25747: Implement linked attributes, for add operations.
Much more work is still required here, particularly to handle this
better during the provision, and to handle modifies and deletes, but
this is a start.
Andrew Bartlett
Stefan Metzmacher [Sat, 27 Oct 2007 08:00:44 +0000 (10:00 +0200)]
r25746: [selftest] make plain output more readable
metze
Stefan Metzmacher [Sat, 27 Oct 2007 07:57:09 +0000 (09:57 +0200)]
r25745: [pidl] ndr_pull/push_error(ndr, NDR_ERR_INVALID_POINTER,..)
instead NT_STATUS_INVALID_PARAMETER_MIX
metze
Stefan Metzmacher [Sat, 27 Oct 2007 06:10:14 +0000 (08:10 +0200)]
r25744: add NDR_ERR_INVALID_POINTER
metze
Jelmer Vernooij [Fri, 26 Oct 2007 21:28:36 +0000 (23:28 +0200)]
r25743: Write short summary of failed tests and skipped tests to file.
Jelmer Vernooij [Fri, 26 Oct 2007 19:25:43 +0000 (21:25 +0200)]
r25742: Start trimming down hash size for start_testsuite.
Jelmer Vernooij [Fri, 26 Oct 2007 19:15:04 +0000 (21:15 +0200)]
r25741: Simplify calls to Subunit functions.
Jelmer Vernooij [Fri, 26 Oct 2007 15:13:42 +0000 (17:13 +0200)]
r25740: More consistent naming for tests, always include environment name in test name.
Günther Deschner [Fri, 26 Oct 2007 10:56:02 +0000 (12:56 +0200)]
r25739: We forgot to copy revision and type flags in security_descriptor_copy().
Guenther
Stefan Metzmacher [Fri, 26 Oct 2007 04:32:24 +0000 (06:32 +0200)]
r25738: always include config.h first.
this needs merging to heimdal and lorikeet-heimdal
metze
Jelmer Vernooij [Thu, 25 Oct 2007 20:20:52 +0000 (22:20 +0200)]
r25737: Integrate more of the test recipe code into one file, use
different mechanism for determining the quicktest list.
Quicktest is a bit verbose now (reports all the tests not run as SKIP:)