bbaumbach/samba-autobuild/.git
16 years agor10891: I noticed that the secrets.db was not being backed up on my system due
Andrew Tridgell [Tue, 11 Oct 2005 05:01:52 +0000 (05:01 +0000)]
r10891: I noticed that the secrets.db was not being backed up on my system due
to msync/mmap not changing the mtime of the file. This patch ensures
that for successfully completed transactions we update the mtime.

I don't do this on all tdb writes as its too expensive, but doing it
just on transactions is bearable, as those cost quite a lot anyway.
(This used to be commit b2934732dd62f705f59c124f19460c5436a9a422)

16 years agor10889: make searches for dn's less of a special case, and much faster when
Andrew Tridgell [Tue, 11 Oct 2005 04:34:15 +0000 (04:34 +0000)]
r10889: make searches for dn's less of a special case, and much faster when
part of more complex expressions
(This used to be commit 40d304140b4cf22559d6b55c8cbaf1b984baf62f)

16 years agor10880: Missed terminating ';', sorry.
Jeremy Allison [Mon, 10 Oct 2005 20:05:29 +0000 (20:05 +0000)]
r10880: Missed terminating ';', sorry.
Jeremy.
(This used to be commit 2680aeffb1e40a7d1d59c98f0ee533d7c4362f40)

16 years agor10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Jeremy Allison [Mon, 10 Oct 2005 20:03:34 +0000 (20:03 +0000)]
r10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Samba3 code. Jelmer please check !
Jeremy.
(This used to be commit 534e8d16228ad4f1306ddf21ea9c9b988d736525)

16 years agor10878: Reply to some comments by tridge and metze:
Volker Lendecke [Mon, 10 Oct 2005 19:57:55 +0000 (19:57 +0000)]
r10878: Reply to some comments by tridge and metze:

* rename the composite helper functions from comp_* to composite_*

* Move the lsa initialization to wb_connect_lsa.c

* Equip smb_composite_connect with a fallback_to_anonymous

The latter two simplify wb_init_domain.c quite a bit.

Volker
(This used to be commit deb127e04ea01ae93394da5ebffb39d81caeb6d9)

16 years agor10873: check the complete payload header
Stefan Metzmacher [Mon, 10 Oct 2005 14:10:37 +0000 (14:10 +0000)]
r10873: check the complete payload header

metze
(This used to be commit 27f8d82231f2978ff15719e4b23912ae7f910638)

16 years agor10872: fix the length of the dummy XPRESS decompressed buffer
Stefan Metzmacher [Mon, 10 Oct 2005 13:25:11 +0000 (13:25 +0000)]
r10872: fix the length of the dummy XPRESS decompressed buffer

metze
(This used to be commit 0a1e4498a3550721b214716d1106843bf1ff4597)

16 years agor10871: make xpress compression choosable, by --option="dssync:xpress=yes",
Stefan Metzmacher [Mon, 10 Oct 2005 12:31:05 +0000 (12:31 +0000)]
r10871: make xpress compression choosable, by --option="dssync:xpress=yes",
default is to not use it, as it's currently not supported

metze
(This used to be commit 2fb79e24228a47edcb7e1e12fb73def523b0400b)

16 years agor10870: decompress DsGetNCChangesCtr7 replies, that uses type 2 (MSZIP)
Stefan Metzmacher [Mon, 10 Oct 2005 12:14:29 +0000 (12:14 +0000)]
r10870: decompress DsGetNCChangesCtr7 replies, that uses type 2 (MSZIP)
compression

metze
(This used to be commit b451137526c4872a808f14ef42b2ed50abce1355)

16 years agor10869: add dummy functions and dummy parsing of XPRESS decompression,
Stefan Metzmacher [Mon, 10 Oct 2005 12:10:10 +0000 (12:10 +0000)]
r10869: add dummy functions and dummy parsing of XPRESS decompression,
this is the compression algorithm used by w2k3 for DsGetNCChanges().

This algorithm isn't known yet, but it seems to be some sort of Lempel-Ziv
algorithm.

metze
(This used to be commit 694252b6e02e365ae5baffb76cdbc89eec5358e7)

16 years agor10868: make flag(NDR_PAHEX) possible to use and show the union level in hex
Stefan Metzmacher [Mon, 10 Oct 2005 11:47:23 +0000 (11:47 +0000)]
r10868: make flag(NDR_PAHEX) possible to use and show the union level in hex

metze
(This used to be commit 7efb92adc057ad8a993eb9de66c3806608747104)

16 years agor10867: add WERR_UNKNOWN_REVISION errorcode
Stefan Metzmacher [Mon, 10 Oct 2005 11:21:02 +0000 (11:21 +0000)]
r10867: add WERR_UNKNOWN_REVISION errorcode

metze
(This used to be commit b436206c498ea166b8b9fa47638d5f8f6f4752bf)

16 years agor10865: merge branches/SOC/SAMBA_4_0 into main the main SAMBA_4_0 tree
Stefan Metzmacher [Mon, 10 Oct 2005 09:33:06 +0000 (09:33 +0000)]
r10865: merge branches/SOC/SAMBA_4_0 into main the main SAMBA_4_0 tree

