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

15 Commits

Author SHA1 Message Date
Andrew Bartlett
bedf92da5c r7843: Use the new Heimdal gsskrb_acquire_creds API. This has the right
lifetime constraints, and works with the in-memory keytab.

Move initialize_krb5_error_table() into our kerberos startup code,
rather than in the GSSAPI code explitly.  (Hmm, we probably don't need
this at all..)

Andrew Bartlett
2007-10-10 13:18:42 -05:00
Andrew Bartlett
c19d5706f4 r7827: Add in-memory keytab to Samba4, using the new MEMORY_WILDCARD keytab
support in Heimdal.

This removes the 'ext_keytab' step from my Samba4/WinXP client howto.

In doing this work, I realised that the replay cache in Heimdal is
currently a no-op, so I have removed the calls to it, and therefore
the mutex calls from passdb/secrets.c.

This patch also includes a replacement 'magic' mechanism detection,
that does not issue extra error messages from deep inside the GSSAPI
code.

Andrew Bartlett
2007-10-10 13:18:41 -05:00
Andrew Bartlett
63272794c4 r7270: A big revamp to the way we handle kerberos errors in Samba4. We now
fill in the function pointers to handle the logging, and catch all the
kerberos warnings. (Currently at level 3).

To avoid a memory leak, this requries a new function: krb5_freelog(),
which I've added to lorikeet/heimdal.

This also required a revamp to how we handle the krb5_context, so as
to make it easier to handle with talloc destructors.

Andrew Bartlett
2007-10-10 13:17:34 -05:00
Andrew Bartlett
1f68cf7d0e r7218: Don't use an uninitialised variable in an error message.
Andrew Bartlett
2007-10-10 13:17:27 -05:00
Andrew Bartlett
f2e9261925 r6882: Put in configure tests and #ifdef to keep Samba building on older Heimdal.
Andrew Bartlett
2007-10-10 13:16:54 -05:00
Andrew Bartlett
a7e2ecfac9 r6803: Try to bring in the correct GSSAPI headers for the krb5 mech. This
should allow us to ditch the local static storage for OIDs, as well as
fix the build on non-heimdal platforms.

Andrew Bartlett
2007-10-10 13:16:45 -05:00
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
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
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
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