git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3-winbindd: make sure we obey the -n switch also for samlogon cache access.
[ira/wip.git]
/
source3
/
winbindd
/
winbindd_cache.c
diff --git
a/source3/winbindd/winbindd_cache.c
b/source3/winbindd/winbindd_cache.c
index d733be06723dd638bcd5262a2826a1f6ca3dbd86..50da98f62cabb0d3f3d7a4c61c3cd5a5a30b21f3 100644
(file)
--- 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;
}