metze

 r8017@SERNOX:  metze | 2005-06-30 13:44:23 +0200
 create the SAMBA_4_0 branch for the Summer Of Code Project

 metze

 r8730@SERNOX:  brad | 2005-07-24 03:09:48 +0200
 Branching Samba 4
 r8731@SERNOX:  brad | 2005-07-24 06:39:00 +0200
 added 'make installmisc' to howto.txt
 added existing 'compression' option to level8 drsuapi torture test
 added new 'neighbour_writeable' option to level8 drsuapi torture test
 r8732@SERNOX:  brad | 2005-07-24 06:42:38 +0200
 added metze's dssync patch as source/torture/rpc/dssync.c
 r8739@SERNOX:  brad | 2005-07-25 00:24:46 +0200
 added a test called RPC-DSSYNC to config.mk
 hacking at dssync.c in an attempt to make it compile
 r8754@SERNOX:  brad | 2005-07-25 15:19:21 +0200
 Changing dssync.c to use ldb routines for accessing ldap rather than raw ldap calls.

 r8765@SERNOX:  brad | 2005-07-26 03:35:38 +0200
 more ldb changes to test_CompleteJoin(), it mostly kind of almost works now!

 r8766@SERNOX:  brad | 2005-07-26 03:56:00 +0200
 Trying to fix the crazy nesting in the branch
 r8769@SERNOX:  brad | 2005-07-26 04:48:29 +0200
 merging latest changes
 r8770@SERNOX:  brad | 2005-07-26 04:53:43 +0200
 removing nested branch
 r8793@SERNOX:  jerry | 2005-07-27 05:04:57 +0200
 merging on of Brad missing changes from the nested 4.0 branch debacle
 r8794@SERNOX:  jerry | 2005-07-27 05:14:42 +0200
 syncing up with the main 4_0 branch for Brad
 r8842@SERNOX:  brad | 2005-07-29 00:26:30 +0200
 merging changes from branches/SAMBA_4_0
 r8850@SERNOX:  brad | 2005-07-29 21:07:57 +0200
 Bringing my tree up to date
 r8851@SERNOX:  brad | 2005-07-30 00:48:04 +0200
 making dssync.c more ldb-centric, reverted samlogon.c from rev. 8845 to get my branch to compile again.
 r8856@SERNOX:  brad | 2005-07-30 03:20:33 +0200
 I think I have the ldb code down in test_CompleteJoin (not complete yet though)
 r8860@SERNOX:  brad | 2005-07-30 07:08:13 +0200
 Changed comments to C style /**/ (thanks Richard), some more changes to test_CompleteJoin().
 r8862@SERNOX:  brad | 2005-07-31 04:45:32 +0200
 Bringing the SOC/SAMBA_4_0 branch up to date.
 r8863@SERNOX:  brad | 2005-07-31 20:00:41 +0200
 Updated some missing files from the branch
 r8864@SERNOX:  brad | 2005-07-31 20:25:50 +0200
 Removing autogenerated files from branch
 r8865@SERNOX:  brad | 2005-07-31 20:43:58 +0200
 last of the unneeded files in SOC/SAMBA_4_0
 r9004@SERNOX:  brad | 2005-08-03 18:51:23 +0200
  r5214@buttercup:  j0j0 | 2005-08-03 10:44:30 -0600
   r@buttercup:  j0j0 | 2005-08-02 22:54:13 -0600
   creating a local branch of branches/SAMBA_4_0

 r9013@SERNOX:  brad | 2005-08-03 20:57:48 +0200
  r5228@buttercup:  j0j0 | 2005-08-03 13:00:11 -0600
  Fixing differences between this branch and /branches/SAMBA_4_0

 r9014@SERNOX:  brad | 2005-08-03 21:18:05 +0200
  r5231@buttercup:  j0j0 | 2005-08-03 13:23:12 -0600
  Updating config.mk so that smbtorture builds again

 r9061@SERNOX:  brad | 2005-08-04 18:17:36 +0200
  r5249@buttercup:  j0j0 | 2005-08-03 21:01:02 -0600
  Start using libnet_Join() for DC join.

 r9062@SERNOX:  brad | 2005-08-04 18:17:47 +0200
  r5250@buttercup:  j0j0 | 2005-08-04 10:21:34 -0600
  Some more work towards performing a dc join.

 r9064@SERNOX:  brad | 2005-08-04 18:53:51 +0200
  r5253@buttercup:  j0j0 | 2005-08-04 10:53:00 -0600
  Fixed a bug (passing a TALLOC_CTX to libnet_context_init() )

 r9069@SERNOX:  brad | 2005-08-04 21:59:55 +0200
  r5279@buttercup:  j0j0 | 2005-08-04 14:04:55 -0600
  Some more work on the domain join

 r9117@SERNOX:  brad | 2005-08-05 16:50:26 +0200
  r5281@buttercup:  j0j0 | 2005-08-05 08:55:58 -0600
  Committing minor changes before merge

 r9180@SERNOX:  brad | 2005-08-07 17:25:25 +0200
  r5314@buttercup:  j0j0 | 2005-08-07 09:30:12 -0600
  Reworked libnet_join to use two join levels, AUTOMATIC and SPECIFIED.

 r9181@SERNOX:  brad | 2005-08-07 17:25:36 +0200
  r5315@buttercup:  j0j0 | 2005-08-07 09:31:22 -0600
  Working with libnet_Join(), code cleanup needed in the near future.

 r9192@SERNOX:  brad | 2005-08-07 21:40:22 +0200
  r5373@buttercup:  j0j0 | 2005-08-07 13:46:09 -0600
  Some code cleanup to make things a little more readable.

 r9249@SERNOX:  brad | 2005-08-12 01:31:48 +0200
  r5375@buttercup:  j0j0 | 2005-08-11 17:38:44 -0600
  Split libnet_JoinDomain() into libnet_JoinDomain() and libnet_JoinADSDomain().

 r9256@SERNOX:  brad | 2005-08-12 04:55:11 +0200
  r5413@buttercup:  j0j0 | 2005-08-11 21:02:27 -0600
  Clean up libnet_JoinADSDomain() a little, added a comment to the test_join struct.

 r9314@SERNOX:  brad | 2005-08-16 03:53:20 +0200
  r5436@buttercup:  j0j0 | 2005-08-15 20:01:21 -0600
  libnet_JoinDomain() should honour LIBNET_JOIN_TORTURE now.
  torture_join_domain() should properly use libnet_JoinDomain().
  dssync.c uses torture_join_domain() again.

 r9351@SERNOX:  brad | 2005-08-17 07:15:31 +0200
  r5438@buttercup:  j0j0 | 2005-08-16 23:23:58 -0600
  Removed LIBNET_JOIN_TORTURE level, as it became unnecessary once libnet_Join_primary_domain() handled netbios names better.
  Corrected libnet_JoinDomain() and libnet_JoinADSDomain().

 r9352@SERNOX:  brad | 2005-08-17 07:24:49 +0200
  r5440@buttercup:  j0j0 | 2005-08-16 23:33:25 -0600
  Fixed a typo.

 r9354@SERNOX:  metze | 2005-08-17 10:28:25 +0200
 remove object files from svn

 metze
 r9376@SERNOX:  brad | 2005-08-18 05:15:48 +0200
  r5476@buttercup:  j0j0 | 2005-08-17 21:24:33 -0600
  Proof that I shouldn't code when i'm tired (silly bugfixes).

 r9405@SERNOX:  brad | 2005-08-19 22:50:10 +0200
  r5500@buttercup:  j0j0 | 2005-08-19 14:56:25 -0600
  Get dssync.c compiling again after merge (ldb_dn changes from rev. 9391).

 r9407@SERNOX:  brad | 2005-08-20 03:22:42 +0200
  r5502@buttercup:  j0j0 | 2005-08-19 19:28:22 -0600
  libnet/libnet_join.c
  Some more fixes so ldb uses ldb_dn's.

  torture/rpc/dssync.c
  Some debugging printf()'s.
  ldb_dn fixes.

  torture/rpc/testjoin.c
  Change torture_join_domain() to use libnet_JoinDomain() rather than libnet_Join().
  Some more debugging statements.

  I'm not sure why, but GUID_all_zero(user_handle.uuid) is returning true in torture_leave_domain() when called it from torture_destroy_context() in torture/rpc/dssync.c.
  That's what i'm working out now.

 r9427@SERNOX:  brad | 2005-08-20 18:38:29 +0200
  r5504@buttercup:  j0j0 | 2005-08-20 10:44:52 -0600
  Some bugfixes.
  Removed a bunch of debugging code.
  torture_leave_domain() works again! not 100% perfect yet though...

 r9428@SERNOX:  brad | 2005-08-20 19:09:26 +0200
  r5506@buttercup:  j0j0 | 2005-08-20 11:15:54 -0600
  Restructure torture_join_domain() so that it joins itself, removes itself, and joins itself to the domain again to ensure that its account information is all current and as expected.

 r9452@SERNOX:  brad | 2005-08-21 19:33:51 +0200
  r5508@buttercup:  j0j0 | 2005-08-21 11:40:36 -0600
  Bugfixes, trying to get things straight between contexts.

 r9467@SERNOX:  brad | 2005-08-22 04:00:48 +0200
  r5510@buttercup:  j0j0 | 2005-08-21 20:06:55 -0600
  Another round of bugfixing.

 r9521@SERNOX:  brad | 2005-08-23 15:26:44 +0200
  r5596@buttercup:  j0j0 | 2005-08-23 07:33:06 -0600
  Merging changes

 r9524@SERNOX:  metze | 2005-08-23 16:09:42 +0200
 - fix the build caused by changes in the main samba4 tree,
 - add an option "dssync:german=yes" to allow me to run against my german w2k3 server
   this should be replaces by CLDAP calls to get the Default-First-Site-Name dynamicly
 - remove some temporary comments, as DsAddEntry works now

 metze
 r9528@SERNOX:  metze | 2005-08-23 18:22:22 +0200
 the RPC-DSSYNC test is now able to fetch the whole tree,
 including the unicodePwd, ntPwdHistory fields

 metze
 r9559@SERNOX:  brad | 2005-08-24 04:11:47 +0200
  r5612@buttercup:  j0j0 | 2005-08-23 20:19:12 -0600
  Some fixes around using talloc in a hierarchical fashion.
  Still not right, but better.

 r9564@SERNOX:  brad | 2005-08-24 05:43:11 +0200
  r5614@buttercup:  j0j0 | 2005-08-23 21:50:38 -0600
  Gave libnet_JoinADSDomain() its own tmp_ctx rather than passing it from libnet_JoinDomain() as a parameter (yuk).

  As a side effect, it proves that my bug lies in libnet_JoinDomain(), not libnet_JoinADSDomain().

 r9565@SERNOX:  brad | 2005-08-24 06:09:46 +0200
  r5616@buttercup:  j0j0 | 2005-08-23 22:17:12 -0600
  Small fix, if r->out.error_string and r2->samr_handle.out.error_string weren't set to NULL, torture_join_domain() would segfault on the second join.

 r9630@SERNOX:  brad | 2005-08-26 06:42:50 +0200
 Commented out the parts of the dssync test which perform the dc join and create/remove associated ldap entries.

 Commented out the test for the 'german' dssync option, because now we detect the Site-Name using CLDAP. If cldap_netlogon() does not return ok, the code defaults to 'Default-First-Site-Name'.
 r9670@SERNOX:  brad | 2005-08-27 02:30:11 +0200
 Added a patch from metze.

 To showcase what i've learned today, i've created two new parameters which can be set at runtime, drsuapi:last_usn and drsuapi:partition.

 drsuapi:last_usn takes an integer representing the USN of the last recieved replication update for a particular partition (uses the domain dn if drsuapi:parition isn't set).

 That value is passed in the DsGetNCChanges() call so that only info which has been updated since that point in time is returned. If this option is not set, 0 is used by default, and all updates for that partition are returned.

 drsuapi:partition takes a string dn and uses that as the name of the AD partition to replicate.

 Some debugging output was also added.

 r9723@SERNOX:  brad | 2005-08-29 01:07:51 +0200
 Added some copyright notices.

 Changed some things in net_join.c to try and figure out why 'net join <domain> bdc' segfaults.
 It occurs when the last talloc_free() happens, so i'm sure it's something to do with the memory fiddling i'm doing in libnet_join.

 Added some drsuapi attribute ids that I figured out today.
 I put some (many, dry) notes together while doing that, so i'll try to put them up on a blog at samba.org a little later tonight.

 r9740@SERNOX:  metze | 2005-08-29 16:58:03 +0200
 fix up the DsGetNCchanges loop,
 and remove misleading comments

 metze
 r9743@SERNOX:  metze | 2005-08-29 17:26:45 +0200
 make the logic a bit clearer

 metze
 r9815@SERNOX:  brad | 2005-08-31 02:36:21 +0200
 Added cldap_netlogon() AD Site-Name lookup into libnet/libnet_join.c.
 Bugfixing rampage in libnet_join.c to resolve misunderstanding of talloc_steal().
 libnet_join now creates the CN=<netbios name>,CN=Servers,CN=<site name>,CN=Sites,CN=Configuration,<domain dn> container on a dc join.

 r9858@SERNOX:  brad | 2005-09-01 03:17:17 +0200
 Removed extraneous NDR_ALL subsystem requirement from torture/config.mk.
 Added lots of error checking as per metze's advice.
 Removed commented out code.
 More bug chasing.

 r9863@SERNOX:  brad | 2005-09-01 05:53:19 +0200
 Cleaned up dssync.c, removed the unneeded DsCrackNames() call, removed DC join/leave related stuff.
 It no longer looks like my house does!

 r9887@SERNOX:  metze | 2005-09-01 11:34:03 +0200
 - fix dssync:highest_usn parameter handling
 - ask for LINKED_ATTRIBUTE replication

 metze
 r9891@SERNOX:  metze | 2005-09-01 14:13:18 +0200
 make the code more readable, and fix a few bugs

 metze
 r9911@SERNOX:  brad | 2005-09-01 20:36:27 +0200
 Bugfixes in libnet_join.c.
 Cleaned up comments.
 Added domain_dn_str and account_dn_str to struct libnet_JoinDomain.
 Removed struct dcerpc_pipe *samr_pipe and struct policy_handle user_handle from struct libnet_Join.

 r9920@SERNOX:  brad | 2005-09-01 23:34:13 +0200
 Added disclaimer (I can't seem to get libnet_JoinDomain() to keep the samr_pipe and u_handle open past the function call, grrrr....).

 r9921@SERNOX:  brad | 2005-09-01 23:37:54 +0200
 Added copyright statement.
 Cleaned up unneeded variables from torture_join_domain().

 r9932@SERNOX:  brad | 2005-09-02 01:49:42 +0200
 Really rushed project notes.

 r10841@SERNOX:  metze | 2005-10-08 20:01:45 +0200
 remove diff to main SAMBA_4_0 branch

 metze
 r10862@SERNOX:  metze | 2005-10-10 10:31:52 +0200
 remove the differences between SAMBA_4_0 and SOC/SAMBA_4_0

 metze
 r10863@SERNOX:  metze | 2005-10-10 10:34:26 +0200
 fix the build

 metze
 r10864@SERNOX:  metze | 2005-10-10 11:10:08 +0200
 remove README file to reduce, diffs to main SAMBA_4_0 branch:

 metze

 README:
 This project was centered around adding a torture test to Samba 4, which used drsuapi_DsGetNCChanges() to retrieve the contents of an Active Directory in the same manner as an Active Directory DC replication event.

 As the project unfolded, I also applied some changes to the functionality of the libnet library related to joining a machine account to a domain.

 One of the first things that I implemented in this project was a 'neighbour_writeable' option for the RPC-DRSUAPI torture test. The command line to execute this torture test is as follows:

 smbtorture --option=drsuapi:neighbour_writeable=True -W <domain name> -U <admin username>%<password> ncacn_ip_tcp:<domain controller dns name> RPC-DRSUAPI

 This option provides us with runtime control over the DRSUAPI_DS_REPLICA_NEIGHBOUR_WRITEABLE flag in the struct drsuapi_DsGetNCChanges.in.req.req<level>.replica_flags, allowing us to easily test for differences in the behaviour of AD replication with the switch on or off.

 In the course of the project, I also implemented two more flags for the RPC-DSSYNC test. dssync:last_usn takes an integer representing the USN (Universal Serial Number) of the last recieved replication update for a particular partition (uses the domain DN if drsuapi:parition isn't set).   That value is passed in the DsGetNCChanges() call so that only info which has been updated since that point in time is returned. If this option is not set, 0 is used by default, and all updates for that partition are returned.  dssync:partition takes a string DN and uses that as the name of the AD partition to replicate.

 Based initially on a patch provided to me by one of my mentors, Stephan (metze) Metzmacher, the RPC-DSSYNC test was implemented for this project. Initially functionality was included to perform a DC join prior to initiating replication, but the code was removed when it was realized that replication could indeed take place without being a member of the domain in any way. It has been recently suggested that we may need a DC join after all to get all of the information we may want from the AD replication. This is probably best added using a torture_join_domain() call once the libnet code is able to keep the user policy handle and SAMR RPC pipe open.

 The DC join code was taken out of the RPC-DSSYNC and implemented for the most part in the libnet libraries. To test this, the RPC-NETLOGON test was modified to perform a domain join, leave and rejoin. Currently, the test has a fault in that it is unable to leave the domain using the same SAMR RPC pipe and user_policy information as was used for the first join. This is because I was unable to get the code working properly in libnet to provide that functionality. Currently missing from the DC join in libnet is the code to create the CN=NTDS Settings,CN=<DC NETBIOS NAME>,CN=<Site-Name>,CN=Sites,CN=Configuration,<domain DN> container using the dcerpc_drsuapi_DsAddEntry() call. I did not want to implement this functionality in libnet while there were still problems with the code.

 I also provided the ability in libnet and the RPC-DSSYNC test to look up the proper site name using the cldap library.

 In my investigations, I was unable to find out any information regarding the UnicodePwd attribute, except that the same password is represented differently for two different users in the same directory.

 I was also able to resolve and confirm the meaning of some DRSUAPI_ATTRIBUTE ID's.
  DRSUAPI_OBJECTCLASS_domain  (0xA0042)
  DRSUAPI_OBJECTCLASS_domainDNS  (0xA0043)
  wellKnownObjects  (0x9026A)
  fSMORoleOwner  (0x90171)
  name or dc (0x90001)
  whenCreated  (0x20002)
  instanceType  (0x20001)
  gPLink (0x9037B)
 These were added to the IDL for drsuapi (source/librpc/idl/drsuapi.idl).

 I would like to thank everyone on the Samba team who worked with me and assisted me with this project, specifically all the work done by Stephan Metzmacher, Andrew Bartlett and Jerry Carter. Working on this project with the Samba team really has been a life changing experience, as corny as that sounds.

 I've realized that I was born to be a systems developer, and it has helped confirm in my mind that Open Source (specifically Samba) development is exactly what i've been missing!

 I would also like to take this opportunity to thank Chris Dibona and Google for the amazing opportunity. I don't know if I would have taken the leap in other circumstances.

 I know these notes sound a little rushed, but it is 23:55 after all! :)
(This used to be commit 55552b41cbaa8c57a30373a53176e7f3ae945290)

16 years agor10859: Make the flow a bit clearer
Volker Lendecke [Mon, 10 Oct 2005 06:18:17 +0000 (06:18 +0000)]
r10859: Make the flow a bit clearer
(This used to be commit 66c90483b49bd8a8de1a46b12cce5270571f4090)

16 years agor10856: we need aclocal.m4 in ldb for standalone configure
Andrew Tridgell [Sun, 9 Oct 2005 23:29:26 +0000 (23:29 +0000)]
r10856: we need aclocal.m4 in ldb for standalone configure
(This used to be commit b2551e76e8b0edf99483343d687df3a6cecff1f5)

16 years agor10855: Put the domain SID in secrets.ldb by default, and add http as a
Andrew Bartlett [Sun, 9 Oct 2005 22:19:20 +0000 (22:19 +0000)]
r10855: Put the domain SID in secrets.ldb by default, and add http as a
default SPN alias.

Andrew Bartlett
(This used to be commit e4fe5802dae544f4dabf0c6d04a55be1144d8820)

16 years agor10854: talloc_get_type() can return NULL..
Jelmer Vernooij [Sun, 9 Oct 2005 21:30:41 +0000 (21:30 +0000)]
r10854: talloc_get_type() can return NULL..
(This used to be commit 8f7070055fc577cb4234654420539c68992d9671)

16 years agor10853: Convert wbinfo -n to properly init the domain.
Volker Lendecke [Sun, 9 Oct 2005 20:57:49 +0000 (20:57 +0000)]
r10853: Convert wbinfo -n to properly init the domain.

Volker
(This used to be commit 512ae49270197146e5967acd654dd97452cf4e77)

16 years agor10852: Continuation-based programming can become a bit spaghetti...
Volker Lendecke [Sun, 9 Oct 2005 20:32:24 +0000 (20:32 +0000)]
r10852: Continuation-based programming can become a bit spaghetti...

Initialize a domain structure properly. Excerpt from wb_init_domain.c:

/*
 * Initialize a domain:
 *
 * - With schannel credentials, try to open the SMB connection with the machine
 *   creds. Fall back to anonymous.
 *
 * - If we have schannel creds, do the auth2 and open the schannel'ed netlogon
 *   pipe.
 *
 * - Open LSA. If we have machine creds, try to open with ntlmssp. Fall back
 *   to schannel and then to anon bind.
 *
 * - With queryinfopolicy, verify that we're talking to the right domain
 *
 * A bit complex, but with all the combinations I think it's the best we can
 * get. NT4, W2k3SP1 and W2k all have different combinations, but in the end we
 * have a signed&sealed lsa connection on all of them.
 *
 * Is this overkill? In particular the authenticated SMB connection seems a
 * bit overkill, given that we do schannel for netlogon and ntlmssp for
 * lsa later on w2k3, the others don't do this anyway.
 */

Thanks to Jeremy for his detective work, and to the Samba4 team for providing
such a great infrastructure.

Next step is to connect to SAM. Do it via LDAP if we can, fall back to samr
with all we have.

Volker
(This used to be commit 3e69fdc07cd76b4bc01b032148609ee4b59b8be7)

16 years agor10849: Fix handling of [charset] for strings with fixed or "inline" size
Jelmer Vernooij [Sun, 9 Oct 2005 13:53:48 +0000 (13:53 +0000)]
r10849: Fix handling of [charset] for strings with fixed or "inline" size
(This used to be commit 3c2558d11ec1d0b41e5b36b793d9e64db2e203b6)

16 years agor10848: Fix warning
Jelmer Vernooij [Sun, 9 Oct 2005 13:40:55 +0000 (13:40 +0000)]
r10848: Fix warning
(This used to be commit 48d22a991024f19eccaa63848566b311524260c8)

16 years agor10847: Fix up new 'decrypt samlogon reply' routine to be more robust, and use
Andrew Bartlett [Sun, 9 Oct 2005 13:03:52 +0000 (13:03 +0000)]
r10847: Fix up new 'decrypt samlogon reply' routine to be more robust, and use
it in the RPC-SAMLOGON test.

Andrew Bartlett
(This used to be commit 675b7df2eedbcb7ea89c0411f76429d8e2357222)

16 years agor10846: Create a "wbsrv_domain", change wb_finddcs to the style of the rest of the
Volker Lendecke [Sun, 9 Oct 2005 12:50:35 +0000 (12:50 +0000)]
r10846: Create a "wbsrv_domain", change wb_finddcs to the style of the rest of the
async helpers.

Volker
(This used to be commit 10585ba4e81e979a03aec747db6fc059978fa566)

16 years agor10845: Add new function to decrypt the session keys in samlogon responses.
Andrew Bartlett [Sun, 9 Oct 2005 12:38:23 +0000 (12:38 +0000)]
r10845: Add new function to decrypt the session keys in samlogon responses.

Andrew Bartlett
(This used to be commit 6d24d8d12cdc64b180fd6277f0775e943f26e82b)

16 years agor10844: Add challenge-response authentication to Samba4's winbindd for VL.
Andrew Bartlett [Sun, 9 Oct 2005 12:13:05 +0000 (12:13 +0000)]
r10844: Add challenge-response authentication to Samba4's winbindd for VL.

Plaintext should be simple, but I'm going to do some infrustructure
work first.

Andrew Bartlett
(This used to be commit c9273729e4db4adc0061087fe7e0332e2bc24384)

16 years agor10843: Reformatting
Volker Lendecke [Sun, 9 Oct 2005 08:32:06 +0000 (08:32 +0000)]
r10843: Reformatting
(This used to be commit ecaa70f63b7f38a1daf8e33ded738107c5f6b53a)

16 years agor10842: Fix some issues with [out] unions that have a discriminator that is only
Jelmer Vernooij [Sat, 8 Oct 2005 20:19:35 +0000 (20:19 +0000)]
r10842: Fix some issues with [out] unions that have a discriminator that is only
[in]
(This used to be commit 3a4086d6142fa73b3adb2d66b1bfc9cd2585f31d)

16 years agor10840: Fix indentation
Jelmer Vernooij [Sat, 8 Oct 2005 17:55:56 +0000 (17:55 +0000)]
r10840: Fix indentation
(This used to be commit 7877d436576a1e7c6b02347f87e3f7e14e683888)

16 years agor10839: Add some [ref] (required for ethereal and Samba3 parser generators)
Jelmer Vernooij [Sat, 8 Oct 2005 17:55:28 +0000 (17:55 +0000)]
r10839: Add some [ref] (required for ethereal and Samba3 parser generators)
(This used to be commit 5556deee30616396bbaf1182eca08bf1213c0860)

16 years agor10838: Get us an schannel'ed netlogon pipe.
Volker Lendecke [Sat, 8 Oct 2005 17:45:27 +0000 (17:45 +0000)]
r10838: Get us an schannel'ed netlogon pipe.

Abartlet, now I think I need some assistance to implement the pam auth & crap
auth calls.

Volker
(This used to be commit 90a30c8b6585ed48b50e6aed75f3ecfd3543bbdc)

16 years agor10836: giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...
Stefan Metzmacher [Sat, 8 Oct 2005 16:35:33 +0000 (16:35 +0000)]
r10836: giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...

metze
(This used to be commit e7ee73a747a025a66ac6563172e51f160bc28e0a)

16 years agor10834: Work in progress on winbind. With some helper routines the composite functions
Volker Lendecke [Sat, 8 Oct 2005 16:25:00 +0000 (16:25 +0000)]
r10834: Work in progress on winbind. With some helper routines the composite functions
start to look sane.

Question: What about providing all winbind commands as irpc interfaces that
are called from the samba3 compatibility layer? This way it would be easy for
other samba components to access its functionality. Does that make sense?

Volker
(This used to be commit 2a6b8053859ea5690f90a8d2074d2bb4f06551f8)

16 years agor10832: free the old session info
Stefan Metzmacher [Sat, 8 Oct 2005 09:55:38 +0000 (09:55 +0000)]
r10832: free the old session info

metze
(This used to be commit 16b2569788348ee3654557cf714ea3b204375c3c)

16 years agor10830: we should use the same name in all places:-)
Stefan Metzmacher [Sat, 8 Oct 2005 07:41:57 +0000 (07:41 +0000)]
r10830: we should use the same name in all places:-)

