diff options
author | Günther Deschner <gd@samba.org> | 2007-02-26 09:53:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:11 -0500 |
commit | 6af7f33bbb2f6860f11bb8632ad973f91a40aded (patch) | |
tree | 4b3d5d706a8bbd3534dae3a4eb98ac9517fbf225 /source3/nsswitch/winbindd_cred_cache.c | |
parent | 6784d54a77c6ef67102b1b2c6a73ac16991b0b50 (diff) | |
download | samba-6af7f33bbb2f6860f11bb8632ad973f91a40aded.tar.gz samba-6af7f33bbb2f6860f11bb8632ad973f91a40aded.tar.bz2 samba-6af7f33bbb2f6860f11bb8632ad973f91a40aded.zip |
r21537: Avoid to trigger the confusing "cached entry differs." warning when
there is just no cache around for a user.
Guenther
(This used to be commit a6c249b59228c6891cde624f72fff23879dbd19f)
Diffstat (limited to 'source3/nsswitch/winbindd_cred_cache.c')
-rw-r--r-- | source3/nsswitch/winbindd_cred_cache.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index 84c844a9da..0847ac9e27 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -249,6 +249,16 @@ static void krb5_ticket_gain_handler(struct event_context *event_ctx, } /**************************************************************** + Check if an ccache entry exists. +****************************************************************/ + +BOOL ccache_entry_exists(const char *username) +{ + struct WINBINDD_CCACHE_ENTRY *entry = get_ccache_by_username(username); + return (entry != NULL); +} + +/**************************************************************** Ensure we're changing the correct entry. ****************************************************************/ @@ -305,6 +315,8 @@ NTSTATUS add_ccache_to_list(const char *princ_name, entry->ref_count++; DEBUG(10,("add_ccache_to_list: ref count on entry %s is now %d\n", username, entry->ref_count)); + /* FIXME: in this case we still might want to have a krb5 cred + * event handler created - gd*/ return NT_STATUS_OK; } |