ab/samba.git/.git
16 years agor17545: I forgot to commit this file, a source file for the the samba3sam
Andrew Bartlett [Tue, 15 Aug 2006 02:18:32 +0000 (02:18 +0000)]
r17545: I forgot to commit this file, a source file for the the samba3sam
tests, by mkhl.

Andrew Bartlett
(This used to be commit f6844d04e391e9d2a2f9178458de9212509a01ac)

16 years agor17544: Add execute bit to js script.
Andrew Bartlett [Tue, 15 Aug 2006 00:31:39 +0000 (00:31 +0000)]
r17544: Add execute bit to js script.

Andrew Bartlett
(This used to be commit c1349cfd8d7e150489b94ccb005bfdffe88e4697)

16 years agor17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
Andrew Bartlett [Mon, 14 Aug 2006 23:41:10 +0000 (23:41 +0000)]
r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
samba3sam test cases for ldb_map, and to include this into our default
'make test'.
(This used to be commit f69a842314b3d5c57c3fa1f5b1bae3ee6d42da2b)

16 years agor17542: In using ldb_map, I ran across some very odd behaviours when we search
Andrew Bartlett [Mon, 14 Aug 2006 23:25:04 +0000 (23:25 +0000)]
r17542: In using ldb_map, I ran across some very odd behaviours when we search
for objectClass=xyz.  The code has been warning at me 'no
covert_operator set', and indeed this is the case.  (It then proceeds to
strip this as a search expression)

In this commit, I have implemented a convert_operator for objectClass,
by pretending it is a simple MAP_CONVERT operator for the search
requests.

I also have changed the logic for when we should bail out.  I can only
see reason to bail out on the search if we have both local and remote
trees.  How can a remote-only search be un-splittable?

Andrew Bartlett
(This used to be commit 656e58672c357121647a080400fcab4e5d30b46b)

16 years agor17540: store command line args of selftest.sh in local vars
Stefan Metzmacher [Mon, 14 Aug 2006 16:35:56 +0000 (16:35 +0000)]
r17540: store command line args of selftest.sh in local vars
as $0,$1,$2,$3 may change in side the script
or included scripts.

This fixes the usage of SOCKET_WRAPPER on non linux
systems (tested on IRIX 6.4)

metze
(This used to be commit ebfb719e3d048383c04e5d665b23d7fcb4e48fb4)

16 years agor17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
Stefan Metzmacher [Mon, 14 Aug 2006 14:56:21 +0000 (14:56 +0000)]
r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202

metze
(This used to be commit 200b1a5c81bd61320ac6b7e79880411920e3f432)

16 years agor17538: this function should be static...
Stefan Metzmacher [Mon, 14 Aug 2006 14:53:38 +0000 (14:53 +0000)]
r17538: this function should be static...

metze
(This used to be commit c4387dd3f6d1463d9557ee8923590fa5590b35ff)

16 years agor17537: if we replace inet_ntoa() we need a prototype of
Stefan Metzmacher [Mon, 14 Aug 2006 13:10:53 +0000 (13:10 +0000)]
r17537: if we replace inet_ntoa() we need a prototype of
rep_inet_ntoa...

metze
(This used to be commit 78eaa905d53c5f678cf592284822f645eadbe3b2)

16 years agor17534: Try another group for 'wheel' on True64.
Andrew Bartlett [Mon, 14 Aug 2006 11:38:29 +0000 (11:38 +0000)]
r17534: Try another group for 'wheel' on True64.
(This used to be commit 177b713288be9c5d559a27d65e16521cbeefc958)

16 years agor17533: add missing include, so that "socket options = TCP_NODELY" as
Stefan Metzmacher [Mon, 14 Aug 2006 09:58:50 +0000 (09:58 +0000)]
r17533: add missing include, so that "socket options = TCP_NODELY" as
default can work...

metze
(This used to be commit bec738c2a37bf814073bc38a312808f563597319)

16 years agor17532: merge from SAMBA_3_0 Revision: 17460
Stefan Metzmacher [Mon, 14 Aug 2006 09:52:58 +0000 (09:52 +0000)]
r17532: merge from SAMBA_3_0 Revision: 17460
 First step at fixing the build breakage with the groupmapping test. On Linux,
 F_RDLCK is defined to 0, for example NetBSD has it at 1.

 Still does not work fully though. Still investigating.

metze
(This used to be commit af08e56442367b5d803f61b8554d85e2fe0ce7e9)

16 years agor17531: fix whitespaces
Stefan Metzmacher [Mon, 14 Aug 2006 07:40:18 +0000 (07:40 +0000)]
r17531: fix whitespaces

metze
(This used to be commit e5f752a66bea40bc4441cff9c6023b2072dc1f6d)