metze
(This used to be commit fbe8fd06b700b78f02b7f01fc2ad45eee419d216)

16 years agor10829: Documentation updates
Jelmer Vernooij [Sat, 8 Oct 2005 00:33:19 +0000 (00:33 +0000)]
r10829: Documentation updates
Update TODO
Some small fixes to the modules
(This used to be commit 0c53e7c3cf7fd91fd34c48a5e68c1bcf70569854)

16 years agor10825: Complete wbinfo -n
Volker Lendecke [Fri, 7 Oct 2005 19:08:51 +0000 (19:08 +0000)]
r10825: Complete wbinfo -n
(This used to be commit 1afa893506f3d7157e251eec9baeba28dc011587)

16 years agor10820: Use talloc_get_type as suggested by tridge.
Andrew Bartlett [Fri, 7 Oct 2005 12:30:46 +0000 (12:30 +0000)]
r10820: Use talloc_get_type as suggested by tridge.

Andrew Bartlett
(This used to be commit 9c511a16f829df5f177b94c7234875d4ec8afe52)

16 years agor10812: Fix capitalisation (thanks tridge).
Andrew Bartlett [Fri, 7 Oct 2005 11:50:46 +0000 (11:50 +0000)]
r10812: Fix capitalisation (thanks tridge).

Andrew Bartlett
(This used to be commit f78982a0f1079b07be6d7bfd9cc0f92c2cebcf1c)

