sfrench/samba-autobuild/.git
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)

16 years agor17328: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 19:00:16 +0000 (19:00 +0000)]
r17328: make better usage of the composite api

metze
(This used to be commit ae0834c8ca6d7049261eb9843dfd519594235d59)

16 years agor17327: when the connect with the ipv6 socket was ok,
Stefan Metzmacher [Sun, 30 Jul 2006 18:59:03 +0000 (18:59 +0000)]
r17327: when the connect with the ipv6 socket was ok,
we need to inform the caller...

metze
(This used to be commit 40f10dfd60a6d572539c85cb2637ca920e5f1bca)

16 years agor17326: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 18:36:17 +0000 (18:36 +0000)]
r17326: make better usage of the composite api

metze
(This used to be commit 097c9f09f3b9b45f7b0386dfb02173c1515ed45c)

16 years agor17325: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 18:24:07 +0000 (18:24 +0000)]
r17325: make better usage of the composite api

metze
(This used to be commit 26a62458cd9da2579c1f607dc13189769b4724da)

16 years agor17324: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 17:55:09 +0000 (17:55 +0000)]
r17324: make better usage of the composite api

metze
(This used to be commit 0fa97777107f5f65f8b48976b90f1ae52f1fe2a5)

16 years agor17323: make better use of the composite api and fix the memory
Stefan Metzmacher [Sun, 30 Jul 2006 17:50:37 +0000 (17:50 +0000)]
r17323: make better use of the composite api and fix the memory
hierachy

metze
(This used to be commit a0aa61a8d583ef626d082c47377c87008874e235)

16 years agor17322: make better use of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 17:45:11 +0000 (17:45 +0000)]
r17322: make better use of the composite api

metze
(This used to be commit 5e66bf463b0998b2981380f1250b60b723595ac4)

16 years agor17321: give better error codes
Stefan Metzmacher [Sun, 30 Jul 2006 17:43:58 +0000 (17:43 +0000)]
r17321: give better error codes

metze
(This used to be commit 8e87b79ce73931376b5852bc734f982f57aad4f3)

16 years agor17320: - print the debug message before the composite context get received by the...
Stefan Metzmacher [Sun, 30 Jul 2006 17:34:37 +0000 (17:34 +0000)]
r17320: - print the debug message before the composite context get received by the caller
- steal pipe2 to the state structure so we don't need to take about freeing is later

metze
(This used to be commit 4ba50fc29ec1949bb1b035ae3f2dc5f877ce581f)

16 years agor17319: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 17:31:12 +0000 (17:31 +0000)]
r17319: make better usage of the composite api

metze
(This used to be commit 8f9e201b9a797c0772672efab0f8e6a7a6312eb0)

16 years agor17318: make better usage of the composite api
Stefan Metzmacher [Sun, 30 Jul 2006 17:29:02 +0000 (17:29 +0000)]
r17318: make better usage of the composite api

metze
(This used to be commit 683fc25f6524a3821ba70529251aabe97bad9370)

16 years agor17317: - add a composite_create() function that allocates and initialize
Stefan Metzmacher [Sun, 30 Jul 2006 16:48:41 +0000 (16:48 +0000)]
r17317: - add a composite_create() function that allocates and initialize
  the composite_context structue, we should try to convert all code
  to use this because there're a lot of places where the we have
  bugs with this task...
- add a composite_continue_smb2() helper

We should try to hide the internals of the composite code from the users
to avoid errors (and I found a lot of them... and will fix then step by step)

metze
(This used to be commit a16180f20246844d05996d385fcb71893e08f589)

16 years agor17306: fix compiler warning
Stefan Metzmacher [Sat, 29 Jul 2006 07:56:03 +0000 (07:56 +0000)]
r17306: fix compiler warning

metze
(This used to be commit cee012c5702da225c81f82d90193b500e3707613)

16 years agor17305: allow 'declare [...] union foo;'
Stefan Metzmacher [Sat, 29 Jul 2006 06:00:58 +0000 (06:00 +0000)]
r17305: allow 'declare [...] union foo;'

metze
(This used to be commit 15d37004b70d097a1431fb4d41fef363ed654ac7)

16 years agor17304: Improve ldb_tdb error strings a bit more.
Andrew Bartlett [Sat, 29 Jul 2006 03:00:16 +0000 (03:00 +0000)]
r17304: Improve ldb_tdb error strings a bit more.