16 years agor17530: Watching the build farm mails carefully pays off...
Andrew Bartlett [Mon, 14 Aug 2006 03:28:25 +0000 (03:28 +0000)]
r17530: Watching the build farm mails carefully pays off...

This was another declaration before statement bug, in my just-committed code..

Andrew Bartlett
(This used to be commit 1d1bf6b20512653c1de7920388f16fbef936ed47)

16 years agor17529: Simo doesn't like the use of the internal ldb_errstring in functions
Andrew Bartlett [Mon, 14 Aug 2006 02:50:18 +0000 (02:50 +0000)]
r17529: Simo doesn't like the use of the internal ldb_errstring in functions
not used purely as ldb module helper functions.  This now passes these
strings back as explicit parameters.

Andrew Bartlett
(This used to be commit 9c1cd9c2c6bcd9d056a7c9caafacdd573562ebbc)

16 years agor17528: This is an additional item of schema we require.
Andrew Bartlett [Mon, 14 Aug 2006 01:48:32 +0000 (01:48 +0000)]
r17528: This is an additional item of schema we require.

Where is the script we used to create this schema file in the first
place?

Andrew Bartlett
(This used to be commit dec2b6961ab28ecf84daa6ef329f98e6ee0927b9)

16 years agor17527: Don't duplicate the entire test setup just to allow testing of the new
Andrew Bartlett [Mon, 14 Aug 2006 01:14:32 +0000 (01:14 +0000)]
r17527: Don't duplicate the entire test setup just to allow testing of the new
ldb-backed shares configuration.

Andrew Bartlett
(This used to be commit 59f86d80841e39613260094b2c848f416a035322)

16 years agor17526: Move timestamp generation into the objectGUID module. It probably
Andrew Bartlett [Mon, 14 Aug 2006 00:59:57 +0000 (00:59 +0000)]
r17526: Move timestamp generation into the objectGUID module.  It probably
needs to be renamed (operation_add?).

This allows me to match the behaviour and substitute with the
entryUUID module for remote LDAP connections.

Andrew Bartlett
(This used to be commit af02b4d7c631bb15bf5a5f73f9fdc23075d50f60)

16 years agor17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
Andrew Bartlett [Sun, 13 Aug 2006 23:58:04 +0000 (23:58 +0000)]
r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
(This used to be commit af2bece4d343a9f787b2e3628848b266cec2b9f0)

16 years agor17524: Lets see if we can try and get the socket_wapper includes to be
Andrew Bartlett [Sun, 13 Aug 2006 22:57:05 +0000 (22:57 +0000)]
r17524: Lets see if we can try and get the socket_wapper includes to be
pre-processed last, and get AIX and some other hosts to pass make test
again (I think the macros were being over-overridden).

Andrew Bartlett
(This used to be commit 650b99b19d3ede84848ebe747f8afbf2cce9d7e2)

16 years agor17523: FIXME is a macro (I think) on some platforms (AIX), and this caused pain.
Andrew Bartlett [Sun, 13 Aug 2006 12:42:25 +0000 (12:42 +0000)]
r17523: FIXME is a macro (I think) on some platforms (AIX), and this caused pain.

Andrew Bartlett
(This used to be commit 2a604480f8dd17d52c1338e32356e9f63dec6385)

16 years agor17522: Fix another declaration after statement.
Andrew Bartlett [Sun, 13 Aug 2006 12:34:41 +0000 (12:34 +0000)]
r17522: Fix another declaration after statement.

Andrew Bartlett
(This used to be commit a30d312b503c16bd1497752428c178f39dd6227f)

16 years agor17520: If the blkid library fails, I don't see any reason to return more of
Andrew Bartlett [Sun, 13 Aug 2006 11:55:13 +0000 (11:55 +0000)]
r17520: If the blkid library fails, I don't see any reason to return more of
an error than if we don't have it.  We might not be on a volume that
can store/return such a GUID.

(Try to fix one of the build farm failures).

Andrew Bartlett
(This used to be commit 73d6651f3c06d0d3bbfd9fe1a9d0f76fe19ba4af)

16 years agor17517: Fix declaration after statement, which breaks the build on older GCC.
Andrew Bartlett [Sun, 13 Aug 2006 10:20:21 +0000 (10:20 +0000)]
r17517: Fix declaration after statement, which breaks the build on older GCC.

Andrew Bartlett
(This used to be commit 55bac30e1f7fdf8f2e81d29f8d29a269ceefb0d2)

16 years agor17516: Change helper function names to make more clear what they are meant to do
Simo Sorce [Sun, 13 Aug 2006 08:00:36 +0000 (08:00 +0000)]
r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf869550af66119d0293503024d41d834e02)