16 years agor10811: Revert accidental commit, I still need to finish the displayName and
Andrew Bartlett [Fri, 7 Oct 2005 11:37:38 +0000 (11:37 +0000)]
r10811: Revert accidental commit, I still need to finish the displayName and
syntatical mapping work.

Andrew Bartlett
(This used to be commit 7ec5084f63148d748b6bc87d6817363b079eebe1)

16 years agor10810: This adds the hooks required to communicate the current user from the
Andrew Bartlett [Fri, 7 Oct 2005 11:31:45 +0000 (11:31 +0000)]
r10810: This adds the hooks required to communicate the current user from the
authenticated session down into LDB.  This associates a session info
structure with the open LDB, allowing a future ldb_ntacl module to
allow/deny operations on that basis.

Along the way, I cleaned up a few things, and added new helper functions
to assist.  In particular the LSA pipe uses simpler queries for some of
the setup.

In ldap_server, I have removed the 'ldasrv:hacked' module, which hasn't
been worked on (other than making it continue to compile) since January,
and I think the features of this module are being put into ldb anyway.

I have also changed the partitions in ldap_server to be initialised
after the connection, with the private pointer used to associate the ldb
with the incoming session.

Andrew Bartlett
(This used to be commit fd7203789a2c0929eecea8125b57b833a67fed71)

