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

224 Commits

Author SHA1 Message Date
Andrew Bartlett
0101728d8e r6800: A big GENSEC update:
Finally remove the distinction between 'krb5' and 'ms_krb5'.  We now
don't do kerberos stuff twice on failure.  The solution to this is
slightly more general than perhaps was really required (as this is a
special case), but it works, and I'm happy with the cleanup I achived
in the process.  All modules have been updated to supply a
NULL-terminated list of OIDs.

In that process, SPNEGO code has been generalised, as I realised that
two of the functions should have been identical in behaviour.

Over in the actual modules, I have worked to remove the 'kinit' code
from gensec_krb5, and placed it in kerberos/kerberos_util.c.

The GSSAPI module has been extended to use this, so no longer requires
a manual kinit at the command line.  It will soon loose the
requirement for a on-disk keytab too.

The general kerberos code has also been updated to move from
error_message() to our routine which gets the Heimdal error string
(which may be much more useful) when available.

Andrew Bartlett
2007-10-10 13:16:45 -05:00
Andrew Bartlett
e8cf3d58ec r6796: Remove the gensec_gsskrb5 module, which had had all of it's special
features merged back into gensec_gssapi.

(Removed because I've made some API changes, and it isn't worth
'fixing' the rudundent code to cope with changes)

Andrew Bartlett
2007-10-10 13:16:44 -05:00
Andrew Bartlett
9153d73061 r6792: Allow a mech to fail on the first pass at the packet, and still fall
back to the other options.

Andrew Bartlett
2007-10-10 13:16:43 -05:00
Tim Potter
45a0692be1 r6767: Fix compiler warning. 2007-10-10 13:16:42 -05:00
Andrew Tridgell
6d15e95111 r6740: make gensec_gssapi.c compile again 2007-10-10 13:16:40 -05:00
Andrew Bartlett
77d054c65a r6737: Explain these error returns a bit better.
Andrew Bartlett
2007-10-10 13:16:40 -05:00
Stefan Metzmacher
3536029e8f r6733: GSS_C_DCE_STYLE is not available for most builds
metze
2007-10-10 13:16:39 -05:00
Stefan Metzmacher
491d7804f5 r6730: register gensec_krb5 also with the drcrpc auth type
metze
2007-10-10 13:16:39 -05:00
Andrew Bartlett
400899995b r6729: Fix silly copy-paste bug spotted by metze.
Andrew Bartlett
2007-10-10 13:16:39 -05:00
Andrew Bartlett
c8fbda6bfd r6728: Microsoft relies very strongly on getting the OIDs it expects, so we
must register the 'MS' OID for the domain join to progress.

Andrew Bartlett
2007-10-10 13:16:38 -05:00
Andrew Bartlett
937ee36161 r6727: One more step down the long march to the 'Kerberos domain join'.
This patch allows a suitably patched Heimdal GSSAPI library (detected
in configure) to supply to us the session keys, and further compleats
the gensec_gssapi module.  This is tested for CIFS, but fails for LDAP
at this point (that is what I'll work on next).

We currently fill out the 'session info' from the SAM, like
gensec_krb5 does, but both will need to use the PAC extraction
functions in the near future.

Andrew Bartlett
2007-10-10 13:16:38 -05:00
Stefan Metzmacher
0a61d1f651 r6705: let the gensec module decide if messages can be signed and sealed in a different
order than a strict request - reply sequence

Note: we should also fix the client code...

metze
2007-10-10 13:16:36 -05:00
Stefan Metzmacher
9d86314c44 r6704: fix compiler warning
metze
2007-10-10 13:16:36 -05:00
Andrew Bartlett
9098b9321f r6700: Upper case realms in kerberos-specific parts of the code, as this is
no longer done globally.

This keeps MIT client libraries happy, because otherwise the windows
KDC will return a different case to what was requested.

Andrew Bartlett
2007-10-10 13:16:35 -05:00
Andrew Tridgell
250f1f69dd r6620: the type 23 schannel bind uses a workstation name, not an account name 2007-10-10 13:16:31 -05:00
Tim Potter
258d03ef92 r6610: Fix a const warning in the gensec spnego implementation. (A make proto
is required after updating to this version).
2007-10-10 13:16:30 -05:00
Andrew Bartlett
2f22841c67 r6458: Split up NTLMSSP into a new directory, and into seperate files for the
client and server logic code.  In future, this may allow us to build
only the NTLMSSP client, and not the server, but in the short-term, it
allows me greater sainity in moving around these files.

Andrew Bartlett
2007-10-10 13:11:38 -05:00
Andrew Bartlett
fc3e3653eb r6455: Remove wrapper functions, and ntlmssp_end (which is well handed by talloc() now).
Andrew Bartlett
2007-10-10 13:11:38 -05:00
Andrew Bartlett
b14c530dfd r6454: Start to migrate NTLMSSP away from it's own API to just use GENSEC.
The aim here is to remove the extra layer of abstraction, and to then
use the credentials code directly in the NTLMSSP layer.

Andrew Bartlett
2007-10-10 13:11:38 -05:00
Andrew Bartlett
24f98f32aa r6453: Move verbose errors for the schannel 'not in the DB, or DB corrupt' error cases.
Andrew Bartlett
2007-10-10 13:11:38 -05:00
Andrew Tridgell
e6376b2430 r6340: - added an easy to use function to initialise a temporary ldb with some ldif
- init the schannel.ldb with some CASE_INSENSITIVE attributes
2007-10-10 13:11:33 -05:00
Tim Potter
9c45f8d7bc r6322: Fix compile warning for struct sockaddr. 2007-10-10 13:11:31 -05:00
Stefan Metzmacher
8059315034 r6128: fix the build
metze
2007-10-10 13:11:20 -05:00
Andrew Bartlett
e074d63f3d r6113: Move GENSEC and the kerberos code out of libcli/auth, and into
auth/gensec and auth/kerberos.

This also pulls the kerberos configure code out of libads (which is
otherwise dead), and into auth/kerberos/kerberos.m4

Andrew Bartlett
2007-10-10 13:11:20 -05:00