metze/samba/wip.git
16 years agor1091: Added in timing tests for deferred opens. Added extra debug info to signing
Jeremy Allison [Wed, 9 Jun 2004 00:07:59 +0000 (00:07 +0000)]
r1091: Added in timing tests for deferred opens. Added extra debug info to signing
mistakes.
Jeremy.
(This used to be commit 5c3a2417cfe1bdbdfb35d933d49f77f6696790b3)

16 years agor1086: Add defer open test to check timeout on sharing violation open.
Jeremy Allison [Tue, 8 Jun 2004 19:25:26 +0000 (19:25 +0000)]
r1086: Add defer open test to check timeout on sharing violation open.
This has found some signing errors in the Samba3.0 implementation
of the deferred open code. Still working on these...
Jeremy
(This used to be commit 0068cb12ef91515a95f17a1be7dfbc83fbb89eba)

16 years agor1083: Generate prototypes for structs and unions marked "public" in the idl.
Tim Potter [Tue, 8 Jun 2004 12:33:47 +0000 (12:33 +0000)]
r1083: Generate prototypes for structs and unions marked "public" in the idl.

Delete various hacks to work around not doing this before.
(This used to be commit 5c3c3d3e72d8dd5d995a5bc5b2c7d7217b7c0432)

16 years agor1080: Make sure to initialise all the returned elements in the SamLogon
Andrew Bartlett [Mon, 7 Jun 2004 22:17:51 +0000 (22:17 +0000)]
r1080: Make sure to initialise all the returned elements in the SamLogon
reply also initialise the LM session key, when we have it (was failing
because the auth code was setting it's length wrong).

Andrew Bartlett
(This used to be commit de97d9df224f769953e850a276515923a830839c)

16 years agor1078: the dxesrv_crypto_* implementations should now explicit set
Stefan Metzmacher [Mon, 7 Jun 2004 21:34:32 +0000 (21:34 +0000)]
r1078: the dxesrv_crypto_* implementations should now explicit set
the dce_conn->auth_state.session_info
( the ntlmssp one works fine, but the schannel one isn't implemented yet)

this is also set by the ntvfs_ipc backend on the endpoint connect.

metze
(This used to be commit ad3dd1789e9f124493519cb4731d9f5a563fd051)

16 years agor1077: fix segfault in schannel over ncacn_ip_tcp
Stefan Metzmacher [Mon, 7 Jun 2004 21:30:17 +0000 (21:30 +0000)]
r1077: fix segfault in schannel over ncacn_ip_tcp

metze
(This used to be commit 9e9a52692ebe9d47f1a08740ea1dcb8f46041211)

16 years agor1073: import DYNEXP flags to smb_build
Stefan Metzmacher [Mon, 7 Jun 2004 18:31:38 +0000 (18:31 +0000)]
r1073: import DYNEXP flags to smb_build

and use @{$SMB_BUILD_CTX->{BUILD_ENV}{LD}{DYNEXP}} for the flags

I'll use this for all vars which are currently using AC_SUBST(),
so we can skip Makefile.in...

(this should fix the build on us4...)

metze
(This used to be commit 798cbed5a328bd773447f1ee0b4f6ea751062e7e)

16 years agor1068: make the dcerpc client side auth/crypto code much more generic
Stefan Metzmacher [Mon, 7 Jun 2004 12:30:22 +0000 (12:30 +0000)]
r1068: make the dcerpc client side auth/crypto code much more generic

metze
(This used to be commit 1706ff88a72c6578a109c2cf24f2f009812c3892)

16 years agor1067: fix compiler warnings
Stefan Metzmacher [Mon, 7 Jun 2004 12:17:29 +0000 (12:17 +0000)]
r1067: fix compiler warnings

metze
(This used to be commit e5d338821e590c49947a18a5d5c361122571988d)

16 years agor1066: fix compiler warning
Stefan Metzmacher [Mon, 7 Jun 2004 12:07:08 +0000 (12:07 +0000)]
r1066: fix compiler warning

metze
(This used to be commit 6f8b51e290d44a7c4e039dc6e93c7911a0316009)

16 years agor1065: some header file cleanups
Stefan Metzmacher [Mon, 7 Jun 2004 12:06:26 +0000 (12:06 +0000)]
r1065: some header file cleanups

smb.h should end with only smb protocol specific stuff in it

metze
(This used to be commit fda8e59f3d057bf849598f96f78f50f62d8514fe)

16 years agor1064: Remove the unused userdom_struct from the user_context struct
Andrew Bartlett [Mon, 7 Jun 2004 09:16:36 +0000 (09:16 +0000)]
r1064: Remove the unused userdom_struct from the user_context struct

Andrew Bartlett
(This used to be commit e975f63a2d5adadfba8d5e53c4817286e08b7e1d)

16 years agor1063: userdom_struct dies!
Andrew Bartlett [Mon, 7 Jun 2004 09:08:39 +0000 (09:08 +0000)]
r1063: userdom_struct dies!

(Cleanup unused header definitions)

Andrew Bartlett
(This used to be commit 5941873f558c2af6ab5ef64e468acc8fab96ac01)

16 years agor1062: fix typo, found by valgrind
Stefan Metzmacher [Mon, 7 Jun 2004 09:01:40 +0000 (09:01 +0000)]
r1062: fix typo, found by valgrind

metze
(This used to be commit f65cba9047c6a206e5aaade15b157e07fe4c8bd2)

16 years agor1061: The start of the SamLogon call for the NETLOGON pipe.
Andrew Bartlett [Mon, 7 Jun 2004 08:54:49 +0000 (08:54 +0000)]
r1061: The start of the SamLogon call for the NETLOGON pipe.

Changes:

- Check for a valid 'pipe_state' in netr_ServerAuthenticate3 before
  we dereference it

- removes the expansionroom[7] in the netr_SamInfo* structs to 7
individual elements.
- renames netr_SamInfo -> netr_SamInfo2
          netr_SamInfo2 -> netr_SamInfo3
  - Having the thing we always called an 'info3' being 'netr_SamInfo2'
    was just too confusing.

- Expand and fill in extra details about users from the SAM, into
  the server_info, for processing into the SamLogon reply.

- Add a dum_sid_dup() function to duplicate a struct dom_sid

The SamLogon code currently does not return supplementary groups, and is
only tested with Samba4 smbtorture.

Andrew Bartlett
(This used to be commit 6c92563b7961f15fc74b02601e105d5e1d04f04d)

16 years agor1060: check for an invalid session key in samr_set_password()
Andrew Tridgell [Mon, 7 Jun 2004 08:50:21 +0000 (08:50 +0000)]
r1060: check for an invalid session key in samr_set_password()
(This used to be commit 5a90187c2cb7521cb7931355e5cf2f11d55a4ad0)

16 years agor1059: add dcesrv_crypto_schannel_session_info() dummy function.
Stefan Metzmacher [Mon, 7 Jun 2004 07:07:27 +0000 (07:07 +0000)]
r1059: add dcesrv_crypto_schannel_session_info() dummy function.

every backend must implement all functions!

metze
(This used to be commit d62c0661f9234418478873dfc9ba244bdf5c36c0)

16 years agor1058: The start of work on the SamLogon call for NETLOGON.
Andrew Bartlett [Mon, 7 Jun 2004 03:46:32 +0000 (03:46 +0000)]
r1058: The start of work on the SamLogon call for NETLOGON.

This starts to store information about the user in the server_info
struct - like the account name, the full name etc.

Also, continue to make the names of the structure elements in the
logon reply more consistant with those in the SAMR pipe.

Andrew Bartlett
(This used to be commit 3ccd96bd945e0fd95e42c69ad8ff07055af2e62b)

16 years agor1057: added rpc packet logging for packets that generate rpc faults. This
Andrew Tridgell [Mon, 7 Jun 2004 03:13:38 +0000 (03:13 +0000)]
r1057: added rpc packet logging for packets that generate rpc faults. This
makes it much easier to develop the IDL for new requests, especially
for sealed pipes, where ethereal cannot easily extract the data.
(This used to be commit 0cde043592d2d2439cf0cd8bf113545e78be5dfd)

16 years agor1056: fixed a comment on handling of the initial challenge in the ntlmssp rpc server...
Andrew Tridgell [Mon, 7 Jun 2004 03:12:11 +0000 (03:12 +0000)]
r1056: fixed a comment on handling of the initial challenge in the ntlmssp rpc server backend
(This used to be commit 536aa86aa92e3cf9fb99d5939cdceff637c72668)

16 years agor1055: Standalone build fixes for ldb:
Tim Potter [Mon, 7 Jun 2004 01:59:23 +0000 (01:59 +0000)]
r1055: Standalone build fixes for ldb:

  - Various Makefile fixes

  - #include <stdint.h>

ldb still needs a proper build system though.  (-:
(This used to be commit 52e4fe8ce9142c4002263686c8043d94b37d7a9c)

16 years agor1054: Build extra binaries in bin directory like ldb does.
Tim Potter [Mon, 7 Jun 2004 01:53:55 +0000 (01:53 +0000)]
r1054: Build extra binaries in bin directory like ldb does.
(This used to be commit 6c15d5f31bdb2559656c96ae7f01f99d1ab9cb36)

16 years agor1053: Make tdb build standalone:
Tim Potter [Mon, 7 Jun 2004 01:51:04 +0000 (01:51 +0000)]
r1053: Make tdb build standalone:

  - #include <stdint.h>

  - uint_t isn't a valid type, change back to unsigned int
(This used to be commit f690325565d2393bba3cb9f6e7cdf3753cbd4423)

16 years agor1052: Remove autogenerated file.
Tim Potter [Mon, 7 Jun 2004 01:40:30 +0000 (01:40 +0000)]
r1052: Remove autogenerated file.
(This used to be commit 108efcc002c2eccfd1da30fff5c11aa67af09f9e)

16 years agor1048: - moved the schannel definitions into a separate schannel.idl
Andrew Tridgell [Sun, 6 Jun 2004 12:59:14 +0000 (12:59 +0000)]
r1048: - moved the schannel definitions into a separate schannel.idl

- added server side support for schannel type 23. This allows WinXP to establish a schannel connection
  to Samba4 as an ADS DC

- added client side support for schannel type 23, but disabled it as currently the client
  code has now way of getting the fully qualified domain name (which is needed)

- report dcerpc faults in the server code in the log
(This used to be commit 55e0b014fe14ca8811b55887208a1c3147ddb0d2)

16 years agor1047: Now samr eparser compiles, links and doesn't crash ethereal.
Tim Potter [Sun, 6 Jun 2004 11:18:38 +0000 (11:18 +0000)]
r1047: Now samr eparser compiles, links and doesn't crash ethereal.
(This used to be commit f18dc9eb887034171dcf28a1f309a69e9088604e)

16 years agor1046: initialise a structure element caught by valgrind
Andrew Tridgell [Sun, 6 Jun 2004 10:49:26 +0000 (10:49 +0000)]
r1046: initialise a structure element caught by valgrind
(This used to be commit 4daab1eaec633d97974d7d02f5c1a9e908392a7a)

16 years agor1045: Wow - we actually compile (but not link) the autogenerated parser from
Tim Potter [Sun, 6 Jun 2004 10:25:54 +0000 (10:25 +0000)]
r1045: Wow - we actually compile (but not link) the autogenerated parser from
samr.  The array handling is a bit of a mess though.
(This used to be commit 7ff7737832e0e5877ce8bcf329a123a2bce05370)

16 years agor1044: don't use sub_get_remote_machine()
Andrew Tridgell [Sun, 6 Jun 2004 08:30:54 +0000 (08:30 +0000)]
r1044: don't use sub_get_remote_machine()
(This used to be commit be75cdc1bf5558cb7da50b15bf1fd629a0c44dc2)

16 years agor1043: allocate signature from the right mem_ctx. Samba4 now passes the schannel...
Andrew Tridgell [Sun, 6 Jun 2004 08:28:51 +0000 (08:28 +0000)]
r1043: allocate signature from the right mem_ctx. Samba4 now passes the schannel torture test.
(This used to be commit 95599e3ef79bf5cafb556121c99ffc5c3a8f3314)

16 years agor1042: added testing of 128 bit schannel session keys
Andrew Tridgell [Sun, 6 Jun 2004 07:58:16 +0000 (07:58 +0000)]
r1042: added testing of 128 bit schannel session keys
(This used to be commit 96fc2b6f1e7372cc3646bd52172187b8a689c15a)

16 years agor1041: - pulled the domain join code out of the netlogon test and made it a separate...
Andrew Tridgell [Sun, 6 Jun 2004 07:14:10 +0000 (07:14 +0000)]
r1041: - pulled the domain join code out of the netlogon test and made it a separate utility function, to allow
  multiple torture tests to temporarily join a domain

- fixed a session key size problem

- added a schannel test suite

- allow schannel to work with ncacn_ip_tcp
(This used to be commit 36f05e4d575099fcb957b8a55781c38dcd2e1177)

16 years agor1040: make sure main() doesn't get auto-prototyped
Andrew Tridgell [Sun, 6 Jun 2004 07:10:58 +0000 (07:10 +0000)]
r1040: make sure main() doesn't get auto-prototyped
(This used to be commit 7c2279e4bc631d88e402ac82c6c17fb811785394)

16 years agor1039: Remove description of unexisting option.
Jelmer Vernooij [Sat, 5 Jun 2004 23:25:58 +0000 (23:25 +0000)]
r1039: Remove description of unexisting option.
(This used to be commit c085b1f94e42f6fc11e72344652019dde5036e60)

16 years agor1038: Check whether a module actually exists before attempting to load it...
Jelmer Vernooij [Sat, 5 Jun 2004 20:53:18 +0000 (20:53 +0000)]
r1038: Check whether a module actually exists before attempting to load it...
(This used to be commit c8e3fd75e594c8fc841337234e99be288180822f)

16 years agor1037: Always export all symbols
Jelmer Vernooij [Sat, 5 Jun 2004 20:33:11 +0000 (20:33 +0000)]
r1037: Always export all symbols
(This used to be commit 0209dce1eb9c62c0e454906d9ba015d8c5f5abf6)

16 years agor1036: Get module initialisation function correct when building shared
Jelmer Vernooij [Sat, 5 Jun 2004 19:46:27 +0000 (19:46 +0000)]
r1036: Get module initialisation function correct when building shared
(This used to be commit 8238acef47b754f91645c51326451c7ca153d992)

16 years agor1035: Support shared modules again
Jelmer Vernooij [Sat, 5 Jun 2004 19:30:13 +0000 (19:30 +0000)]
r1035: Support shared modules again
(This used to be commit 7949dc25ab05f7d5ad6217a6304e1f50b8b5dc41)

16 years agor1034: Couple of small (popt) fixes
Jelmer Vernooij [Sat, 5 Jun 2004 19:24:48 +0000 (19:24 +0000)]
r1034: Couple of small (popt) fixes
(This used to be commit 6fa0baa1c33b487f5f693483dd9b2664a0093b12)

16 years agor1033: Include new manpages
Jelmer Vernooij [Sat, 5 Jun 2004 19:06:43 +0000 (19:06 +0000)]
r1033: Include new manpages
(This used to be commit 17bf1b591ea21b487c6723f7f03a1f8b9b613097)

16 years agor1032: Fix RPC backend segfault
Jelmer Vernooij [Sat, 5 Jun 2004 18:45:27 +0000 (18:45 +0000)]
r1032: Fix RPC backend segfault
(This used to be commit db902bff3c5eb54d6b1035d009948ff316cffa94)

16 years agor1031: Move more code dealing with passwords to struct samr_Password.
Andrew Bartlett [Sat, 5 Jun 2004 14:04:45 +0000 (14:04 +0000)]
r1031: Move more code dealing with passwords to struct samr_Password.

Andrew Bartlett
(This used to be commit 88222b5da9a005e48477d2bfd98a488e4442b5f6)

16 years agor1030: added server side schannel support
Andrew Tridgell [Sat, 5 Jun 2004 05:01:38 +0000 (05:01 +0000)]
r1030: added server side schannel support
(This used to be commit 2ac79dfba0e64056a680f21d7dd0c007f79d4a70)

16 years agor1029: cope wiith samdb_result_passwords() returning a null machine password
Andrew Tridgell [Sat, 5 Jun 2004 04:51:24 +0000 (04:51 +0000)]
r1029: cope wiith samdb_result_passwords() returning a null machine password
(This used to be commit ee6c17f3735381568d38e6c2df80bec687d00fbb)

16 years agor1028: More consistancy fixes, which should also fix the build.
Andrew Bartlett [Sat, 5 Jun 2004 04:32:50 +0000 (04:32 +0000)]
r1028: More consistancy fixes, which should also fix the build.

Andrew Bartlett
(This used to be commit 0d2ae66d3a82134d86084f63c05214e03dfcb48b)

16 years agor1027: More rename:
Andrew Bartlett [Sat, 5 Jun 2004 03:43:00 +0000 (03:43 +0000)]
r1027: More rename:

pwd -> password

(should fix the build).

Andrew Bartlett
(This used to be commit f9280f956eef19ad1a39e120cb3ed0e3982fe7d5)

16 years agor1026: Spelling.
Tim Potter [Sat, 5 Jun 2004 03:37:27 +0000 (03:37 +0000)]
r1026: Spelling.
(This used to be commit b7fe73613acf5423b77fd91c56849351bf386960)

16 years agor1025: Rename (across the samr and netlogon pipes, so far)
Andrew Bartlett [Sat, 5 Jun 2004 03:22:10 +0000 (03:22 +0000)]
r1025: Rename (across the samr and netlogon pipes, so far)

pwd -> password
passwd -> password

username -> account_name

Also work on consistant structure feild names between these two pipes,
and fix up some callers to use samr_Password for the netlogon
credential code.

Andrew Bartlett
(This used to be commit 4e35418c2776f7b79be5b358ffd077754685d1ac)

16 years agor1024: Use samr_Password for the machine password here - this ensures we can
Andrew Bartlett [Sat, 5 Jun 2004 03:14:59 +0000 (03:14 +0000)]
r1024: Use samr_Password for the machine password here - this ensures we can
never pass in something of the wrong length.

Andrew Bartlett
(This used to be commit d6999ea9c07d8652b0d63147e7294bc35e7063fe)

16 years agor1023: Prepare the auth subsystem interfaces for netlogon SamLogon to use.
Andrew Bartlett [Sat, 5 Jun 2004 03:09:38 +0000 (03:09 +0000)]
r1023: Prepare the auth subsystem interfaces for netlogon SamLogon to use.

Andrew Bartlett
(This used to be commit b5fa2baaa9e110aa93107b13744e1fc5a64adbb5)

16 years agor1022: add the session_info() call to the dcerpc server auth backends
Stefan Metzmacher [Sat, 5 Jun 2004 02:27:30 +0000 (02:27 +0000)]
r1022: add the session_info() call to the dcerpc server auth backends

metze
(This used to be commit d1ab26b907f1eb2be31fe6946ffa5b8255fc6ac9)

16 years agor1021: Because auth_serversupplied_info is not reference counted, this may
Andrew Bartlett [Sat, 5 Jun 2004 02:00:02 +0000 (02:00 +0000)]
r1021: Because auth_serversupplied_info is not reference counted, this may
only be called once per authentication.

Andrew Bartlett
(This used to be commit 9a5de8de952a4e5c3eadccf42d034fa7cfd55171)

16 years agor1020: Add an (untested, until the other end is hooked in) method for
Andrew Bartlett [Sat, 5 Jun 2004 01:54:16 +0000 (01:54 +0000)]
r1020: Add an (untested, until the other end is hooked in) method for
obtaining the session_info from an NTLMSSP authenticated user.

Andrew Bartlett
(This used to be commit 7961f1a18d67a6a0cf2c61bcc1c3b42ed06176f7)

16 years agor1019: Push the auth subsystem away from using typedef, and over to the 'all
Andrew Bartlett [Sat, 5 Jun 2004 01:39:08 +0000 (01:39 +0000)]
r1019: Push the auth subsystem away from using typedef, and over to the 'all
goodness and light' struct ;-)

Break apart the auth subsystem's return strucutres, into the parts
that a netlogon call cares about, and the parts that are for a local
session.  This is the 'struct session_info' and it will almost
completly replace the current information stored on a vuid, but be
generic to all login methods (RPC over TCP, for example).

Andrew Bartlett
(This used to be commit d199697014d9562f9439a30b950fda798c5ef419)

16 years agor1018: fix a const and unsigned int problem in ldb
Andrew Tridgell [Sat, 5 Jun 2004 01:30:27 +0000 (01:30 +0000)]
r1018: fix a const and unsigned int problem in ldb
(This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a)

16 years agor1017: - move to a centralised way of handling talloc/ldb interaction
Andrew Tridgell [Sat, 5 Jun 2004 01:29:49 +0000 (01:29 +0000)]
r1017: - move to a centralised way of handling talloc/ldb interaction
(This used to be commit 363cb3377a0eca5bfef71a02dcdc21c5fadbaf32)

16 years agor1016: - store the schannel session key after it is established
Andrew Tridgell [Sat, 5 Jun 2004 01:29:20 +0000 (01:29 +0000)]
r1016: - store the schannel session key after it is established

- move to a centralised way of handling talloc/ldb interaction
(This used to be commit 2b9b752875ba5e03e82f40e31f26bc1f245b3825)

16 years agor1015: commit the schannel session key handling code now, so abartlet and
Andrew Tridgell [Sat, 5 Jun 2004 01:27:02 +0000 (01:27 +0000)]
r1015: commit the schannel session key handling code now, so abartlet and
metze can have a look. Not tested yet, as I'm still writing the server
side schannel code.
(This used to be commit 768cc0193a1267274f297c47a36bef4acd391e83)

16 years agor1014: change the handling of r->out to auto-zero the structure, and auto-copy
Andrew Tridgell [Sat, 5 Jun 2004 01:13:27 +0000 (01:13 +0000)]
r1014: change the handling of r->out to auto-zero the structure, and auto-copy
in,out,ref vars
(This used to be commit dffe9165164a111313d744d942645ad2df83d5f3)

16 years agor1013: WE NEED ALWAYS TO INIT THE OUTPUT VARS!
Stefan Metzmacher [Fri, 4 Jun 2004 20:36:44 +0000 (20:36 +0000)]
r1013: WE NEED ALWAYS TO INIT THE OUTPUT VARS!
in rpc server code!

add missing ZERO_STRUCT(r->out.info);
in samr_GetDomPwInfo

metze
(This used to be commit e21f8a343022424097ff53cd8d5e16ac46fff772)

16 years agor1010: make the dcesrv_crypto code a bit more generic...
Stefan Metzmacher [Fri, 4 Jun 2004 12:32:37 +0000 (12:32 +0000)]
r1010: make the dcesrv_crypto code a bit more generic...
fix type 'cyrpto' -> 'crypto'

metze
(This used to be commit 90f4777dfcb141b646063128c82f4c03bd176413)

16 years agor1009: Make all users of NT and LM passwords use the samr_Password structure.
Andrew Bartlett [Fri, 4 Jun 2004 11:58:46 +0000 (11:58 +0000)]
r1009: Make all users of NT and LM passwords use the samr_Password structure.

This includes the netlogon pipe, for the machine account password
change system.

Andrew Bartlett
(This used to be commit 49d545a82057ee8b60d50aa55e908efe59875150)

16 years agor1006: print out the SVN revision by configure,
Stefan Metzmacher [Fri, 4 Jun 2004 11:25:45 +0000 (11:25 +0000)]
r1006: print out the SVN revision by configure,
so that the build farm can use it

metze
(This used to be commit 20f848aeef19c7694cc5435287ec9235419741fc)

16 years agor1005: there was one NTLMSSP_STATE left in:-(
Stefan Metzmacher [Fri, 4 Jun 2004 09:52:35 +0000 (09:52 +0000)]
r1005: there was one NTLMSSP_STATE left in:-(
...fix the build

metze
(This used to be commit 49118189444e020b4d3159b6edbc6f7559dbb1a6)

16 years agor1004: continue tridge's work on dcerpc server auth/crypto code
Stefan Metzmacher [Fri, 4 Jun 2004 09:46:46 +0000 (09:46 +0000)]
r1004: continue tridge's work on dcerpc server auth/crypto code
I made it much more generic, and we should be able to add a
module interface to this code, so that other DCERPC_AUTH types can be added
via modules...

metze
(This used to be commit d09abeb686c43c62322205689273d1b417113004)

16 years agor1003: Removed e_ndr stuff - too verbose.
Tim Potter [Fri, 4 Jun 2004 08:00:51 +0000 (08:00 +0000)]
r1003: Removed e_ndr stuff - too verbose.

Merged across populating %needed with hf index members for functions
from old version of eparser.
(This used to be commit fc3c5d6fabf397106520ed25a564229ee4853521)

16 years agor1002: Add helper files for eparser output.
Tim Potter [Fri, 4 Jun 2004 07:59:54 +0000 (07:59 +0000)]
r1002: Add helper files for eparser output.
(This used to be commit 595b6e0f2c9832b3e4a8eaa24d64f32d6a693ff3)

16 years agor1001: in samba4 we don't(shouldn't) use typedef's anymore...
Stefan Metzmacher [Fri, 4 Jun 2004 07:46:24 +0000 (07:46 +0000)]
r1001: in samba4 we don't(shouldn't) use typedef's anymore...

metze
(This used to be commit ac5f6f7e511a730448012c8a709887827aea2281)

16 years agor995: - renamed many of our crypto routines to use the industry standard
Andrew Tridgell [Thu, 3 Jun 2004 23:15:16 +0000 (23:15 +0000)]
r995: - renamed many of our crypto routines to use the industry standard
  names rather than our crazy naming scheme. So DES is now called
  des_crypt() rather than smbhash()

- added the code from the solution of the ADS crypto challenge that
  allows Samba to correctly handle a 128 bit session key in all of the
  netr_ServerAuthenticateX() varients. A huge thanks to Luke Howard
  from PADL for solving this one!

- restructured the server side rpc authentication to allow for other
  than NTLMSSP sign and seal. This commit just adds the structure, the
  next commit will add schannel server side support.

- added 128 bit session key support to our client side code, and
  testing against w2k3 with smbtorture. Works well.
(This used to be commit 729b2f41c924a0b435d44a14209e6dacc2304cee)

16 years agor990: fix tdb standalone build
Stefan Metzmacher [Thu, 3 Jun 2004 15:59:26 +0000 (15:59 +0000)]
r990: fix tdb standalone build

metze
(This used to be commit 4c1c9f59ccea8b6cd7edf3bad8acb9cd8c772670)

16 years agor987: Start replacing ndr_* functions with e_ndr_* and removing stuff related
Tim Potter [Thu, 3 Jun 2004 07:33:36 +0000 (07:33 +0000)]
r987: Start replacing ndr_* functions with e_ndr_* and removing stuff related
to storing data in structure members.
(This used to be commit 60942eaa3a8a56b5823bfcb736d25c00b17fec50)

16 years agor986: Attempt #3 at eparser. This time use the 'pull' code as a base as it's
Tim Potter [Thu, 3 Jun 2004 06:58:28 +0000 (06:58 +0000)]
r986: Attempt #3 at eparser.  This time use the 'pull' code as a base as it's
closer to what ethereal does.  Also try to keep as much of the generated
structure wrt pointers/structs/alignment as possible.
(This used to be commit 8ad93f03d64befdee67a1b0a0ff9d7c3dfaac9ea)

16 years agor985: Add stub function for dumping enums to prevent perl warnings in eparser.
Tim Potter [Thu, 3 Jun 2004 00:53:09 +0000 (00:53 +0000)]
r985: Add stub function for dumping enums to prevent perl warnings in eparser.
(This used to be commit 12c7d3a464fea87c3289f2914ee9696a17ce5a81)

16 years agor976: - added -W for workgroup to locktest
Andrew Tridgell [Wed, 2 Jun 2004 08:33:29 +0000 (08:33 +0000)]
r976:  - added -W for workgroup to locktest

 - retry connections a few times when reconnecting
(This used to be commit d0d0734845e37a2639ade2545bccef1615e17d63)

16 years agor975: slight improvemet to nt_errstr(), still needs to be fixed properly
Andrew Tridgell [Wed, 2 Jun 2004 08:31:47 +0000 (08:31 +0000)]
r975: slight improvemet to nt_errstr(), still needs to be fixed properly
(getting rid of the static buffer)
(This used to be commit 86a6236c2ad14fe94f5d7c488bfdbfb329d2a0bb)

16 years agor970: - remove unused wchar_t check
Stefan Metzmacher [Tue, 1 Jun 2004 16:23:29 +0000 (16:23 +0000)]
r970: - remove unused wchar_t check
- move immediate structures check to the compiler checks

metze
(This used to be commit e2a322aa116de9977f6438f9eb6d2af42799ab83)

16 years agor969: remove some unused checks
Stefan Metzmacher [Tue, 1 Jun 2004 16:17:51 +0000 (16:17 +0000)]
r969: remove some unused checks

metze
(This used to be commit 5357700fc526663eeec27b3bfd28dda13430e7e0)

16 years agor968: use sinlcude() and no function, that's more portable between
Stefan Metzmacher [Tue, 1 Jun 2004 15:56:22 +0000 (15:56 +0000)]
r968: use sinlcude() and no function, that's more portable between
autoconf versions

metze
(This used to be commit 9fa83ca022f2ca2e9e5d3d738beefcf9f90cfcff)

16 years agor967: move some configure checks to seperate files
Stefan Metzmacher [Tue, 1 Jun 2004 15:13:27 +0000 (15:13 +0000)]
r967: move some configure checks to seperate files

metze
(This used to be commit 2d109074e8be712a6eb0cfc76439176e3dcdee3a)

16 years agor963: Tridge, according to ethereal this is an 'Acct Ctrl' field. My tests also
Volker Lendecke [Tue, 1 Jun 2004 14:36:43 +0000 (14:36 +0000)]
r963: Tridge, according to ethereal this is an 'Acct Ctrl' field. My tests also
indicate this although I could not find any consistent pattern.

I found this as 'net rpc group list local' in Samba3 sets this to 250 and only
gets a fixed, but incomplete list of groups out of W2k3.

I tried to correlate the results I got from w2k3 with the LDAP contents of the
corresponding entries, but I could not find anything. Ethereal only decodes
the lower byte, but to get all it seems necessary to have 0xffff here.

If you have time, could you might want to spend some of it decoding the bits
for SAMR completeness....

Volker
(This used to be commit 74e59c45603a9f897a24e37fc7626cf8ffc81403)

16 years agor962: convert 'unsigned' and 'unsigned int' to uint_t
Stefan Metzmacher [Tue, 1 Jun 2004 10:12:52 +0000 (10:12 +0000)]
r962: convert 'unsigned' and 'unsigned int' to uint_t

metze
(This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)

16 years agor961: convert 'uchar' to 'uint8_t'
Stefan Metzmacher [Tue, 1 Jun 2004 08:30:34 +0000 (08:30 +0000)]
r961: convert 'uchar' to 'uint8_t'

metze
(This used to be commit 9f914e4af99e18b469d4cf9d8b1514a2bd28ddec)

16 years agor960: convert 'unsigned int' to uint_t in the most places
Stefan Metzmacher [Tue, 1 Jun 2004 08:12:45 +0000 (08:12 +0000)]
r960: convert 'unsigned int' to uint_t in the most places

metze
(This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)

16 years agor959: - a static WERROR function should return a WERROR:-)
Stefan Metzmacher [Tue, 1 Jun 2004 07:23:51 +0000 (07:23 +0000)]
r959: - a static WERROR function should return a WERROR:-)

- some minor format fixes

metze
(This used to be commit 72d9c70fdd21101744f6fad230c75b6a13105696)

16 years agor956: More debian updates:
Jelmer Vernooij [Mon, 31 May 2004 18:26:53 +0000 (18:26 +0000)]
r956: More debian updates:
 - add 'pidl' package
 - include manpages
(This used to be commit f80d5dca12790a39cee88bae986100b2ad67b4b5)

16 years agor955: Update debian package rules... builds now
Jelmer Vernooij [Mon, 31 May 2004 17:14:27 +0000 (17:14 +0000)]
r955: Update debian package rules... builds now
(This used to be commit 3df8ff6cf111c6601554bffb411506bd43f726c7)

16 years agor954: Start working on typedef parsing.
Tim Potter [Mon, 31 May 2004 03:38:46 +0000 (03:38 +0000)]
r954: Start working on typedef parsing.
(This used to be commit 877f7c32a89218fb59adc48bd2c2f331b9600d12)

16 years agor953: Remove unused Pull and Print parse functions. Remove Push from
Tim Potter [Mon, 31 May 2004 03:27:28 +0000 (03:27 +0000)]
r953: Remove unused Pull and Print parse functions.  Remove Push from
remaining parse function names.

Add some debug comments in parser output to aid in debugging.
(This used to be commit 8225a3245a2b399ea4a9d8515e299ae5f10dff8c)

16 years agor952: fixed schannel from my last commit
Andrew Tridgell [Sun, 30 May 2004 13:44:40 +0000 (13:44 +0000)]
r952: fixed schannel from my last commit
(This used to be commit 05b69d9fff0922e2864a336f203bf2afc932d1b9)

16 years agor951: from w2k3 behaviour, the netlogon server is supposed to give back the negotiate...
Andrew Tridgell [Sun, 30 May 2004 13:27:14 +0000 (13:27 +0000)]
r951: from w2k3 behaviour, the netlogon server is supposed to give back the negotiate flags it can support.
(This used to be commit 7ad56fc4db37009dc2dba376724fdfb650f65611)

16 years agor950: - added netr_ServerAuthenticate3(). This is used by WinXP clients who try to...
Andrew Tridgell [Sun, 30 May 2004 13:15:15 +0000 (13:15 +0000)]
r950: - added netr_ServerAuthenticate3(). This is used by WinXP clients who try to login to Samba4, as
  WinXP sees us as an ADS server.

Unfortunately WinXP also uses a set of negotiate_flags that we don't
support yet. Some crypto work needed.
(This used to be commit 2d740b65706fb5b4ebc138587472a885d680517f)

16 years agor948: Tridge suggested that the best way to write the ethereal parser is to
Tim Potter [Sun, 30 May 2004 12:02:57 +0000 (12:02 +0000)]
r948: Tridge suggested that the best way to write the ethereal parser is to
base it on the generator for the ndr pull/push code rather than trying
to get all the alignment and other junk sorted out by hand.

This commit (nearly) gets eparser to the same state it previously was
but based on parser.pm.  We correctly parse simple types, strings and
sids.
(This used to be commit 6739cd5fdd353c575626cbfbc6339a8a6908daf7)

16 years agor946: Updated attribute only oplock tester to cover more cases.
Jeremy Allison [Sun, 30 May 2004 08:12:17 +0000 (08:12 +0000)]
r946: Updated attribute only oplock tester to cover more cases.
Jeremy.
(This used to be commit 6c9d32173b26353e8ae00f7f6b666290651883e6)

16 years agor943: change samba4 to use 'uint8_t' instead of 'unsigned char'
Stefan Metzmacher [Sat, 29 May 2004 08:11:46 +0000 (08:11 +0000)]
r943: change samba4 to use 'uint8_t' instead of 'unsigned char'

metze
(This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)

16 years agor937: - added a simple QuerySecurity implementation in samr server
Andrew Tridgell [Fri, 28 May 2004 13:23:30 +0000 (13:23 +0000)]
r937:  - added a simple QuerySecurity implementation in samr server

 - moved some sec desc defines into misc.idl

 - fixed pw_len field in UserInfo26

 - made some pipes available on TCP

 - added netr_DsrEnumerateDomainTrusts() to netlogon

 - added templates for remaining netlogon IDL calls (from ethereal)

 - added a unistr_noterm vs unistr error detector in ndr basic decoder

 - added torture test for netr_DsrEnumerateDomainTrusts()
(This used to be commit ae5a5113fb83640dcb9ae4642c1b9eaf28487956)

16 years agor935: remove unused variable
Andrew Tridgell [Fri, 28 May 2004 03:11:35 +0000 (03:11 +0000)]
r935: remove unused variable
(This used to be commit a8056e329484256ffb51e823296b87979ef9221f)

16 years agor934: on ascii strings STR_TERMINATE_ASCII should trigger STR_TERMINATE behaviour
Andrew Tridgell [Fri, 28 May 2004 03:11:14 +0000 (03:11 +0000)]
r934: on ascii strings STR_TERMINATE_ASCII should trigger STR_TERMINATE behaviour
(This used to be commit b7935c96742a3c09ee4bf69f708b19095f497be1)

16 years agor929: Remove more unused code from util_sid.c (the old-style sid code is
Andrew Bartlett [Thu, 27 May 2004 23:35:02 +0000 (23:35 +0000)]
r929: Remove more unused code from util_sid.c (the old-style sid code is
almost gone).
(This used to be commit 82d68e8a4472906f2a2036c13a0301055740641a)

16 years agor924: got rid of the global well-known SIDs, instead using const defines in misc.idl
Andrew Tridgell [Thu, 27 May 2004 13:21:35 +0000 (13:21 +0000)]
r924: got rid of the global well-known SIDs, instead using const defines in misc.idl
(This used to be commit ce7920a5fac0dbccb01402129c341b410a032e60)

16 years agor920: a placeholder lsads.idl file (lack of this is why the build farm is unhappy...
Andrew Tridgell [Thu, 27 May 2004 06:36:50 +0000 (06:36 +0000)]
r920: a placeholder lsads.idl file (lack of this is why the build farm is unhappy for samba4)
(This used to be commit 35dfa3e07b2e4d200d9f6ab1aea27a6471d5e546)