Andrew Bartlett
(This used to be commit 38bd4f61794e5a664822240d77c1e1c61abc7c44)

16 years agor17303: More testing results: Don't try and call a NULL callback, and use the
Andrew Bartlett [Sat, 29 Jul 2006 02:00:33 +0000 (02:00 +0000)]
r17303: More testing results: Don't try and call a NULL callback, and use the
correct parameter, as this is called for more than just 'add'.

Andrew Bartlett
(This used to be commit be51b7240889bfcc752f92a2920d8b6a2eccecd6)

16 years agor17302: Testing!
Andrew Bartlett [Sat, 29 Jul 2006 01:52:15 +0000 (01:52 +0000)]
r17302: Testing!

This confirms that records are replicated into the correct databases,
and that the case insensitive flags really work.

Andrew Bartlett
(This used to be commit ad463c1a5243019548bdbeea3070ec2e6cbcfcdf)

16 years agor17301: Add a new function to copy a list of attributes, while adding one to
Andrew Bartlett [Sat, 29 Jul 2006 01:23:50 +0000 (01:23 +0000)]
r17301: Add a new function to copy a list of attributes, while adding one to
the end.

Andrew Bartlett
(This used to be commit 2a87ed1111f4ed72798372d6005a88a929c39de6)

16 years agor17300: Try to fix some segfaults in ldb_ildap module, when the remote server
Andrew Bartlett [Sat, 29 Jul 2006 01:22:22 +0000 (01:22 +0000)]
r17300: Try to fix some segfaults in ldb_ildap module, when the remote server
drops the connection.  The reconnect code needs to be hooked in here.

Andrew Bartlett
(This used to be commit 778debedea77ac81cc05f00f27bb96a58cbebcd8)

16 years agor17299: Improve the partition module to replicate attribute records into all
Andrew Bartlett [Sat, 29 Jul 2006 01:13:53 +0000 (01:13 +0000)]
r17299: Improve the partition module to replicate attribute records into all
partitions.

Test that we do that correctly.

Andrew Bartlett
(This used to be commit 90c07b88010b848423dee9556a24e8d181c365dd)

16 years agor17298: Fix up the local_password module to the current LDB API, and build it by...
Andrew Bartlett [Fri, 28 Jul 2006 23:46:39 +0000 (23:46 +0000)]
r17298: Fix up the local_password module to the current LDB API, and build it by default.

Andrew Bartlett
(This used to be commit c1ea0a350cdc2c5ddfd71e08f8c3907d97fc1efd)

16 years agor17297: Some compilers don't seem to like the ;;
Andrew Bartlett [Fri, 28 Jul 2006 23:35:11 +0000 (23:35 +0000)]
r17297: Some compilers don't seem to like the ;;

Andrew Bartlett
(This used to be commit f814fae4002241f73a3a411ade96e5c58f973055)

16 years agor17290: don't do any stuff that can fail in the _recv function
Stefan Metzmacher [Fri, 28 Jul 2006 11:51:07 +0000 (11:51 +0000)]
r17290: don't do any stuff that can fail in the _recv function

metze
(This used to be commit 88bcb57e82c799197b1d87212466a9b21d61edf8)

16 years agor17289: Fix the build: I havn't commited this module yet.
Andrew Bartlett [Fri, 28 Jul 2006 07:49:07 +0000 (07:49 +0000)]
r17289: Fix the build: I havn't commited this module yet.

Andrew Bartlett
(This used to be commit 8b0f6e637ee3ef0767be4017b4106877c185d7c7)

16 years agor17288: Don't mess with entries in the local password prefix, and fix const
Andrew Bartlett [Fri, 28 Jul 2006 06:30:03 +0000 (06:30 +0000)]
r17288: Don't mess with entries in the local password prefix, and fix const
warnings.

Andrew Bartlett
(This used to be commit 4569c58a42e1d65ae71ee57e391b9e3dbaba2218)

16 years agor17287: Add the local_password module to the tree, so it doesn't get lost in
Andrew Bartlett [Fri, 28 Jul 2006 06:29:09 +0000 (06:29 +0000)]
r17287: Add the local_password module to the tree, so it doesn't get lost in
ldb API changes.

Andrew Bartlett
(This used to be commit 44806c67dbabe2952fe355de76d7fa51f772775f)

