1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1319 Commits

Author SHA1 Message Date
Stefan Metzmacher
c0871cb0c1 r1068: make the dcerpc client side auth/crypto code much more generic
metze
(This used to be commit 1706ff88a72c6578a109c2cf24f2f009812c3892)
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
6564fd402d r1067: fix compiler warnings
metze
(This used to be commit e5d338821e590c49947a18a5d5c361122571988d)
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
f75210ff9f r1066: fix compiler warning
metze
(This used to be commit 6f8b51e290d44a7c4e039dc6e93c7911a0316009)
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
2b7cd77ee2 r1065: some header file cleanups
smb.h should end with only smb protocol specific stuff in it

metze
(This used to be commit fda8e59f3d057bf849598f96f78f50f62d8514fe)
2007-10-10 12:56:36 -05:00
Andrew Bartlett
c8252aeb0e r1064: Remove the unused userdom_struct from the user_context struct
Andrew Bartlett
(This used to be commit e975f63a2d5adadfba8d5e53c4817286e08b7e1d)
2007-10-10 12:56:36 -05:00
Andrew Bartlett
0d9e31cf16 r1063: userdom_struct dies!
(Cleanup unused header definitions)

Andrew Bartlett
(This used to be commit 5941873f558c2af6ab5ef64e468acc8fab96ac01)
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
e585df7c58 r1062: fix typo, found by valgrind
metze
(This used to be commit f65cba9047c6a206e5aaade15b157e07fe4c8bd2)
2007-10-10 12:56:36 -05:00
Andrew Bartlett
46c88d561f 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)
2007-10-10 12:56:35 -05:00
Andrew Tridgell
bd40d94a05 r1060: check for an invalid session key in samr_set_password()
(This used to be commit 5a90187c2cb7521cb7931355e5cf2f11d55a4ad0)
2007-10-10 12:56:35 -05:00
Stefan Metzmacher
6d5a47aa9b r1059: add dcesrv_crypto_schannel_session_info() dummy function.
every backend must implement all functions!

metze
(This used to be commit d62c0661f9234418478873dfc9ba244bdf5c36c0)
2007-10-10 12:56:35 -05:00
Andrew Bartlett
bcac502d44 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)
2007-10-10 12:56:35 -05:00
Andrew Tridgell
f5108651ee 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)
2007-10-10 12:56:35 -05:00
Andrew Tridgell
0cb60c618a r1056: fixed a comment on handling of the initial challenge in the ntlmssp rpc server backend
(This used to be commit 536aa86aa92e3cf9fb99d5939cdceff637c72668)
2007-10-10 12:56:35 -05:00
Tim Potter
8a01231a8b 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)
2007-10-10 12:56:35 -05:00
Tim Potter
f63cd117ae r1054: Build extra binaries in bin directory like ldb does.
(This used to be commit 6c15d5f31bdb2559656c96ae7f01f99d1ab9cb36)
2007-10-10 12:56:35 -05:00
Tim Potter
b619abb98e 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)
2007-10-10 12:56:34 -05:00
Tim Potter
cfb25947f2 r1052: Remove autogenerated file.
(This used to be commit 108efcc002c2eccfd1da30fff5c11aa67af09f9e)
2007-10-10 12:56:34 -05:00
Andrew Tridgell
42eadaf3d9 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)
2007-10-10 12:56:34 -05:00
Tim Potter
7b1e0454ef r1047: Now samr eparser compiles, links and doesn't crash ethereal.
(This used to be commit f18dc9eb887034171dcf28a1f309a69e9088604e)
2007-10-10 12:56:34 -05:00
Andrew Tridgell
ae444c03ea r1046: initialise a structure element caught by valgrind
(This used to be commit 4daab1eaec633d97974d7d02f5c1a9e908392a7a)
2007-10-10 12:56:34 -05:00
Tim Potter
b2e95101db 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)
2007-10-10 12:56:34 -05:00
Andrew Tridgell
a12e30a52e r1044: don't use sub_get_remote_machine()
(This used to be commit be75cdc1bf5558cb7da50b15bf1fd629a0c44dc2)
2007-10-10 12:56:34 -05:00
Andrew Tridgell
a38f529fd5 r1043: allocate signature from the right mem_ctx. Samba4 now passes the schannel torture test.
(This used to be commit 95599e3ef79bf5cafb556121c99ffc5c3a8f3314)
2007-10-10 12:56:34 -05:00
Andrew Tridgell
8a3d1a5fb7 r1042: added testing of 128 bit schannel session keys
(This used to be commit 96fc2b6f1e7372cc3646bd52172187b8a689c15a)
2007-10-10 12:56:33 -05:00
Andrew Tridgell
a1318baa55 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)
2007-10-10 12:56:33 -05:00
Andrew Tridgell
7ea6a0b1fc r1040: make sure main() doesn't get auto-prototyped
(This used to be commit 7c2279e4bc631d88e402ac82c6c17fb811785394)
2007-10-10 12:56:33 -05:00
Jelmer Vernooij
79b0409198 r1039: Remove description of unexisting option.
(This used to be commit c085b1f94e42f6fc11e72344652019dde5036e60)
2007-10-10 12:56:33 -05:00
Jelmer Vernooij
439a780146 r1038: Check whether a module actually exists before attempting to load it...
(This used to be commit c8e3fd75e594c8fc841337234e99be288180822f)
2007-10-10 12:56:33 -05:00
Jelmer Vernooij
7aa5a5de59 r1037: Always export all symbols
(This used to be commit 0209dce1eb9c62c0e454906d9ba015d8c5f5abf6)
2007-10-10 12:56:33 -05:00
Jelmer Vernooij
bd54b891c1 r1036: Get module initialisation function correct when building shared
(This used to be commit 8238acef47b754f91645c51326451c7ca153d992)
2007-10-10 12:56:31 -05:00
Jelmer Vernooij
39e465a096 r1035: Support shared modules again
(This used to be commit 7949dc25ab05f7d5ad6217a6304e1f50b8b5dc41)
2007-10-10 12:56:31 -05:00
Jelmer Vernooij
39965d1993 r1034: Couple of small (popt) fixes
(This used to be commit 6fa0baa1c33b487f5f693483dd9b2664a0093b12)
2007-10-10 12:56:31 -05:00
Jelmer Vernooij
fe3bcd4588 r1032: Fix RPC backend segfault
(This used to be commit db902bff3c5eb54d6b1035d009948ff316cffa94)
2007-10-10 12:56:31 -05:00
Andrew Bartlett
ed0123a62b r1031: Move more code dealing with passwords to struct samr_Password.
Andrew Bartlett
(This used to be commit 88222b5da9a005e48477d2bfd98a488e4442b5f6)
2007-10-10 12:56:31 -05:00
Andrew Tridgell
5341ad20e1 r1030: added server side schannel support
(This used to be commit 2ac79dfba0e64056a680f21d7dd0c007f79d4a70)
2007-10-10 12:56:30 -05:00
Andrew Tridgell
4c6f04d83f r1029: cope wiith samdb_result_passwords() returning a null machine password
(This used to be commit ee6c17f3735381568d38e6c2df80bec687d00fbb)
2007-10-10 12:56:30 -05:00
Andrew Bartlett
c455b0a935 r1028: More consistancy fixes, which should also fix the build.
Andrew Bartlett
(This used to be commit 0d2ae66d3a82134d86084f63c05214e03dfcb48b)
2007-10-10 12:56:30 -05:00
Andrew Bartlett
35af895350 r1027: More rename:
pwd -> password