16 years agor10809: Add struct decl
Andrew Bartlett [Fri, 7 Oct 2005 10:06:44 +0000 (10:06 +0000)]
r10809: Add struct decl
(This used to be commit aa30c16de0405f43ed35a28764ef25e234f3b2a7)

16 years agor10807: Make the split-out files actually compile...
Andrew Bartlett [Fri, 7 Oct 2005 09:19:59 +0000 (09:19 +0000)]
r10807: Make the split-out files actually compile...

Andrew Bartlett
(This used to be commit a4282c14d5cf6b5eceb293d657c7cd5eaea89046)

16 years agor10806: Add missing file.
Andrew Bartlett [Fri, 7 Oct 2005 08:56:01 +0000 (08:56 +0000)]
r10806: Add missing file.
(This used to be commit 9becd2c0d6ed8fe6de4b8bca0f2290f81fea28f7)

16 years agor10805: Move RPC-SAMLOGON to C99 initialisation
Andrew Bartlett [Fri, 7 Oct 2005 08:51:35 +0000 (08:51 +0000)]
r10805: Move RPC-SAMLOGON to C99 initialisation

Andrew Bartlett
(This used to be commit 0f994275ce5d84bdb746524c5da7d9661fbadb63)

16 years agor10804: Move the DRSUAPI cracknames test into a seperate file, and collapse
Andrew Bartlett [Fri, 7 Oct 2005 08:12:05 +0000 (08:12 +0000)]
r10804: Move the DRSUAPI cracknames test into a seperate file, and collapse
the file size by converting it to a table-driven system.

Andrew Bartlett
(This used to be commit f5499877722d6c4636036325efb75d35aa853cc4)

16 years agor10803: Remove a duplicate krbtgt test, and add a test looking for the
Andrew Bartlett [Fri, 7 Oct 2005 06:25:45 +0000 (06:25 +0000)]
r10803: Remove a duplicate krbtgt test, and add a test looking for the
'support account'.  This shows that we need to be searching on
displayName, and probably CN too.

