1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1268 Commits

Author SHA1 Message Date
Andrew Tridgell
ef34f4de25 r1145: added server support for logon level 5 in sam logon
(This used to be commit cb3d3b5e51dc9d52854c922b0c50686284ac8f1b)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
8cd82a6c85 r1144: added logon level 5 for sam logon
(This used to be commit eb13fc6c3b482d49a2cfaf13d290f1e54a2f1865)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
112fac1cde r1143: fixed spelling of sAMAccountName
(This used to be commit aadfbcee76a9181a540620f3b0827a3268b63a0e)
2007-10-10 12:56:40 -05:00
Andrew Bartlett
0387684df6 r1142: I think this should fix the interactive logins for tridge - don't take
sizeof() a pointer...

Andrew Bartlett
(This used to be commit c1019e6df6aa4fcce7dc2ccbd404a4254ab5d1fb)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
7ae1735798 r1141: - consolidated the netr_SamInfo structures using a netr_SamBaseInfo
structure (andrew, this is the type of structure consolidation I think
  you were asking about. It's possible here in NDR as it isn't in the
  top level fn code)

- added validation level 6 in sam logon

With these changes I can successfully authentication smbclient to a
winxp server, with the winxp server using a Samba4 ADS DC for account
auth
(This used to be commit 705205083a6e2430c420f44436a1d1ff8826bc73)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
19f3bfc0ac r1140: added IDL and test code for validation level 6 in sam logon
(This used to be commit c8541098436d2cd83538375889560405ecb50034)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
a384d2f1a1 r1139: added IDL and server code for netr_LogonSamLogonWithFlags()
(This used to be commit 4eac7340d8d7a109bed8fe7bb7cf663d6e7f0a56)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
c1e88ab8b2 r1138: allow for a user in no groups
(This used to be commit f9c1e12594e58b7e663ca099929eab8867b82a0c)
2007-10-10 12:56:40 -05:00
Andrew Tridgell
02781a30bf r1137: - added torture test for netr_LogonGetDomainInfo() call
(This used to be commit fdf6e4169d531c4a7d4e1b937abd3eb3af03c860)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
bccac81d87 r1136: - added IDL for netr_LogonGetDomainInfo()
- added workstation to auth_session_info in rpc servers

- added session key fetch hook in crypto backends in dcesrv

- store and fetch seed as well as a session key in schannel ldb

- when a client uses schannel to setup a netlogon pipe connection we
  also need to setup the credentials from the schannel negotiation so
  credentials chaining works

- added server side netr_LogonGetDomainInfo() call
(This used to be commit a35459387de3b6a422c5af6f658338fc7e4314b0)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
2fcf85920d r1135: - allow integer function numbers in ndrdump
- dump unused data in ndrdump
(This used to be commit 65c5590bd0cd23c65a94786846740180c7f175ba)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
791ee4a581 r1134: added a TODO regarding schannel credentials
(This used to be commit 17dacf494ac25bb6d9f6dea8cb81968ea2b84c55)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
004a9979a9 r1133: - add ndr_pull_ptr() as a separate call instead of ndr_pull_uint32()
(useful for debugging IDL)

- fixed a couple of places that auto-generate incorrect printf style arguments
  for ndr_pull_error()
(This used to be commit ad3324a79ce030df4c5ed46408e662b46588f89f)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
f0d43daac0 r1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors
(This used to be commit f0940f19129f0f2eccc3bb5130b8d2dd0b60f83f)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
4d050d4920 r1131: remove an error msg for failing to open unexpected.tdb
(This used to be commit ae393c2ed6b6039d28bb02d5e5104a6d25368ce6)
2007-10-10 12:56:39 -05:00
Andrew Tridgell
7de7dafcc4 r1130: remove some pointless debug messages
(This used to be commit 260be3fbef5a198621274cfe0c0250f292d819ca)
2007-10-10 12:56:39 -05:00
Andrew Bartlett
9f38798509 r1129: Remove unused function.
Andrew Bartlett
(This used to be commit 4d23b9e039872273f3ef433d94d24759bcb87c30)
2007-10-10 12:56:39 -05:00
Andrew Bartlett
b1268fc445 r1123: Make all lp_ string functions return 'const char *'.
Fix other 'const' warnings in the torture code.

Andrew Bartlett
(This used to be commit 5d39d7497f189da15d659b3f83b7314026040a15)
2007-10-10 12:56:38 -05:00
Jelmer Vernooij
8dcb4aa084 r1119: Saner keyboard shortcuts
(This used to be commit 971941acc7e75da89b1bdc612fd476a7f6124dcb)
2007-10-10 12:56:38 -05:00
Jelmer Vernooij
9503af8d64 r1118: Read-only enumeration of keys in the LDB backend works now :-)
(This used to be commit 456f97eed05047b20acceb50708b47209c37ca20)
2007-10-10 12:56:38 -05:00
Jeremy Allison
a8069f5778 r1113: Test for wildcards in chkpath.
Jeremy.
(This used to be commit 14cf961b7f8d273604e53ba9a889bb18cd8054d8)
2007-10-10 12:56:38 -05:00
Tim Potter
557ea1c641 r1100: Comment out functions that we now get from other sources (misc.idl and
lsarpc.idl).

Add stub for ndr_pull_relative() function.
(This used to be commit b3bc3d2ef41e2c5948a05d0c10591befdb2444a5)
2007-10-10 12:56:38 -05:00
Tim Potter
0f36c59a95 r1099: Set $module variable to name of module.
Only generate code for module registration if we could find a UUID.

Tweaks to get [relative] compiling.
(This used to be commit 19442e07d080f4965ece5eacd8724e325266ec0c)
2007-10-10 12:56:38 -05:00
Jeremy Allison
02079ccc2e r1098: Extended raw chkpath to catch regressions.
Jeremy.
(This used to be commit 37d1fa1684b4cca125ae2cf6039f8b12e7ae1b89)
2007-10-10 12:56:38 -05:00
Jeremy Allison
73c077d37b r1091: Added in timing tests for deferred opens. Added extra debug info to signing
mistakes.
Jeremy.
(This used to be commit 5c3a2417cfe1bdbdfb35d933d49f77f6696790b3)
2007-10-10 12:56:37 -05:00
Jeremy Allison
a125e49d67 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)
2007-10-10 12:56:37 -05:00
Tim Potter
eaae8b6f5f 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)
2007-10-10 12:56:37 -05:00
Andrew Bartlett
f3826432fb 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)
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
b717b40235 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)
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
fb1cc0fc0d r1077: fix segfault in schannel over ncacn_ip_tcp
metze
(This used to be commit 9e9a52692ebe9d47f1a08740ea1dcb8f46041211)
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
6e14c2cc00 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)
2007-10-10 12:56:36 -05:00
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