diff options
author | Simo Sorce <idra@samba.org> | 2012-09-07 14:14:08 -0400 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2012-09-12 21:18:09 +0200 |
commit | 893b21387665a7b644355d60f6fbccaf48ffaedb (patch) | |
tree | 91721ee23469a110630937c14efbdc2b62ae5412 /source4/winbind/wb_init_domain.c | |
parent | a11e45f1c5268e798124fe9e0716b7b9d0557014 (diff) | |
download | samba-893b21387665a7b644355d60f6fbccaf48ffaedb.tar.gz samba-893b21387665a7b644355d60f6fbccaf48ffaedb.tar.bz2 samba-893b21387665a7b644355d60f6fbccaf48ffaedb.zip |
Avoid overriding default ccache for ads operations.
Avoid overriding default ccache for ads operations.
Nowadays various samba components may need to use GSSAPI and a default cred
cache to perform their tasks.
This code was completely overriding the whole process default ccache name, thus
altering the current credentials and sometimes hijacking them (or getting
preemptively hijaked).
By using gss_krb5_import_cred we can instead use a private ccache (necessary
sometimes to use a different set of credentials fromt he default
cifs/fqdn@realm one, for example when contacting foreign DCs using trust
credentials) that does not affect the rest of the process.
For the kerberos versions which don't have gss_krb5_import_cred
we fallback to temp override of KRB5CCNAME and gss_acquire_cred.
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Wed Sep 12 21:18:09 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/winbind/wb_init_domain.c')
0 files changed, 0 insertions, 0 deletions