Andrew Bartlett
(This used to be commit 28194504951af22a76cf26f3de749cb448518bbc)

16 years agor10800: Indent
Andrew Bartlett [Fri, 7 Oct 2005 04:00:11 +0000 (04:00 +0000)]
r10800: Indent
(This used to be commit 057cede8b44e1b53f5d94a7270e9b6a90d50de4c)

16 years agor10796: Make getting an anonymous session info a utility function.
Andrew Bartlett [Fri, 7 Oct 2005 02:07:25 +0000 (02:07 +0000)]
r10796: Make getting an anonymous session info a utility function.

Andrew Bartlett
(This used to be commit 6021fa373405f8788dc216aae82a3f4a80df4ba7)

16 years agor10791: Add copyright, fix comments (this isn't the timestamps module any more)
Andrew Bartlett [Fri, 7 Oct 2005 01:01:44 +0000 (01:01 +0000)]
r10791: Add copyright, fix comments (this isn't the timestamps module any more)

Andrew Bartlett
(This used to be commit efdc6d834aecbf978f538365c72149fa7afe0828)

16 years agor10790: allow updating of existing ldb opaque values (thanks to abartlet for
Andrew Tridgell [Fri, 7 Oct 2005 00:40:29 +0000 (00:40 +0000)]
r10790: allow updating of existing ldb opaque values (thanks to abartlet for
spotting this)
(This used to be commit ef13569ca94da00cc410318e61505e70f3606674)

16 years agor10788: - Give unions a name
Jelmer Vernooij [Thu, 6 Oct 2005 20:53:55 +0000 (20:53 +0000)]
r10788: - Give unions a name
- Check initialisation function return value
(This used to be commit ebb8e75ebd572d62bdb3615d41c210bcc918fa41)

16 years agor10787: Fix silly nodiscriminant-issue
Jelmer Vernooij [Thu, 6 Oct 2005 20:07:53 +0000 (20:07 +0000)]
r10787: Fix silly nodiscriminant-issue
(This used to be commit 43a5c863bf81af9b8415b6ccf8a386c36d4fa7f9)

16 years agor10768: add a function to create a stream_connection from an already
Stefan Metzmacher [Thu, 6 Oct 2005 14:44:37 +0000 (14:44 +0000)]
r10768: add a function to create a stream_connection from an already
existing socket connection, that's used for protocols
which switch the client/server roles inside a session

metze
(This used to be commit d4b4d963353e6986da5b42680739329069f5affe)

16 years agor10766: - make it possible to mark a wrepl_request as send only,
Stefan Metzmacher [Thu, 6 Oct 2005 14:38:07 +0000 (14:38 +0000)]
r10766: - make it possible to mark a wrepl_request as send only,
  used for WREPL_REPL_INFORM* messsages
- make it possible to close the connection after a request was send
  used for WREPL_ASSOCIATION_STOP
- fix the torture test that tests the assoc context handling
  between connections, you can issue a request and get the reply
  on another connection, I think we should not implement that in our server
  code, as I think it's a security hole, you can cause a windows server
  to send the replies to someone another client, that doesn't wait for data,
  and as there're no massage_id in the protocol the client would be confused
  by a replies that doesn't belong to a query

metze
(This used to be commit dfc95de8fa7ded8ea92cafe58cf86efcc7920156)

16 years agor10765: Actually use VALS() setting for enums
Jelmer Vernooij [Thu, 6 Oct 2005 11:57:25 +0000 (11:57 +0000)]
r10765: Actually use VALS() setting for enums
(This used to be commit 6b33e3eedd13ade5c7c9f4b5062e8b8f919fe39c)

16 years agor10764: To match Win2k3 SP1, we need to set an anonymous user token for
Andrew Bartlett [Thu, 6 Oct 2005 11:15:20 +0000 (11:15 +0000)]
r10764: To match Win2k3 SP1, we need to set an anonymous user token for
schannel connections.

Test for Win2k3 SP1 behaviour in RPC-SCHANNEL.

Andrew Bartlett
(This used to be commit 1c3911374ec65e4770c2fe9109d7b7d3ecd99f6a)

16 years agor10763: PROOF of the single, easily understood cause of all of our schannel PAIN!
Andrew Bartlett [Thu, 6 Oct 2005 10:29:28 +0000 (10:29 +0000)]
r10763: PROOF of the single, easily understood cause of all of our schannel PAIN!

This test currently passes against Win2k3 SP0, but not SP1.  The
problem was not a convoluted series of changes in policy handles, but
a simple rule that schannel logins would be regarded as ANONYMOUS not
SYSTEM.

Andrew Bartlett
(This used to be commit e843a7fcba496b91b014ec1bff2f2dfb2a2fcdb1)

16 years agor10761: we need to use a pointer to a nbt_name to fix compiler warnings, because...
Stefan Metzmacher [Thu, 6 Oct 2005 07:26:05 +0000 (07:26 +0000)]
r10761: we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h

metze
(This used to be commit 2f46e54e1bcf43f1bee062ff9a21e646cc3676e9)

16 years agor10760: remove only one star from the pointers, and not from the stars that
Stefan Metzmacher [Thu, 6 Oct 2005 07:04:36 +0000 (07:04 +0000)]
r10760: remove only one star from the pointers, and not from the stars that
come from the array nesting

this fixes a compiler warning and but in the eventlog.h,
where the idl uses nstring strings[num_strings]

metze
(This used to be commit c4a252bd4678ef991705aaaf91c03c697f2f568e)

16 years agor10759: make modules easier to write by allowing modules to only implement the
Andrew Tridgell [Thu, 6 Oct 2005 06:57:09 +0000 (06:57 +0000)]
r10759: make modules easier to write by allowing modules to only implement the
functions they care about, instead of all functions. This also makes
it more likely that future changes to ldb will not break existing
modules
(This used to be commit 45f0c967b58e7c1b2e900a4d74cfde2a2c527dfa)

16 years agor10757: remove the proxy module (it is not complete yet)
Andrew Tridgell [Thu, 6 Oct 2005 06:01:56 +0000 (06:01 +0000)]
r10757: remove the proxy module (it is not complete yet)
(This used to be commit 3c5f3032fcb092545580b986e0ce58bb49e4d9cb)

16 years agor10756: another fix for the construction of expressions from subtrees for
Andrew Tridgell [Thu, 6 Oct 2005 05:53:46 +0000 (05:53 +0000)]
r10756: another fix for the construction of expressions from subtrees for
SUBSTRING searches. This time fix multi-part substring searches.
(This used to be commit bf5cef6f00466fc1dc3c2864a109f1ccd92681b0)

16 years agor10755: fixed the construction of expressions from subtrees for SUBSTRING searches
Andrew Tridgell [Thu, 6 Oct 2005 05:41:32 +0000 (05:41 +0000)]
r10755: fixed the construction of expressions from subtrees for SUBSTRING searches
(This used to be commit 71c06778d4a3ac1ca4198071ae3351acdc0656d9)

16 years agor10754: fixed a valgrind error for unmatched SMB replies
Andrew Tridgell [Thu, 6 Oct 2005 05:25:35 +0000 (05:25 +0000)]
r10754: fixed a valgrind error for unmatched SMB replies
(This used to be commit b714ab64fd79d5cabc39779774fae7c3861a84da)

16 years agor10753: don't require every ldb module to implement both a search_bytree() and
Andrew Tridgell [Thu, 6 Oct 2005 05:24:46 +0000 (05:24 +0000)]
r10753: don't require every ldb module to implement both a search_bytree() and
a search() function, instead each module now only implements the
bytree method, and the expression based search is handled generically
by the modules code. This makes for more consistency and less code
duplication.

fixed the tdb backend to handle BASE searches much more
efficiently. They now always only lookup one record, regardless of the
search expression
(This used to be commit 7e44f9153c5578624e2fca04cdc0a00af0fd9eb4)

16 years agor10752: make sure we set the exist status correctly for the tdb tests
Andrew Tridgell [Thu, 6 Oct 2005 04:45:33 +0000 (04:45 +0000)]
r10752: make sure we set the exist status correctly for the tdb tests
(This used to be commit e83635941c1829d8cb8c0784b7f7303c85654199)

16 years agor10742: Support multi-level pointers + ref pointer fixes
Jelmer Vernooij [Wed, 5 Oct 2005 22:18:59 +0000 (22:18 +0000)]
r10742: Support multi-level pointers + ref pointer fixes
(This used to be commit 258b762dc62b257f99d1d859c5a3d850aba3e9fa)

16 years agor10739: Reduce number of calls to prs_align_custom()
Jelmer Vernooij [Wed, 5 Oct 2005 19:53:41 +0000 (19:53 +0000)]
r10739: Reduce number of calls to prs_align_custom()
(This used to be commit ebeeec5406308d493d45b1088963a87cdb953cac)

16 years agor10737: Fix some alignment issues
Jelmer Vernooij [Wed, 5 Oct 2005 19:41:53 +0000 (19:41 +0000)]
r10737: Fix some alignment issues
(This used to be commit 2b4270a2e965eb5c6fe0b25d22d2977e60bb7d43)

16 years agor10734: Generate ptr, size, offset, and length elements in unions just once.
Jelmer Vernooij [Wed, 5 Oct 2005 17:13:29 +0000 (17:13 +0000)]
r10734: Generate ptr, size, offset, and length elements in unions just once.
(This used to be commit 12bfa5d01bcb4cb9dad5167e1a3721fd68f06275)

16 years agor10732: Generate _ctr structures for unions
Jelmer Vernooij [Wed, 5 Oct 2005 14:52:35 +0000 (14:52 +0000)]
r10732: Generate _ctr structures for unions
(This used to be commit bd8fcb05003ad75f521783ad9603c923eacafc1a)

16 years agor10726: fix to talloc_parent() from Michael O'Brien
Andrew Tridgell [Wed, 5 Oct 2005 06:32:00 +0000 (06:32 +0000)]
r10726: fix to talloc_parent() from Michael O'Brien
(This used to be commit f31a2376f3fef1cc2b40b37fb4d94a4b67eec6d4)

16 years agor10721: Handle allocations and primitive / deferred data correctly. In theory,
Jelmer Vernooij [Wed, 5 Oct 2005 00:29:47 +0000 (00:29 +0000)]
r10721: Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).

Not supported:
 - subcontexts()
 - relative pointers
 - unions of pointers
 - DATA_BLOB
 - several other things

Also still need to do:
 - Remove some spurious spaces in the output
 - Do range() checking

Example output is still available at http://samba.org/~jelmer/pidl_samba3/
(This used to be commit e2d7e382bb645f1bddd2047669bed10f121b59d2)

16 years agor10719: Remove __FUNCTION__ macro as it might not be available at all systems
Jelmer Vernooij [Tue, 4 Oct 2005 21:42:39 +0000 (21:42 +0000)]
r10719: Remove __FUNCTION__ macro as it might not be available at all systems
(pointed out by John E. Malmberg)
(This used to be commit 3169bbc15703b39943a11939e9dcccb2a9b4ad5d)

16 years agor10718: Another large set of small improvements. All generated files compile
Jelmer Vernooij [Tue, 4 Oct 2005 21:25:18 +0000 (21:25 +0000)]
r10718: Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
 - add allocation of arrays in marshalling phase
 - handling primitive and deferred data in embedded structures / unions.

Example output is again available from http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 9fe724f6fb026d95306587f696c065f348aaf219)

16 years agor10717: Another bunch of small updates. All generated files except parse_dfs.c
Jelmer Vernooij [Tue, 4 Oct 2005 19:38:35 +0000 (19:38 +0000)]
r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
(This used to be commit 2b315b1942e77640eca8e0a3347b2a9ed1920f6a)

16 years agor10716: Use correct Samba3 data types for strings. Also use Samba3 types
Jelmer Vernooij [Tue, 4 Oct 2005 18:24:21 +0000 (18:24 +0000)]
r10716: Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
(This used to be commit c2527217b4b4c120d82044e65b979dd3b7d2609e)

16 years agor10715: More Samba3 parser generator improvements:
Jelmer Vernooij [Tue, 4 Oct 2005 17:21:31 +0000 (17:21 +0000)]
r10715: More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.

I've updated the example output at http://samba.org/~jelmer/
(This used to be commit b229c033ebc7ec972b32f1b75b60a9c68a36db97)

16 years agor10713: Couple more updates to the Samba3 parser generators.
Jelmer Vernooij [Tue, 4 Oct 2005 13:07:23 +0000 (13:07 +0000)]
r10713: Couple more updates to the Samba3 parser generators.
Unions and enums have been improved, init functions are now generated
properly, some other small improvements.
(This used to be commit 8a60e79175eb27ef9fa4b8dea72a518bbaab900f)

16 years agor10712: Use data_blob_talloc, thanks to valgrind for finding the errors.
Andrew Bartlett [Tue, 4 Oct 2005 12:04:10 +0000 (12:04 +0000)]
r10712: Use data_blob_talloc, thanks to valgrind for finding the errors.

Andrew Bartlett
(This used to be commit 1f6fec8e6b0845ae6000eeda65641435fb18c9e3)

16 years agor10711: An error of 'user exists' is not an error, just an indication of how
Andrew Bartlett [Tue, 4 Oct 2005 12:02:52 +0000 (12:02 +0000)]
r10711: An error of 'user exists' is not an error, just an indication of how
the join was processed.

Andrew Bartlett
(This used to be commit 0d93f11c894927a9ab69f7a31b9fbedde9d698b6)

16 years agor10709: fixed a crash bug rather similar to the one volker found in the dcerpc
Andrew Tridgell [Tue, 4 Oct 2005 10:18:07 +0000 (10:18 +0000)]
r10709: fixed a crash bug rather similar to the one volker found in the dcerpc
code, where a stream_terminate_connection() while processing a request
can cause a later defererence of the connection structure to die.
(This used to be commit efbcb0f74176058a74d7134dae4658b891fc6f16)

16 years agor10708: a bit more error checking in the idap ldb backend
Andrew Tridgell [Tue, 4 Oct 2005 05:41:05 +0000 (05:41 +0000)]
r10708: a bit more error checking in the idap ldb backend
(This used to be commit 63ebaad393e38b28c8f97f33e2b22f2445733405)

16 years agor10706: split out the irpc server functions in the NBT server, so the mainline
Andrew Tridgell [Tue, 4 Oct 2005 01:51:55 +0000 (01:51 +0000)]
r10706: split out the irpc server functions in the NBT server, so the mainline
NBT server code remains reabable. Also fixed the copyright header to
include Volker, as he wrote the getdc server function
(This used to be commit a973197d3e0045a76a2f14153f5541b9e36e6c8a)

16 years agor10705: fixed a crash bug in the getdcname irpc server for winbind. The
Andrew Tridgell [Tue, 4 Oct 2005 01:43:24 +0000 (01:43 +0000)]
r10705: fixed a crash bug in the getdcname irpc server for winbind. The
problem was that the return string was declared as:

[out] astring dcname

which means "this is a non-NULL string". The server code sometimes
returned NULL however (on getdc lookup failure), which caused the NDR
marshalling code to crash. When you declare a non-pointer return value
you are promising that the value can never be NULL.

The trivial fix is to use:

[out] astring *dcname

which leaves the API alone, but includes a pointer in the wire format,
which in turn means it is valid to send a NULL string as a response.
(This used to be commit e39bac61960f6ce8957f148a482e39499a8e9096)

16 years agor10704: don't try to free the netlogon pipe twice
Andrew Tridgell [Tue, 4 Oct 2005 01:35:22 +0000 (01:35 +0000)]
r10704: don't try to free the netlogon pipe twice
(This used to be commit 2c3a9f04db5d61305f4eca8b44e33c2dd15a6dc4)

16 years agor10703: Add a new user account, change the password and test it in the SAMLOGON test.
Andrew Bartlett [Tue, 4 Oct 2005 01:02:06 +0000 (01:02 +0000)]
r10703: Add a new user account, change the password and test it in the SAMLOGON test.

The semantics for the user account are very odd, the old password is
still valid, but the session keys appear to be blanked out.

Andrew Bartlett
(This used to be commit bbfaf4821d81116efa91313655acb75d6f577953)

16 years agor10702: Fix a silly error that caused a rejoin/delete in the torture code to fault...
Andrew Bartlett [Tue, 4 Oct 2005 01:01:07 +0000 (01:01 +0000)]
r10702: Fix a silly error that caused a rejoin/delete in the torture code to fault...

Andrew Bartlett
(This used to be commit 0fa6d040f287dbf6b0588e3507d53037a04f85d4)

16 years agor10701: Ensure we return the right user handle.
Andrew Bartlett [Tue, 4 Oct 2005 00:59:59 +0000 (00:59 +0000)]
r10701: Ensure we return the right user handle.

Andrew Bartlett
(This used to be commit 732b247a498e0b90b9f0c711baaac51ad6402496)

16 years agor10700: removed volkers temporary timer hack now that freeing the netlogon
Andrew Tridgell [Tue, 4 Oct 2005 00:46:31 +0000 (00:46 +0000)]
r10700: removed volkers temporary timer hack now that freeing the netlogon
pipe is safe while inside a rpc callback
(This used to be commit 5d752a519416c7a0c8c7d166f43eadc75cb5c37f)

16 years agor10699: fixed the dcerpc code so that you can shutdown the pipe safely from
Andrew Tridgell [Tue, 4 Oct 2005 00:43:16 +0000 (00:43 +0000)]
r10699: fixed the dcerpc code so that you can shutdown the pipe safely from
within a callback on the pipe. This should fix a problem volker
encountered with winbind. The fix invoolves making the recv_data
handler free the memory for a packet, instead of having the transport
layer free it after calling recv_data. When the transport layer freed
it, it had no way of knowing if the callback had shutdown the pipe, so
it had no way of knowing if it could safely use the pointer.

Also changed the pipe shutdown hook for the smb transport to use an
async SMB close. This ensures that when you shutdown the pipe, you
don't block waiting for the server to ack the close of the pipe fnum.
(This used to be commit c87d7f580e39245db181605f50883de07dd9632e)

16 years agor10698: Fix support of enums in switch_type() in the ethereal parser generator
Jelmer Vernooij [Mon, 3 Oct 2005 23:54:44 +0000 (23:54 +0000)]
r10698: Fix support of enums in switch_type() in the ethereal parser generator
(This used to be commit 9fac8dfeb393212e16be7156de466077bc90232d)

16 years agor10697: Change the torture join code to return a credentials structure, as
Andrew Bartlett [Mon, 3 Oct 2005 23:46:21 +0000 (23:46 +0000)]
r10697: Change the torture join code to return a credentials structure, as
that is what most of the callers want anyway.

Remove and re-add the account for the torture case, rather than just
modify it.

Test with a user account (needs work to change the password).

Andrew Bartlett
(This used to be commit 38bebef02454164cbe882347d80e03abee656205)

16 years agor10696: Return the realm to the caller, not NULL...
Andrew Bartlett [Mon, 3 Oct 2005 23:42:59 +0000 (23:42 +0000)]
r10696: Return the realm to the caller, not NULL...

Also return an indication of if the join was of a new account, or
reworking an existing account.

Andrew Bartlett
(This used to be commit b6e4b36c4f1f90e42dd0543538956a1d89e3724b)

16 years agor10695: strupper() of NULL should be NULL, not panic.
Andrew Bartlett [Mon, 3 Oct 2005 23:39:59 +0000 (23:39 +0000)]
r10695: strupper() of NULL should be NULL, not panic.

Andrew Bartlett
(This used to be commit b1bcc0dc0b3c6d4d931100dee21ba16cb5521978)

16 years agor10694: Add some work I did this afternoon on getting pidl to output Samba3
Jelmer Vernooij [Mon, 3 Oct 2005 23:27:33 +0000 (23:27 +0000)]
r10694: Add some work I did this afternoon on getting pidl to output Samba3
RPC parsers. Currently the following files can be generated:

- include/rpc_BASENAME.h
- rpc_server/srv_BASENAME.c
- rpc_server/srv_BASENAME_nt.c (template only, user has to fill in functions)
- rpc_client/cli_BASENAME.c
- rpc_parse/parse_BASENAME.c

So far, I have been working on getting DFS working. Currently still to do
(all in rpc_parse/parse_BASENAME.c):
 - Proper handling of declarations
 - Proper handling of scalar/buffer parts of structs and unions
 - Subcontexts
 - Proper handling of arrays
 - Support for custom (non-scalar) types

I hope to have a somewhat more working version later this week.

Some files as currently generated are available from:
http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 8af8eaeeef6d46f4d25ccb1d25890e1eef063e4f)