16 years agor17515: Fix warnings
Simo Sorce [Sun, 13 Aug 2006 07:57:42 +0000 (07:57 +0000)]
r17515: Fix warnings
(This used to be commit 5f7864515008a596bbf92163ef8bd48dc8269b09)

16 years agor17514: Simplify the way to set ldb errors and add another
Simo Sorce [Sun, 13 Aug 2006 07:33:57 +0000 (07:33 +0000)]
r17514: Simplify the way to set ldb errors and add another
helper function to set them.
(This used to be commit 260868bae56194fcb98d55afc22fc66d96a303df)

16 years agor17513: ldb_set_errstring is an ldb private string, samdb uses DEBUG() statements
Simo Sorce [Sun, 13 Aug 2006 07:32:05 +0000 (07:32 +0000)]
r17513: ldb_set_errstring is an ldb private string, samdb uses DEBUG() statements
(This used to be commit c57b6420aa4a220257df714aaccb016acb4bae24)

16 years agor17507: pread and pwrite depends on HAVE_PREAD/HAVE_PWRITE not HAVE_PREAD_DECL/HAVE_P...
Simo Sorce [Sat, 12 Aug 2006 19:05:18 +0000 (19:05 +0000)]
r17507: pread and pwrite depends on HAVE_PREAD/HAVE_PWRITE not HAVE_PREAD_DECL/HAVE_PWRITE_DECL
and common/io.h already defines pread and pwrite as static if they are not.

remove unneded defines
(This used to be commit 941f680453a081d51f6499f9b5dc06c7e6640334)

16 years agor17505: we are setting the timeout with the provide function right after.
Simo Sorce [Sat, 12 Aug 2006 15:22:58 +0000 (15:22 +0000)]
r17505: we are setting the timeout with the provide function right after.
(This used to be commit 6520e3c83acfbb7b6aa63d1cbebe8f8801db292f)

16 years agor17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber...
Simo Sorce [Sat, 12 Aug 2006 15:22:03 +0000 (15:22 +0000)]
r17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber attributes instead
Do not change unixName right now, we don't have an attribute to use in the posixGroup class,
and I think we should remove its usage altogether and look up users and groups by their uid/gid only.

Simo.
(This used to be commit d57b521aadf24a277152ec1ff1dac3210bd14316)

16 years agor17503: Add a useful function to search for a DN
Simo Sorce [Sat, 12 Aug 2006 15:20:06 +0000 (15:20 +0000)]
r17503: Add a useful function to search for a DN
(This used to be commit 8c6efd7b55e4ad45e1bd10519a1b91285a4e0347)

16 years agor17499: Open the main database only the minimum times during a provision.
Andrew Bartlett [Fri, 11 Aug 2006 22:11:29 +0000 (22:11 +0000)]
r17499: Open the main database only the minimum times during a provision.

This causes things to operate as just one transaction (locally), and
to make a minimum of TCP connections when connecting to a remote LDAP
server.

Taking advantage of this, create another file to handle loading the
Samba4 specific schema extensions.  Also comment out 'middleName' and
reassign the OID to one in the Samba4 range, as it is 'stolen' from a
netscape range that is used in OpenLDAP and interenet standards for
'ref'.

Andrew Bartlett
(This used to be commit 009d0905947dec9bab81d8e6de5cb424807ffd35)

16 years agor17495: run LOCAL-CRYPTO-MD4 and LOCAL-CRYPTO-MD5 with make test
Stefan Metzmacher [Fri, 11 Aug 2006 13:16:59 +0000 (13:16 +0000)]
r17495: run LOCAL-CRYPTO-MD4 and LOCAL-CRYPTO-MD5 with make test

metze
(This used to be commit 0b552dadaa60cae8988cb17da95c71b3d1443f17)

16 years agor17494: add tests for the example values from rfc 1320 (MD4)
Stefan Metzmacher [Fri, 11 Aug 2006 13:13:03 +0000 (13:13 +0000)]
r17494: add tests for the example values from rfc 1320 (MD4)

metze
(This used to be commit 5609ab2116e3568e4f1a82b3ae781f17a6ffb645)

16 years agor17493: fix typo
Stefan Metzmacher [Fri, 11 Aug 2006 11:47:11 +0000 (11:47 +0000)]
r17493: fix typo

metze
(This used to be commit 785c46ed375b99f5765c2d8a2c7c1aaf400119f8)

16 years agor17492: add a test with the example values from rfc1321 (MD5)
Stefan Metzmacher [Fri, 11 Aug 2006 11:26:58 +0000 (11:26 +0000)]
r17492: add a test with the example values from rfc1321 (MD5)

