mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
893b213876
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 |
||
---|---|---|
.. | ||
ads_ldap_protos.h | ||
ads_proto.h | ||
ads_status.c | ||
ads_status.h | ||
ads_struct.c | ||
authdata.c | ||
cldap.c | ||
cldap.h | ||
disp_sec.c | ||
kerberos_keytab.c | ||
kerberos_proto.h | ||
kerberos_util.c | ||
kerberos.c | ||
krb5_errs.c | ||
krb5_setpw.c | ||
ldap_printer.c | ||
ldap_schema.c | ||
ldap_schema.h | ||
ldap_user.c | ||
ldap_utils.c | ||
ldap.c | ||
ndr.c | ||
sasl_wrapping.c | ||
sasl.c | ||
sitename_cache.c | ||
sitename_cache.h | ||
util.c |