16 years agor17286: Simply fail the tls_initialise if we don't have TLS compiled in.
Andrew Bartlett [Fri, 28 Jul 2006 03:51:20 +0000 (03:51 +0000)]
r17286: Simply fail the tls_initialise if we don't have TLS compiled in.
Adjust the web_server code to cope with this.

Andrew Bartlett
(This used to be commit 3043969708edbdab58ee57e2fbffa293b6406813)

16 years agor17285: some reformating
Stefan Metzmacher [Thu, 27 Jul 2006 19:33:15 +0000 (19:33 +0000)]
r17285: some reformating

metze
(This used to be commit c865aea260dd22b8b5d63e60fd917a52ed719993)

16 years agor17284: move the input checking stuff from ntlmssp_update() into its
Stefan Metzmacher [Thu, 27 Jul 2006 19:20:57 +0000 (19:20 +0000)]
r17284: move the input checking stuff from ntlmssp_update() into its
own function.

metze
(This used to be commit ee81ad57938a9f54533a0028b87fd84bde90db8d)

16 years agor17283: use the async calls of auth_check_password() and gensec_update()
Stefan Metzmacher [Thu, 27 Jul 2006 19:07:15 +0000 (19:07 +0000)]
r17283: use the async calls of auth_check_password() and gensec_update()
in the smb server.

metze
(This used to be commit 216e02c69cf5914487f0000d836d1082795487b2)

16 years agor17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
Stefan Metzmacher [Thu, 27 Jul 2006 18:10:56 +0000 (18:10 +0000)]
r17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code

metze
(This used to be commit 43f99f11719374636d960fbc7b801ae69769aaf0)

16 years agor17281: we now have client/server max protol
Stefan Metzmacher [Thu, 27 Jul 2006 18:08:12 +0000 (18:08 +0000)]
r17281: we now have client/server max protol

metze
(This used to be commit 1d74291626399d283c180e136a3f7a8c27ecdb37)

16 years agor17280: NT_STATUS_INVALID_HANDLE maps to ERRbadfid, which is wrong in this
Stefan Metzmacher [Thu, 27 Jul 2006 18:06:09 +0000 (18:06 +0000)]
r17280: NT_STATUS_INVALID_HANDLE maps to ERRbadfid, which is wrong in this
places, so only overwrite ERRbaduid and ERRinvnid when NTSTATUS support
is given.

metze
(This used to be commit c70edc3fb8ef02ce12c784fad7ee9d5ac782bf98)

16 years agor17278: fix un uninitialized value found by valgrind
Stefan Metzmacher [Thu, 27 Jul 2006 16:44:59 +0000 (16:44 +0000)]
r17278: fix un uninitialized value found by valgrind

metze
(This used to be commit fe463bc568e8ac78ca161bcba3e867d33bb828b3)

16 years agor17277: we need to trigger an event when we return directly,
Stefan Metzmacher [Thu, 27 Jul 2006 16:20:59 +0000 (16:20 +0000)]
r17277: we need to trigger an event when we return directly,
otherwise the callers callback function will not be called
and the caller is hanging forever...

metze
(This used to be commit e231eba828486e68c9d3a246e1e0c943fdb8301c)

16 years agor17274: fix typos
Stefan Metzmacher [Thu, 27 Jul 2006 14:19:51 +0000 (14:19 +0000)]
r17274: fix typos

metze
(This used to be commit 699dee70aaa13bddbe8be760033aa81dd583208a)

16 years agor17273: add an async version of auth_check_password() on the public
Stefan Metzmacher [Thu, 27 Jul 2006 13:02:27 +0000 (13:02 +0000)]
r17273: add an async version of auth_check_password() on the public
auth interface and implement the sync version as wrapper
to auth_check_password_send/recv()

as next all callers need to be converted to the async interface
and then the modules

metze
(This used to be commit ed40bb3c16279f9727be67e889270da5efb8ddb9)

16 years agor17272: move the callback stuff into a substructure
Stefan Metzmacher [Thu, 27 Jul 2006 12:59:41 +0000 (12:59 +0000)]
r17272: move the callback stuff into a substructure

metze
(This used to be commit c49e27d5d0289e3525f7f6197b031e7d300df81b)