metze
(This used to be commit bb1e4954f9aa60858a2c5b2f798f10fd75849b42)

16 years agor17491: I forgot to commit this...fix make test...sorry:-)
Stefan Metzmacher [Fri, 11 Aug 2006 11:23:50 +0000 (11:23 +0000)]
r17491: I forgot to commit this...fix make test...sorry:-)

metze
(This used to be commit 408e507f0f333c01c74747ffca2d8458b970cdbc)

16 years agor17490: add all test values from rfc 2202
Stefan Metzmacher [Fri, 11 Aug 2006 10:49:38 +0000 (10:49 +0000)]
r17490: add all test values from rfc 2202

metze
(This used to be commit d3e2e1af80c419ca0008e400b3d8899f2e0d0d83)

16 years agor17489: run the crypto tests with test
Stefan Metzmacher [Fri, 11 Aug 2006 09:35:52 +0000 (09:35 +0000)]
r17489: run the crypto tests with test

metze
(This used to be commit b9920f8ac5caee5acdecd1cf1f6410fd95b4c26e)

16 years agor17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
Stefan Metzmacher [Fri, 11 Aug 2006 08:02:43 +0000 (08:02 +0000)]
r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
(This used to be commit d48930a02f9560640697fd57e4bba03dc0abe284)

16 years agor17484: Make last version of the function generating random set of changes
Rafal Szczesniak [Thu, 10 Aug 2006 20:42:07 +0000 (20:42 +0000)]
r17484: Make last version of the function generating random set of changes
more fair to each of the fields (ie. don't create new code at midnight
after a long day...).

This will be useful for testing multiple changes at once and verifying
correctness. A few testing runs already demostrated some missing pieces.

rafal
(This used to be commit 809c9cca965841e8bce84f4b4ecf804ce793d807)

16 years agor17478: Add BENCH-READWRITE test to simulate read/write workload from simultaneous...
Alexander Bokovoy [Thu, 10 Aug 2006 11:51:43 +0000 (11:51 +0000)]
r17478: Add BENCH-READWRITE test to simulate read/write workload from simultaneous async clients. This code is based on concept from Mathias Dietz <mdietz@de.ibm.com>
(This used to be commit 7e6253a5f930645baa842b887d80ea06739bca3f)

16 years agor17474: Allow the partitions module to load modules for specific backends.
Andrew Bartlett [Thu, 10 Aug 2006 01:51:27 +0000 (01:51 +0000)]
r17474: Allow the partitions module to load modules for specific backends.

Andrew Bartlett
(This used to be commit c016db2187120991e8ad779b9df35480d7c19400)

16 years agor17473: Split loading a list of modules and initialising them into a seperate
Andrew Bartlett [Thu, 10 Aug 2006 00:52:56 +0000 (00:52 +0000)]
r17473: Split loading a list of modules and initialising them into a seperate
function.

Andrew Bartlett
(This used to be commit bed17cc579d82f04e44ce3c3d1e74d999c2ab867)

16 years agor17472: Remove unused variable.
Rafal Szczesniak [Wed, 9 Aug 2006 22:10:26 +0000 (22:10 +0000)]
r17472: Remove unused variable.

rafal
(This used to be commit 04c94e4a52b9253c6d2ae6e8376338f0b20dd070)

16 years agor17471: Add a function generating pseudorandom set of changes to test
Rafal Szczesniak [Wed, 9 Aug 2006 22:09:47 +0000 (22:09 +0000)]
r17471: Add a function generating pseudorandom set of changes to test
user modify routines.

rafal
(This used to be commit dbd34fe08270ac6fbb99733273cf1a3b965209c3)

16 years agor17450: A bit more protection against memory allocation errors.
Rafal Szczesniak [Mon, 7 Aug 2006 20:43:06 +0000 (20:43 +0000)]
r17450: A bit more protection against memory allocation errors.

rafal
(This used to be commit a3ef0d051ac6e4a389a294ca6001338e3da23938)

16 years agor17449: Add another field to the test before expanding the whole test
Rafal Szczesniak [Mon, 7 Aug 2006 20:30:58 +0000 (20:30 +0000)]
r17449: Add another field to the test before expanding the whole test
to more complex form.

rafal
(This used to be commit e68e296cbea5d2a40b56f6dd7d60410e0306b838)

16 years agor17448: Define macros to set fields in api function modifying user account.
Rafal Szczesniak [Mon, 7 Aug 2006 20:29:18 +0000 (20:29 +0000)]
r17448: Define macros to set fields in api function modifying user account.

rafal
(This used to be commit 8d9330c490470127f192949efa9201225136edb1)

