1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/include
Andrew Bartlett 2eb3d68062 r6028: A MAJOR update to intergrate the new credentails system fully with
GENSEC, and to pull SCHANNEL into GENSEC, by making it less 'special'.

GENSEC now no longer has it's own handling of 'set username' etc,
instead it uses cli_credentials calls.

In order to link the credentails code right though Samba, a lot of
interfaces have changed to remove 'username, domain, password'
arguments, and these have been replaced with a single 'struct
cli_credentials'.

In the session setup code, a new parameter 'workgroup' contains the
client/server current workgroup, which seems unrelated to the
authentication exchange (it was being filled in from the auth info).

This allows in particular kerberos to only call back for passwords
when it actually needs to perform the kinit.

The kerberos code has been modified not to use the SPNEGO provided
'principal name' (in the mechListMIC), but to instead use the name the
host was connected to as.  This better matches Microsoft behaviour,
is more secure and allows better use of standard kerberos functions.

To achieve this, I made changes to our socket code so that the
hostname (before name resolution) is now recorded on the socket.

In schannel, most of the code from librpc/rpc/dcerpc_schannel.c is now
in libcli/auth/schannel.c, and it looks much more like a standard
GENSEC module.  The actual sign/seal code moved to
libcli/auth/schannel_sign.c in a previous commit.

The schannel credentails structure is now merged with the rest of the
credentails, as many of the values (username, workstation, domain)
where already present there.  This makes handling this in a generic
manner much easier, as there is no longer a custom entry-point.

The auth_domain module continues to be developed, but is now just as
functional as auth_winbind.  The changes here are consequential to the
schannel changes.

The only removed function at this point is the RPC-LOGIN test
(simulating the load of a WinXP login), which needs much more work to
clean it up (it contains copies of too much code from all over the
torture suite, and I havn't been able to penetrate its 'structure').

Andrew Bartlett
(This used to be commit 2301a4b38a)
2007-10-10 13:11:15 -05:00
..
system r4900: build fix for IRIX 6.5 2007-10-10 13:09:05 -05:00
ads.h r5309: removed ads.h from includes.h 2007-10-10 13:09:40 -05:00
asn_1.h r4070: move some defines from asn_1.h to the places they belong to 2007-10-10 13:06:22 -05:00
byteorder.h r2961: fixed a silly typo 2007-10-10 12:59:52 -05:00
charset.h r3494: got rid of include/rewrite.h, and split out the dynconfig.h header 2007-10-10 13:05:22 -05:00
cli_context.h r4073: - added a set of lsa helper routines to make lsa lookups that are 2007-10-10 13:06:23 -05:00
clilist.h r4013: got rid of a bunch of unused or unmaintained code 2007-10-10 13:06:15 -05:00
clitar.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
credentials.h r6024: Some of the ordering constraints on the popt callbacks were getting 2007-10-10 13:11:15 -05:00
db_wrap.h r5585: LDB interfaces change: 2007-10-10 13:10:55 -05:00
debug.h r884: convert samba4 to use [u]int32_t instead of [u]int32 2007-10-10 12:56:15 -05:00
dlinklist.h r5285: add a generic dlist_item struct which has a void *ptr for the data 2007-10-10 13:09:36 -05:00
doserr.h r5866: Add InitShutdown IDL and torture test. 2007-10-10 13:11:05 -05:00
dynconfig.h r5298: - got rid of pstring.h from includes.h. This at least makes it a bit 2007-10-10 13:09:38 -05:00
enums.h r917: - added the start of a LSA server to samba4. 2007-10-10 12:56:19 -05:00
includes.h r5917: First step in using the new cli_credentials structure. This patch 2007-10-10 13:11:08 -05:00
interfaces.h r3443: the next stage in the include files re-organisation. 2007-10-10 13:05:11 -05:00
ioctl.h first public release of samba4 code 2003-08-13 01:53:07 +00:00
local.h r5249: don't include ';' in the default list separators for parsing 2007-10-10 13:09:34 -05:00
messages.h r3507: - added deferred replies on sharing violation in pvfs open. The 2007-10-10 13:05:23 -05:00
module.h r1292: Add const to the subsystem/module registration code. 2007-10-10 12:56:49 -05:00
mutex.h r5306: removed all the unused mutex functions from mutex.c. When (if?) we 2007-10-10 13:09:40 -05:00
nt_status.h r4607: add some usefull macros to make the code more readable 2007-10-10 13:08:32 -05:00
nterr.h r4618: - tidied up the alter_context client code a bit 2007-10-10 13:08:34 -05:00
pstring.h r5298: - got rid of pstring.h from includes.h. This at least makes it a bit 2007-10-10 13:09:38 -05:00
rap.h r5298: - got rid of pstring.h from includes.h. This at least makes it a bit 2007-10-10 13:09:38 -05:00
registry.h r5134: - fix types to always use _t types 2007-10-10 13:09:25 -05:00
request.h r4063: - change char * -> uint8_t in struct request_buffer 2007-10-10 13:06:21 -05:00
safe_string.h r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions. 2007-10-10 12:59:39 -05:00
secrets.h r5988: Fix the -P option (use machine account credentials) to use the Samba4 2007-10-10 13:11:12 -05:00
signing.h r3466: split out request.h, signing.h, and smb_server.h 2007-10-10 13:05:17 -05:00
smb_interfaces.h r6028: A MAJOR update to intergrate the new credentails system fully with 2007-10-10 13:11:15 -05:00
smb_macros.h r5308: trimmed back a lot of the old macros from smb_macros.h 2007-10-10 13:09:40 -05:00
smb.h r5038: we don't need these defines any more 2007-10-10 13:09:16 -05:00
structs.h r5828: add some idl for DsAddEntry() 2007-10-10 13:11:04 -05:00
trans2.h r5716: Add new Unix extensions defines for infolevels 2007-10-10 13:11:00 -05:00
xfile.h first public release of samba4 code 2003-08-13 01:53:07 +00:00