16 years agor17270: split the logic of saying this auth backend wants to handle this
Stefan Metzmacher [Thu, 27 Jul 2006 11:24:18 +0000 (11:24 +0000)]
r17270: split the logic of saying this auth backend wants to handle this
request from the password checking. This will help to make
the password checking hook async later

metze
(This used to be commit 5b26cbc3428b4c186235cc08c9ace1c23f59dd7f)

16 years agor17268: change the smb2 session setup to use the new gensec_update_send/recv() api
Stefan Metzmacher [Thu, 27 Jul 2006 10:03:54 +0000 (10:03 +0000)]
r17268: change the smb2 session setup to use the new gensec_update_send/recv() api

metze
(This used to be commit 14ecc563431335c99df33f4a454b3b02380ae165)

16 years agor17267: - add an async interface for gensec_update() to the public gensec api
Stefan Metzmacher [Thu, 27 Jul 2006 10:02:21 +0000 (10:02 +0000)]
r17267: - add an async interface for gensec_update() to the public gensec api
- note this is still uses the sync update() hook of the gensec modules
  but it allows me to fix the callers first

Later auth_check_password() will also get an async version,
so that we can later implement an async version of auth_winbind
using async IRPC to the winbind task.

metze
(This used to be commit d5638a4fafd1d60ccc4cd76e92a1b2b0093865a7)

16 years agor17265: some reformatting
Stefan Metzmacher [Thu, 27 Jul 2006 09:37:55 +0000 (09:37 +0000)]
r17265: some reformatting

metze
(This used to be commit e4c28001d336f69534437d3eaae1ec8b52455cd9)

16 years agor17264: - remove unused includes from talloc
Stefan Metzmacher [Wed, 26 Jul 2006 17:34:50 +0000 (17:34 +0000)]
r17264: - remove unused includes from talloc
- check explicit check for varargs.h as fallback from stdarg.h
  and fail the build if both are not present

metze
(This used to be commit b091d182fe8f36dfb67b7ede933a963b74034d91)

16 years agor17263: export talloc_free_children()
Stefan Metzmacher [Wed, 26 Jul 2006 17:32:47 +0000 (17:32 +0000)]
r17263: export talloc_free_children()

metze
(This used to be commit 195754b169f68399008dda074181a2a16e4ecce5)

16 years agor17257: make the size_t is to small error more verbose
Stefan Metzmacher [Wed, 26 Jul 2006 13:06:01 +0000 (13:06 +0000)]
r17257: make the size_t is to small error more verbose
(hopefully nobody will ever see this:-)

metze
(This used to be commit 196803a6c6a2588f0d3315bc38a56112ecb81349)

16 years agor17256: fix 2 crash bugs, which are introduced by making parameters
Stefan Metzmacher [Wed, 26 Jul 2006 12:25:16 +0000 (12:25 +0000)]
r17256: fix 2 crash bugs, which are introduced by making parameters
ref pointers!

I'm sure there're more places and more care is needed when idl files
are changed. Hopefully testing against windows in the build farm
find such bugs in future...

Why is in the client library this no more possible:

NTSTATUS foo([in,out,ref] uint8 *foo);

and then just

r.in.foo = &foo;
status = dcerpc_foo(p, mem_ctx, &r);

and r.out.foo will set to r.in.foo via pidl magic,
that worked some time ago...

metze
(This used to be commit d8952f00c77ba59e0806b0de802ac28ac977779c)

16 years agor17255: fixed BENCH-NBENCH for new smb_raw_find_first() syntax
Andrew Tridgell [Wed, 26 Jul 2006 11:41:08 +0000 (11:41 +0000)]
r17255: fixed BENCH-NBENCH for new smb_raw_find_first() syntax
(This used to be commit 7b05c007ea0a8df994af62625b529a164a104903)

16 years agor17253: add configure checks for writev/readv to see how portable they're
Stefan Metzmacher [Wed, 26 Jul 2006 07:01:35 +0000 (07:01 +0000)]
r17253: add configure checks for writev/readv to see how portable they're

metze
(This used to be commit b5c06d5b4ca4da6d1b582a33830471443a62d842)

16 years agor17251: - split out the starttls into its own function
Stefan Metzmacher [Wed, 26 Jul 2006 06:18:13 +0000 (06:18 +0000)]
r17251: - split out the starttls into its own function
- give an operations error when tls is already on the socket

metze
(This used to be commit 9190d134c9be774c53f6dae52b7c4cdcc053d00f)