16 years agor17447: Add more fields to user modify routines.
Rafal Szczesniak [Mon, 7 Aug 2006 20:28:09 +0000 (20:28 +0000)]
r17447: Add more fields to user modify routines.

rafal
(This used to be commit 8fa1cd62ec6ce3b37700cf5ffa5c47b8c8cff977)

16 years agor17442: print out credentials on the "secret" objectClass and "trustedDomain"
Stefan Metzmacher [Mon, 7 Aug 2006 17:26:51 +0000 (17:26 +0000)]
r17442: print out credentials on the "secret" objectClass and "trustedDomain"
objectclass

metze
(This used to be commit af1efa0c790a86f68bd7f761b22478895bfdaaea)

16 years agor17441: add some more attribute with credentials in them
Stefan Metzmacher [Mon, 7 Aug 2006 17:25:52 +0000 (17:25 +0000)]
r17441: add some more attribute with credentials in them

metze
(This used to be commit 3e2d923e17544020255b7181219ca26878f6c164)

16 years agor17438: extend the comment
Stefan Metzmacher [Mon, 7 Aug 2006 13:39:52 +0000 (13:39 +0000)]
r17438: extend the comment

metze
(This used to be commit 246c35e008fb0cc167cdd1b13db6a50046e3f991)

16 years agor17434: update our index
Simo Sorce [Sun, 6 Aug 2006 18:24:36 +0000 (18:24 +0000)]
r17434: update our index
(This used to be commit 9f79714389373735807c1ed8ec9f2fddaa77a9dc)

16 years agor17433: remove obsoleted RFCs
Simo Sorce [Sun, 6 Aug 2006 18:05:43 +0000 (18:05 +0000)]
r17433: remove obsoleted RFCs
(This used to be commit 7dffabc744271b0ab98d00c0cc23600d1b536d29)

16 years agor17432: display more GUID values nicely,
Stefan Metzmacher [Sun, 6 Aug 2006 16:59:29 +0000 (16:59 +0000)]
r17432: display more GUID values nicely,
they all have rangeLower=16 rangeUpper=16
and attribute syntax 2.5.5.10

metze
(This used to be commit 932f8bec21a64be3ca84c32a2ceaea98e2ceecf9)

16 years agor17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
Stefan Metzmacher [Sat, 5 Aug 2006 19:50:58 +0000 (19:50 +0000)]
r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client

metze
(This used to be commit 96259f0f24b114e505241c9d2deb702a8b40f1b6)

16 years agor17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
Stefan Metzmacher [Sat, 5 Aug 2006 19:35:00 +0000 (19:35 +0000)]
r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client

metze
(This used to be commit 40dc7c1787c16bfc15ac87fee81d2d2d1f3d2fde)

16 years agor17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
Stefan Metzmacher [Sat, 5 Aug 2006 11:38:50 +0000 (11:38 +0000)]
r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control

metze
(This used to be commit 84e74a759cfa49ebc8b4ba1b8e729d6d920fc55a)

16 years agor17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.
Stefan Metzmacher [Sat, 5 Aug 2006 11:18:14 +0000 (11:18 +0000)]
r17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.

with this you can limit a search to a specific partitions
or a search over all partitions without getting referrals.
(Witch is the default behavior on the Global Catalog Port)

metze
(This used to be commit 4ccd0f8171f3748ee6efe1abd3f894d2cdf46bf4)

16 years agor17418: add client support for the LDAP_SERVER_SD_FLAGS control
Stefan Metzmacher [Sat, 5 Aug 2006 10:26:23 +0000 (10:26 +0000)]
r17418: add client support for the LDAP_SERVER_SD_FLAGS control

metze
(This used to be commit 23759a1e9b05c4fde475a9016cb0b7447656d7e7)

16 years agor17417: Try to fix random failures in the build farm for 3_0.
Volker Lendecke [Sat, 5 Aug 2006 08:21:31 +0000 (08:21 +0000)]
r17417: Try to fix random failures in the build farm for 3_0.

Volker
(This used to be commit 5cffd35fecb85e3c1407f6e6d91e846b17a7c917)

16 years agor17416: display the attributeSecurityGUID nicely.
Stefan Metzmacher [Sat, 5 Aug 2006 06:48:19 +0000 (06:48 +0000)]
r17416: display the attributeSecurityGUID nicely.

this attriute is used to group multiple attribute
to a propertySet for access control.

metze
(This used to be commit 96e9d46091c9fb4fd92782a42fcd9f2c510e9b56)

16 years agor17415: the ldif handlers can't do search as this now blocks foerever
Stefan Metzmacher [Sat, 5 Aug 2006 06:35:32 +0000 (06:35 +0000)]
r17415: the ldif handlers can't do search as this now blocks foerever
because the handlers are called within the async callbacks
in side the main search.

