1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00
Commit Graph

1183 Commits

Author SHA1 Message Date
Andrew Bartlett
902af49006 r1200: Add 'gensec', our generic security layer.
This layer is used for DCERPC security, as well as ntlm_auth at this
time.  It expect things like SASL and the CIFS layer to use it as
well.

The particular purpose of this layer is to introduce SPENGO, which
needs generic access to the actual implementation mechanisms.

Schannel, due to it's 'interesting' setup properties is in GENSEC, but
is only in the RPC code.

Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
5816d09c47 r1199: Make talloc_asprintf_append() work on a NULL source string as if it were
just a alloc_asprintf().

(makes it easier to use in a loop)

Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
58da78a746 r1198: Merge the Samba 3.0 ntlm_auth, including the kerberos and SPENGO parts.
I have moved the SPNEGO and Kerberos code into libcli/auth, and intend
to refactor them into the same format as NTLMSSP.

Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
57ca89eab3 r1197: Fix my build breakage, variables at the top of a block only...
Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
4f06bf4ab8 r1196: Remove unused pstring/fstring functions.
Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
b6128c2a9d r1189: Now that we use a common 'base' return structure for the SamLogon
call, avoid code duplication in the torture suite.

Andrew Bartlett
2007-10-10 12:56:44 -05:00
Tim Potter
261531ce0a r1188: Use generated pidl template for this file and return DCESRV_FAULT instead
of a bogus WERROR.
2007-10-10 12:56:44 -05:00
Andrew Bartlett
b967006954 r1187: * Remove testing hack (actually check signatures on NTLM2).
* Remove unreached counter increment

* Print the correct NTLMSSP key.
2007-10-10 12:56:44 -05:00
Andrew Bartlett
da5f311732 r1186: Clarify why this is a 'bogus' negitive test. If we pass it, we may
still be broken.

Andrew Bartlett
2007-10-10 12:56:43 -05:00
Tim Potter
ed9c4d7d70 r1185: Hey look an endpoint for the spoolss pipe!
Doesn't do much at the moment except compile.
2007-10-10 12:56:43 -05:00
Tim Potter
bf8e255d2e r1174: Remove $var_prefix parameter for all functions. We don't need it for
ethereal.
2007-10-10 12:56:43 -05:00
Andrew Bartlett
e12ad47c69 r1173: A quick little test to show that we cannot bind twice to a single endpoint.
Andrew Bartlett
2007-10-10 12:56:43 -05:00
Andrew Bartlett
84f86b83f8 r1170: Remove bogus part of previous commit - session keys, even in NTLMSSP
are variable length.

Remove extra casts

Andrew Bartlett
2007-10-10 12:56:43 -05:00
Andrew Bartlett
079c265485 r1169: Some more updates to the NTLMSSP NTLM2 code:
- implement key weakening
 - don't create large 'hashes' when we only want a key (signing subkeys)
 - make more useful debugs.

NTLM2 is still off by default, till I figure out how to do NTLM2 signing.

Andrew Bartlett
2007-10-10 12:56:43 -05:00
Andrew Tridgell
9b397356ae r1168: fixed a little-endian/big-endian mixup in the rpc server code 2007-10-10 12:56:43 -05:00
Tim Potter
53313775a8 r1167: Misc cleanups:
- shorten COL_INFO message
  - make parser error messages prettier
  - separate variable declarations from function body with newline
  - only generate variables for requests/responses when they have the
    in/out property
2007-10-10 12:56:43 -05:00
Tim Potter
904de85c88 r1166: Convert (commented out) ndr_pull_error() calls into proto_tree_add_text()
calls so egregious parse errors are displayed in the ethereal gui.
2007-10-10 12:56:43 -05:00
Andrew Tridgell
0e557fe857 r1165: fixed handling of SMBtrans replies that should return STATUS_BUFFER_OVERFLOW when more data is present. 2007-10-10 12:56:42 -05:00
Tim Potter
d3183d781e r1164: Whoops - remove debugging printfs and Data::Dumper reference.
Give unions their own subtree as well as structures.
2007-10-10 12:56:42 -05:00
Andrew Bartlett
4a445fce7f r1163: Add const.
Andrew Bartlett
2007-10-10 12:56:42 -05:00
Tim Potter
1d29a4fd87 r1162: Give each struct it's own subtree in the ethereal gui. Much more
readable!
2007-10-10 12:56:42 -05:00
Andrew Bartlett
81678f8dc6 r1161: Include a few more self-check NTLMSSP examples.
Andrew Bartlett
2007-10-10 12:56:42 -05:00
Tim Potter
a6c95fbd6f r1160: Some minor cosmetic fixes to make the generated code look nicer. 2007-10-10 12:56:41 -05:00
Tim Potter
80bc9c9c59 r1159: Implement functions to dissect 64-bit values (nttime, hyper_t, int64,
uint64).

Rename parameter e_ndr to ndr.
2007-10-10 12:56:41 -05:00
Tim Potter
80f1445507 r1158: Fix bug in dissection of array count. Arrays mostly work now with the
exception of a union related bug.
2007-10-10 12:56:41 -05:00
Tim Potter
c194f2cf07 r1153: We can now dissect security descriptors. 2007-10-10 12:56:41 -05:00
Tim Potter
f29fb9a3fc r1152: Checkin of workarea. The parser can now dissect a big chunk of the samr
operations.  Security descriptors and unions are still left to do.
2007-10-10 12:56:41 -05:00
Andrew Tridgell
9135f14540 r1151: fixed fill-in of force_password_change field in auth_sam 2007-10-10 12:56:41 -05:00
Andrew Tridgell
db9ea488b0 r1150: - fixed interactive sam logon in the rpc server
- added a torture test for interactive login in smbtorture

These changes allow winxp to perform an interactive login (a login on
the winxp console) against a Samba4 DC. Our netlogon server code is
still filling in many of the fields incorrectly, but it fills in
enough that winxp can login.
2007-10-10 12:56:41 -05:00
Andrew Tridgell
60838a0f94 r1149: fixed the handling of NDR_SET_VALUES in the debug print of rpc structures in the generated rpc server code 2007-10-10 12:56:41 -05:00
Andrew Tridgell
0a67b9c324 r1148: fixed a minor formatting error in generated code 2007-10-10 12:56:41 -05:00
Jelmer Vernooij
3af8419fa4 r1147: Support enumerating values 2007-10-10 12:56:41 -05:00
Andrew Tridgell
c1aeaf97b3 r1146: initially zero server info 2007-10-10 12:56:40 -05:00
Andrew Tridgell
cb3d3b5e51 r1145: added server support for logon level 5 in sam logon 2007-10-10 12:56:40 -05:00
Andrew Tridgell
eb13fc6c3b r1144: added logon level 5 for sam logon 2007-10-10 12:56:40 -05:00
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