1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

1166 Commits

Author SHA1 Message Date
Andrew Tridgell
aadfbcee76 r1143: fixed spelling of sAMAccountName 2007-10-10 12:56:40 -05:00
Andrew Bartlett
c1019e6df6 r1142: I think this should fix the interactive logins for tridge - don't take
sizeof() a pointer...

Andrew Bartlett
2007-10-10 12:56:40 -05:00
Andrew Tridgell
705205083a 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
2007-10-10 12:56:40 -05:00
Andrew Tridgell
c854109843 r1140: added IDL and test code for validation level 6 in sam logon 2007-10-10 12:56:40 -05:00
Andrew Tridgell
4eac7340d8 r1139: added IDL and server code for netr_LogonSamLogonWithFlags() 2007-10-10 12:56:40 -05:00
Andrew Tridgell
f9c1e12594 r1138: allow for a user in no groups 2007-10-10 12:56:40 -05:00
Andrew Tridgell
fdf6e4169d r1137: - added torture test for netr_LogonGetDomainInfo() call 2007-10-10 12:56:39 -05:00
Andrew Tridgell
a35459387d 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
2007-10-10 12:56:39 -05:00
Andrew Tridgell
65c5590bd0 r1135: - allow integer function numbers in ndrdump
- dump unused data in ndrdump
2007-10-10 12:56:39 -05:00
Andrew Tridgell
17dacf494a r1134: added a TODO regarding schannel credentials 2007-10-10 12:56:39 -05:00
Andrew Tridgell
ad3324a79c 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()
2007-10-10 12:56:39 -05:00
Andrew Tridgell
f0940f1912 r1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors 2007-10-10 12:56:39 -05:00
Andrew Tridgell
ae393c2ed6 r1131: remove an error msg for failing to open unexpected.tdb 2007-10-10 12:56:39 -05:00
Andrew Tridgell
260be3fbef r1130: remove some pointless debug messages 2007-10-10 12:56:39 -05:00
Andrew Bartlett
4d23b9e039 r1129: Remove unused function.
Andrew Bartlett
2007-10-10 12:56:39 -05:00
Andrew Bartlett
5d39d7497f r1123: Make all lp_ string functions return 'const char *'.
Fix other 'const' warnings in the torture code.

Andrew Bartlett
2007-10-10 12:56:38 -05:00
Jelmer Vernooij
971941acc7 r1119: Saner keyboard shortcuts 2007-10-10 12:56:38 -05:00
Jelmer Vernooij
456f97eed0 r1118: Read-only enumeration of keys in the LDB backend works now :-) 2007-10-10 12:56:38 -05:00
Jeremy Allison
14cf961b7f r1113: Test for wildcards in chkpath.
Jeremy.
2007-10-10 12:56:38 -05:00
Tim Potter
b3bc3d2ef4 r1100: Comment out functions that we now get from other sources (misc.idl and
lsarpc.idl).

Add stub for ndr_pull_relative() function.
2007-10-10 12:56:38 -05:00
Tim Potter
19442e07d0 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.
2007-10-10 12:56:38 -05:00
Jeremy Allison
37d1fa1684 r1098: Extended raw chkpath to catch regressions.
Jeremy.
2007-10-10 12:56:38 -05:00
Jeremy Allison
5c3a2417cf r1091: Added in timing tests for deferred opens. Added extra debug info to signing
mistakes.
Jeremy.
2007-10-10 12:56:37 -05:00
Jeremy Allison
0068cb12ef 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
2007-10-10 12:56:37 -05:00
Tim Potter
5c3c3d3e72 r1083: Generate prototypes for structs and unions marked "public" in the idl.
Delete various hacks to work around not doing this before.
2007-10-10 12:56:37 -05:00
Andrew Bartlett
de97d9df22 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
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
ad3dd1789e 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
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
9e9a52692e r1077: fix segfault in schannel over ncacn_ip_tcp
metze
2007-10-10 12:56:37 -05:00
Stefan Metzmacher
798cbed5a3 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
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
1706ff88a7 r1068: make the dcerpc client side auth/crypto code much more generic
metze
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
e5d338821e r1067: fix compiler warnings
metze
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
6f8b51e290 r1066: fix compiler warning
metze
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
fda8e59f3d r1065: some header file cleanups
smb.h should end with only smb protocol specific stuff in it

metze
2007-10-10 12:56:36 -05:00
Andrew Bartlett
e975f63a2d r1064: Remove the unused userdom_struct from the user_context struct
Andrew Bartlett
2007-10-10 12:56:36 -05:00
Andrew Bartlett
5941873f55 r1063: userdom_struct dies!
(Cleanup unused header definitions)

Andrew Bartlett
2007-10-10 12:56:36 -05:00
Stefan Metzmacher
f65cba9047 r1062: fix typo, found by valgrind
metze
2007-10-10 12:56:36 -05:00
Andrew Bartlett
6c92563b79 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
2007-10-10 12:56:35 -05:00
Andrew Tridgell
5a90187c2c r1060: check for an invalid session key in samr_set_password() 2007-10-10 12:56:35 -05:00
Stefan Metzmacher
d62c0661f9 r1059: add dcesrv_crypto_schannel_session_info() dummy function.
every backend must implement all functions!

metze
2007-10-10 12:56:35 -05:00
Andrew Bartlett
3ccd96bd94 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
2007-10-10 12:56:35 -05:00
Andrew Tridgell
0cde043592 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.
2007-10-10 12:56:35 -05:00
Andrew Tridgell
536aa86aa9 r1056: fixed a comment on handling of the initial challenge in the ntlmssp rpc server backend 2007-10-10 12:56:35 -05:00
Tim Potter
52e4fe8ce9 r1055: Standalone build fixes for ldb:
- Various Makefile fixes

  - #include <stdint.h>

ldb still needs a proper build system though.  (-:
2007-10-10 12:56:35 -05:00
Tim Potter
6c15d5f31b r1054: Build extra binaries in bin directory like ldb does. 2007-10-10 12:56:35 -05:00
Tim Potter
f690325565 r1053: Make tdb build standalone:
- #include <stdint.h>

  - uint_t isn't a valid type, change back to unsigned int
2007-10-10 12:56:34 -05:00
Tim Potter
108efcc002 r1052: Remove autogenerated file. 2007-10-10 12:56:34 -05:00
Andrew Tridgell
55e0b014fe 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
2007-10-10 12:56:34 -05:00
Tim Potter
f18dc9eb88 r1047: Now samr eparser compiles, links and doesn't crash ethereal. 2007-10-10 12:56:34 -05:00
Andrew Tridgell
4daab1eaec r1046: initialise a structure element caught by valgrind 2007-10-10 12:56:34 -05:00
Tim Potter
7ff7737832 r1045: Wow - we actually compile (but not link) the autogenerated parser from
samr.  The array handling is a bit of a mess though.
2007-10-10 12:56:34 -05:00