Also it makes no sense to give the sddl encoder the sid of the primary
domain when we need a description of a real security_descriptor,
this only makes sense for the defaultSecurityDescriptor...

metze
(This used to be commit 92f133f1ef1cd4064c9b328244d3be3351c5bab9)

16 years agor17414: add new error code
Stefan Metzmacher [Sat, 5 Aug 2006 06:20:55 +0000 (06:20 +0000)]
r17414: add new error code

metze
(This used to be commit e15a015a1d9aa3872271c0c5542e7d055a6f673a)

16 years agor17413: add a new case for the this:
Stefan Metzmacher [Sat, 5 Aug 2006 05:43:47 +0000 (05:43 +0000)]
r17413: add a new case for the this:

top->level1->level2->level3

level3 has a deny destructor
talloc_free(level1)

result: top->level3

metze
(This used to be commit 3be930b81d2caf5e13105efa02280c4fc45181cb)

16 years agor17412: fix missing colon
Simo Sorce [Sat, 5 Aug 2006 05:03:10 +0000 (05:03 +0000)]
r17412: fix missing colon
(This used to be commit 300d6e724d1ce386ad53852c0645fa8de374625a)

16 years agor17411: Try and compile on older versions of GnuTLS.
Andrew Bartlett [Fri, 4 Aug 2006 23:46:03 +0000 (23:46 +0000)]
r17411: Try and compile on older versions of GnuTLS.

Andrew Bartlett
(This used to be commit 798c0791d8e8d10dde41a6dbceb0866265f9a709)

16 years agor17398: avoid a memleak when we are returned 0 results and make a more creative use...
Simo Sorce [Fri, 4 Aug 2006 12:05:46 +0000 (12:05 +0000)]
r17398: avoid a memleak when we are returned 0 results and make a more creative use of memory contexts
(This used to be commit fc97b5dc8ce65232a7a98ffb59def44a931b1565)

16 years agor17397: Add const, and use a more local memory context.
Andrew Bartlett [Fri, 4 Aug 2006 10:27:14 +0000 (10:27 +0000)]
r17397: Add const, and use a more local memory context.

Andrew Bartlett
(This used to be commit 59fc8031ecf3ba5aa2eff9ec5fa7df76d0c990c6)

16 years agor17396: Bump the time up again. RPC-SAMR can slow, I probably need to break
Andrew Bartlett [Fri, 4 Aug 2006 07:00:53 +0000 (07:00 +0000)]
r17396: Bump the time up again.  RPC-SAMR can slow, I probably need to break
it up again...

Andrew Bartlett
(This used to be commit 110de3a3a294063bd05db4570a8983ad7072ad09)

16 years agor17395: Add some more time to the default runtime. Now 7.5 mins.
Andrew Bartlett [Fri, 4 Aug 2006 06:53:17 +0000 (06:53 +0000)]
r17395: Add some more time to the default runtime.   Now 7.5 mins.

Andrew Bartlett
(This used to be commit 5cb916b57adaac7cb83cfde487aac5f901186e70)

16 years agor17394: Pregenerate all the files for TLS. Make the 'make test' startup *much* faster.
Andrew Bartlett [Fri, 4 Aug 2006 04:43:35 +0000 (04:43 +0000)]
r17394: Pregenerate all the files for TLS.  Make the 'make test' startup *much* faster.

Andrew Bartlett
(This used to be commit c366c906623168795846899174a8fdaa7bc14808)

16 years agor17381: - we don't need debug messages twice
Stefan Metzmacher [Thu, 3 Aug 2006 09:29:12 +0000 (09:29 +0000)]
r17381: - we don't need debug messages twice
- also user_info->mapped is maybe uninitialized
  in auth_password_check() as it we do the mapping in
  auth_password_check_send()

that to Kai Blin <kai.blin@gmail.com> and valgrind to find
this bug

metze
(This used to be commit d88aabef64316cebca46037b67dd2df7cfd4d482)

16 years agor17380: An expanded test, cross-referencing the global catalog to the main port.
Andrew Bartlett [Thu, 3 Aug 2006 09:18:44 +0000 (09:18 +0000)]
r17380: An expanded test, cross-referencing the global catalog to the main port.

Andrew Bartlett
(This used to be commit eadc24ed291dcdb456139a206c6c8acf92bab6da)

16 years agor17379: Pre-generate DH parameters, to avoid doing this at runtime in our testsuite.
Andrew Bartlett [Thu, 3 Aug 2006 08:02:54 +0000 (08:02 +0000)]
r17379: Pre-generate DH parameters, to avoid doing this at runtime in our testsuite.

