s3-winbindd: make sure we obey the -n switch also for samlogon cache access.
[ira/wip.git] / source3 / winbindd / winbindd_cache.c
index d733be06723dd638bcd5262a2826a1f6ca3dbd86..50da98f62cabb0d3f3d7a4c61c3cd5a5a30b21f3 100644 (file)
@@ -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;
        }