16 years agor10691: This gets half-way to wbinfo -n. It acquires an lsa pipe, and does a
Volker Lendecke [Mon, 3 Oct 2005 17:36:49 +0000 (17:36 +0000)]
r10691: This gets half-way to wbinfo -n. It acquires an lsa pipe, and does a
queryinfopolicy. Idea is to get a consistency check between that and our
notion of the domain name and sid, and take the lsa pipe as the holder of the
central smbcli_tree that netlogon and samr use as well.

Volker
(This used to be commit 126c80aefc4f53c4ba79afc12d70602ef9055ddb)

16 years agor10690: Fix a bug that metze pointed out: Leaving the "rejecting" destructor around
Volker Lendecke [Mon, 3 Oct 2005 17:36:10 +0000 (17:36 +0000)]
r10690: Fix a bug that metze pointed out: Leaving the "rejecting" destructor around
prevents the memory from being freed.

Thanks,

Volker
(This used to be commit df8eeb01f498568207a4a8d5d12348c473f41799)

16 years agor10687: Another one...
Volker Lendecke [Mon, 3 Oct 2005 15:19:08 +0000 (15:19 +0000)]
r10687: Another one...
(This used to be commit d18f7edf92e8420f30cae01649d18f0ae20a80aa)

16 years agor10686: Fix the build
Volker Lendecke [Mon, 3 Oct 2005 15:03:31 +0000 (15:03 +0000)]
r10686: Fix the build
(This used to be commit a7137fd3ec2e484c8feb73fa228031c8b75107bf)