r11995: A big kerberos-related update.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 1 Dec 2005 05:20:39 +0000 (05:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:56 +0000 (13:46 -0500)
commit9c6b7f2d62e134a4bc15efc04e05be25e4a53dc7
tree8ef389a528fdc2caca79f279c086b4f8bea7afeb
parent22f1de0998ee34be4c032b16e4a6d30c9f8e6b85
r11995: A big kerberos-related update.

This merges Samba4 up to current lorikeet-heimdal, which includes a
replacement for some Samba-specific hacks.

In particular, the credentials system now supplies GSS client and
server credentials.  These are imported into GSS with
gss_krb5_import_creds().  Unfortunetly this can't take an MEMORY
keytab, so we now create a FILE based keytab as provision and join
time.

Because the keytab is now created in advance, we don't spend .4s at
negprot doing sha1 s2k calls.  Also, because the keytab is read in
real time, any change in the server key will be correctly picked up by
the the krb5 code.

To mark entries in the secrets which should be exported to a keytab,
there is a new kerberosSecret objectClass.  The new routine
cli_credentials_update_all_keytabs() searches for these, and updates
the keytabs.

This is called in the provision.js via the ejs wrapper
credentials_update_all_keytabs().

We can now (in theory) use a system-provided /etc/krb5.keytab, if

krb5Keytab: FILE:/etc/krb5.keytab

is added to the secrets.ldb record.  By default the attribute

privateKeytab: secrets.keytab

is set, pointing to allow the whole private directory to be moved
without breaking the internal links.
(This used to be commit 6b75573df49c6210e1b9d71e108a9490976bd41d)
27 files changed:
source4/auth/credentials/credentials.c
source4/auth/credentials/credentials.h
source4/auth/credentials/credentials_files.c
source4/auth/credentials/credentials_krb5.c
source4/auth/gensec/gensec_gssapi.c
source4/heimdal/kdc/kerberos5.c
source4/heimdal/lib/gssapi/accept_sec_context.c
source4/heimdal/lib/gssapi/acquire_cred.c
source4/heimdal/lib/gssapi/arcfour.c
source4/heimdal/lib/gssapi/copy_ccache.c
source4/heimdal/lib/gssapi/gssapi.h
source4/heimdal/lib/gssapi/gssapi_locl.h
source4/heimdal/lib/gssapi/init_sec_context.c
source4/heimdal/lib/gssapi/release_cred.c
source4/heimdal/lib/hdb/db.c
source4/heimdal/lib/hdb/hdb-protos.h
source4/heimdal/lib/hdb/ndbm.c
source4/heimdal/lib/krb5/cache.c
source4/heimdal/lib/krb5/get_for_creds.c
source4/heimdal/lib/krb5/keytab.c
source4/heimdal/lib/krb5/krb5-private.h
source4/heimdal/lib/krb5/krb5-protos.h
source4/heimdal/lib/krb5/rd_cred.c
source4/libnet/libnet_join.c
source4/scripting/ejs/smbcalls_creds.c
source4/scripting/libjs/provision.js
source4/setup/secrets.ldif