Andrew Bartlett
(This used to be commit 23314c3953676124a2ad06e8b3a3b297c11f2800)

16 years agor17377: This attribute is maintained by the modules, don't override it.
Andrew Bartlett [Thu, 3 Aug 2006 00:59:39 +0000 (00:59 +0000)]
r17377: This attribute is maintained by the modules, don't override it.

Andrew Bartlett
(This used to be commit d942a8b2b6dcdc8d406d2c5b00983f0191e2a30d)

16 years agor17370: Fix tdb searches, we need to return an LDAP_REPLY_DONE packet when done.
Simo Sorce [Wed, 2 Aug 2006 00:01:09 +0000 (00:01 +0000)]
r17370: Fix tdb searches, we need to return an LDAP_REPLY_DONE packet when done.
Awesome how this didn't break everything around...
(This used to be commit 1b3b6176592314e91af9ed911e8a244519dea9aa)

16 years agor17368: Add 'const' to ldb_match_msg().
Andrew Bartlett [Tue, 1 Aug 2006 22:46:49 +0000 (22:46 +0000)]
r17368: Add 'const' to ldb_match_msg().

Andrew Bartlett
(This used to be commit 54eda4b85975c44c993a7dc45f6caa898076f163)

16 years agor17362: session_info and smbpid are available from the ntvfs_handle
Stefan Metzmacher [Tue, 1 Aug 2006 10:58:01 +0000 (10:58 +0000)]
r17362: session_info and smbpid are available from the ntvfs_handle
so we don't need them on the pvfs_file struct.

also we don't need to check is the handle has the correct session
as this is job of the frontend server

metze
(This used to be commit c83501335f245ac73b9d53c12efee3d46b8c5b05)

16 years agor17361: check that file handles are only accessable
Stefan Metzmacher [Tue, 1 Aug 2006 10:42:03 +0000 (10:42 +0000)]
r17361: check that file handles are only accessable
by the correct session in the SMB frontend server

metze
(This used to be commit 8a5bc18c5a3fa01848c02fdd855f35d6402866f3)

16 years agor17360: add some comments
Stefan Metzmacher [Tue, 1 Aug 2006 10:37:34 +0000 (10:37 +0000)]
r17360: add some comments

metze
(This used to be commit 3d849f9d2565ebcba16653df3ce2060d3b606c50)

16 years agor17359: http://www.cs.wisc.edu/~cao/cs739/draft-leach-cifs-v1-spec-01.txt
Stefan Metzmacher [Tue, 1 Aug 2006 10:11:37 +0000 (10:11 +0000)]
r17359: cs.wisc.edu/~cao/cs739/draft-leach-cifs-v1-spec-01.txt
says that with the 0xffff fid all files only for the given pid
should be flushed

Does samba3 handle this correct?

metze
(This used to be commit 7cf6eae23bf5b944ce6e419105d6cf195b368319)

16 years agor17357: - fix the build
Stefan Metzmacher [Tue, 1 Aug 2006 09:09:45 +0000 (09:09 +0000)]
r17357: - fix the build
- generate the IDL_NDR_* variables before using them
  (this was the reason I didn't noticed this error)

metze
(This used to be commit c493bc83ee31c8dac4943fdadf443b537af1f6f6)

16 years agor17352: Don't do a modify on the objectClasses, as OpenLDAP doesn't like
Andrew Bartlett [Tue, 1 Aug 2006 05:58:06 +0000 (05:58 +0000)]
r17352: Don't do a modify on the objectClasses, as OpenLDAP doesn't like
this.  Instead, handle this one in the add.

Andrew Bartlett
(This used to be commit ab355e1f5f0747225b4c3fc2e65ffb044fe03040)

16 years agor17351: Remove extra LDB partition we don't actually use (these are in the
Andrew Bartlett [Tue, 1 Aug 2006 05:56:47 +0000 (05:56 +0000)]
r17351: Remove extra LDB partition we don't actually use (these are in the
main database, under cn=templates).

Andrew Bartlett
(This used to be commit b1d061d36a4e8715576dc8cb1c4216c111d09035)

16 years agor17350: Avoid a couple of memleaks, unnecessary code and use a more linear style
Simo Sorce [Tue, 1 Aug 2006 03:22:02 +0000 (03:22 +0000)]
r17350: Avoid a couple of memleaks, unnecessary code and use a more linear style
(This used to be commit 97c4d41a30a5d85145abb781cb7001b502bc7dcb)

16 years agor17349: We can't just return sucess here, modules below us expect the async
Andrew Bartlett [Tue, 1 Aug 2006 02:25:05 +0000 (02:25 +0000)]
r17349: We can't just return sucess here, modules below us expect the async
reply rules to be followed.

