diff options
author | Sumit Bose <sbose@redhat.com> | 2010-01-21 10:46:14 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-02 14:41:39 -0500 |
commit | ad35c1852e4fe3920acc63eb9ada409af0fb7d60 (patch) | |
tree | 627461f85d1aab6c8e091fdc3d4c238fdc1791bb /server/db | |
parent | 3c401be933498710042d9298870a9a5311f0c658 (diff) | |
download | sssd-ad35c1852e4fe3920acc63eb9ada409af0fb7d60.tar.gz sssd-ad35c1852e4fe3920acc63eb9ada409af0fb7d60.tar.bz2 sssd-ad35c1852e4fe3920acc63eb9ada409af0fb7d60.zip |
Check cache_credentials in sysdb_cache_auth_send()
Diffstat (limited to 'server/db')
-rw-r--r-- | server/db/sysdb_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c index 36b58673..469ed8d4 100644 --- a/server/db/sysdb_ops.c +++ b/server/db/sysdb_ops.c @@ -4674,6 +4674,11 @@ struct tevent_req *sysdb_cache_auth_send(TALLOC_CTX *mem_ctx, return NULL; } + if (!domain->cache_credentials) { + DEBUG(3, ("Cached credentials not available.\n")); + return NULL; + } + static const char *attrs[] = {SYSDB_NAME, SYSDB_CACHEDPWD, SYSDB_DISABLED, |