(should fix the build).

Andrew Bartlett
(This used to be commit f9280f956eef19ad1a39e120cb3ed0e3982fe7d5)
2007-10-10 12:56:30 -05:00
Tim Potter
21aaa719b5 r1026: Spelling.
(This used to be commit b7fe73613acf5423b77fd91c56849351bf386960)
2007-10-10 12:56:30 -05:00
Andrew Bartlett
5b04ca8080 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)
2007-10-10 12:56:30 -05:00
Andrew Bartlett
ae067cdaf7 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)
2007-10-10 12:56:29 -05:00
Andrew Bartlett
306fcbd063 r1023: Prepare the auth subsystem interfaces for netlogon SamLogon to use.
Andrew Bartlett
(This used to be commit b5fa2baaa9e110aa93107b13744e1fc5a64adbb5)
2007-10-10 12:56:28 -05:00
Stefan Metzmacher
a851ab6fdb r1022: add the session_info() call to the dcerpc server auth backends
metze
(This used to be commit d1ab26b907f1eb2be31fe6946ffa5b8255fc6ac9)
2007-10-10 12:56:28 -05:00
Andrew Bartlett
42b6b71493 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)
2007-10-10 12:56:28 -05:00
Andrew Bartlett
8de7e76e78 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)
2007-10-10 12:56:28 -05:00
Andrew Bartlett
0d466258be 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)
2007-10-10 12:56:28 -05:00
Andrew Tridgell
b553acce4b r1018: fix a const and unsigned int problem in ldb
(This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a)
2007-10-10 12:56:28 -05:00
Andrew Tridgell
e06d8e94a9 r1017: - move to a centralised way of handling talloc/ldb interaction
(This used to be commit 363cb3377a0eca5bfef71a02dcdc21c5fadbaf32)
2007-10-10 12:56:28 -05:00
Andrew Tridgell
1a993b800e 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)
2007-10-10 12:56:27 -05:00
Andrew Tridgell
cd35e12c7f 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)
2007-10-10 12:56:27 -05:00