Add code to do a fake async callback on the skipped records.

Andrew Bartlett
(This used to be commit 26bc7dbed978f92e814d9803366eac7d7f4ded3e)

16 years agor17344: move the gensec_update_request structure into the header file
Stefan Metzmacher [Mon, 31 Jul 2006 15:52:26 +0000 (15:52 +0000)]
r17344: move the gensec_update_request structure into the header file
and add a private_data for the backends.

metze
(This used to be commit 015a65e00187e684b3e4d1f4ca07edb9f022f61b)

16 years agor17343: let auth_winbind use IRPC against the winbind task.
Stefan Metzmacher [Mon, 31 Jul 2006 15:42:27 +0000 (15:42 +0000)]
r17343: let auth_winbind use IRPC against the winbind task.
(currently this uses the sync IRPC_CALL(), but when
auth_check_password will be async for the backend this will
change to IRPC_CALL_SEND()

the old module which uses the samba3 protocol against winbind
is still available as 'winbind_samba3'

metze
(This used to be commit 26efc732ab668bcb55fd0796818aabe45add2b25)

16 years agor17342: implement a SamLogon via IRPC in samba4's winbind
Stefan Metzmacher [Mon, 31 Jul 2006 15:38:18 +0000 (15:38 +0000)]
r17342: implement a SamLogon via IRPC in samba4's winbind

metze
(This used to be commit c3ce7a0c3708f0c8e784404e86034f7a00685f88)

16 years agor17341: pass a messaging context to auth_context_create()
Stefan Metzmacher [Mon, 31 Jul 2006 14:05:08 +0000 (14:05 +0000)]
r17341: pass a messaging context to auth_context_create()
and gensec_server_start().

calling them with NULL for event context or messaging context
is no longer allowed!

metze
(This used to be commit 679ac74e71b111344f1097ab389c0b83a9247710)

16 years agor17340: initialize elements od dcesrc_call_state in one central place
Stefan Metzmacher [Mon, 31 Jul 2006 13:40:49 +0000 (13:40 +0000)]
r17340: initialize elements od dcesrc_call_state in one central place
and pass the messaging context to the call

metze
(This used to be commit 0d7f16d7befa1e8824173d7b9da580e6a92ae4e5)

16 years agor17339: pass the event context and messaging context together to the
Stefan Metzmacher [Mon, 31 Jul 2006 13:34:00 +0000 (13:34 +0000)]
r17339: pass the event context and messaging context together to the
smb ejs functions

metze
(This used to be commit 0397911b414518d54f6dba2a8c81a5872b90a034)

16 years agor17337: make better usage of the composite api
Stefan Metzmacher [Mon, 31 Jul 2006 08:14:27 +0000 (08:14 +0000)]
r17337: make better usage of the composite api
and create an event context explicit

metze
(This used to be commit 02ec14e55390d7e21073d2c41a0c76b128b8b4e9)

16 years agor17336: make the logic a bit more easier to understand...
Stefan Metzmacher [Mon, 31 Jul 2006 07:29:44 +0000 (07:29 +0000)]
r17336: make the logic a bit more easier to understand...

metze
(This used to be commit 60afb466831da7a6946079ef0683cb6bff5edeb9)

16 years agor17332: May as well make this a round number
Andrew Bartlett [Mon, 31 Jul 2006 01:20:05 +0000 (01:20 +0000)]
r17332: May as well make this a round number
(This used to be commit a2d614147663c4f9b80d6e383819e92ca45e013b)

16 years agor17331: Oops, how did I commit this empty file...
Andrew Bartlett [Mon, 31 Jul 2006 01:16:28 +0000 (01:16 +0000)]
r17331: Oops, how did I commit this empty file...

Andrew Bartlett
(This used to be commit 3b81f21d4153350b1febe23daad9a08efc617954)

16 years agor17330: Enable the partitions module.
Andrew Bartlett [Mon, 31 Jul 2006 01:00:18 +0000 (01:00 +0000)]
r17330: Enable the partitions module.

This module redirects various samdb requests into different modules,
depending on the prefix.  It also makes moving to an LDAP backend
easier, as it is just a different partition backend.

This adds yet another stage to the provision process, as we must setup
the partitions before we setup the magic attributes.

Andrew Bartlett
(This used to be commit 31225b9cb6ef6fcb7bd831043999b1b44ef1b128)

16 years agor17329: - after a composite_continue() we need to call return;
Stefan Metzmacher [Sun, 30 Jul 2006 19:22:39 +0000 (19:22 +0000)]
r17329: - after a composite_continue() we need to call return;
- add some comments

metze
(This used to be commit adb4ba9db2d22277e24fa56bdd781f9628f1a076)