16 years agor17250: Fix comment, the Samba3 winbind protocol uses the host byte order here.
Andrew Bartlett [Wed, 26 Jul 2006 05:19:36 +0000 (05:19 +0000)]
r17250: Fix comment, the Samba3 winbind protocol uses the host byte order here.

Andrew Bartlett
(This used to be commit dc4500eb902fbb0a0e7d3b38a9d257ea839d00d3)

16 years agor17243: some svcctl idl fixes from <andrzej.hajda@wp.pl>
Stefan Metzmacher [Tue, 25 Jul 2006 20:40:31 +0000 (20:40 +0000)]
r17243: some svcctl idl fixes from <andrzej.hajda@wp.pl>

metze
(This used to be commit 7b136ddf488b7b4a1aae31c9927b027216e60ae5)

16 years agor17241: substitude @datarootdir@ with old autoconf versions:-)
Stefan Metzmacher [Tue, 25 Jul 2006 20:09:45 +0000 (20:09 +0000)]
r17241: substitude @datarootdir@ with old autoconf versions:-)

metze
(This used to be commit ed5ffc7bfc57c72bb95562c88bd2ec290daed10c)

16 years agor17240: move extended operations to a new file
Stefan Metzmacher [Tue, 25 Jul 2006 20:05:00 +0000 (20:05 +0000)]
r17240: move extended operations to a new file

metze
(This used to be commit 0b16350fa2da39a66c4479dbf74182b06f7ed91a)

16 years agor17238: Add datarootdir (required for newer autoconf versions)
Jelmer Vernooij [Tue, 25 Jul 2006 19:43:49 +0000 (19:43 +0000)]
r17238: Add datarootdir (required for newer autoconf versions)
(This used to be commit c575dee5c76ca33a07ab62dc59f80ece1bd84abc)

16 years agor17237: - keep pointer to the different sockets
Stefan Metzmacher [Tue, 25 Jul 2006 19:20:04 +0000 (19:20 +0000)]
r17237: - keep pointer to the different sockets
- we need this to later:
  - to disallow a StartTLS when TLS is already in use
  - to place the TLS socket between the raw and sasl socket
    when we had a sasl bind before the StartTLS
  - and rfc4513 says that the server may allow to remove the TLS from
    the tcp connection again and reuse raw tcp
  - and also a 2nd sasl bind should replace the old sasl socket

metze
(This used to be commit 10cb9c07ac60b03472f2b0b09c4581cc715002ba)

16 years agor17230: don't overwrite the error with NT_STATUS_NO_MEMORY
Stefan Metzmacher [Tue, 25 Jul 2006 12:48:40 +0000 (12:48 +0000)]
r17230: don't overwrite the error with NT_STATUS_NO_MEMORY

metze
(This used to be commit f2196bf9b662d3f38d59eceb8c54f9d2e3f7b505)

16 years agor17227: don't call a function which takes some nonoptional args
Stefan Metzmacher [Tue, 25 Jul 2006 08:00:30 +0000 (08:00 +0000)]
r17227: don't call a function which takes some nonoptional args
with NULL.

metze
(This used to be commit 3711b968adf8a0951171ad1a90be65a9ae0dc03b)

16 years agor17226: add some comments about ldap binds and pending requests
Stefan Metzmacher [Tue, 25 Jul 2006 07:48:23 +0000 (07:48 +0000)]
r17226: add some comments about ldap binds and pending requests

metze
(This used to be commit e8db1fb55833ab7b9e0be391ff822b34682cb38c)

16 years agor17225: Fix the build by fixing the spelling of START-TLS.
Andrew Bartlett [Tue, 25 Jul 2006 03:41:32 +0000 (03:41 +0000)]
r17225: Fix the build by fixing the spelling of START-TLS.

Andrew Bartlett
(This used to be commit 4827a6b171d7b007f1641ef422d23449fb5a1606)

16 years agor17224: Accept the start-tls extended request. Getting OpenLDAP to recognise
Andrew Bartlett [Tue, 25 Jul 2006 02:57:51 +0000 (02:57 +0000)]
r17224: Accept the start-tls extended request.  Getting OpenLDAP to recognise
our certificate, and proceed with the connection is left as an
exercise for the reader...

Andrew Bartlett
(This used to be commit 9bd66d4c95dd971e2b1b6371ba3ffc6c178c0d4c)