summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cache.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-06-08 12:56:10 +0200
committerGünther Deschner <gd@samba.org>2011-06-08 14:44:31 +0200
commitae6a779bf9f816680e724ede37324b7f5355996b (patch)
tree41a4a8662431ae77fffdcc576a0b1a1edcce5e5f /source3/winbindd/winbindd_cache.c
parent47ea009e86a2a4499e216d97e5b64cc9e52a27ad (diff)
downloadsamba-ae6a779bf9f816680e724ede37324b7f5355996b.tar.gz
samba-ae6a779bf9f816680e724ede37324b7f5355996b.tar.bz2
samba-ae6a779bf9f816680e724ede37324b7f5355996b.zip
s3-winbindd: make sure we obey the -n switch also for samlogon cache access.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jun 8 14:44:31 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/winbindd/winbindd_cache.c')
-rw-r--r--source3/winbindd/winbindd_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index d733be0672..50da98f62c 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -1296,6 +1296,10 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
uint32 rid;
fstring tmp;
+ if (!winbindd_use_cache()) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
+
if (!cache->tdb) {
return NT_STATUS_INTERNAL_DB_ERROR;
}