diff options
author | Günther Deschner <gd@samba.org> | 2011-06-08 12:56:10 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-06-08 14:44:31 +0200 |
commit | ae6a779bf9f816680e724ede37324b7f5355996b (patch) | |
tree | 41a4a8662431ae77fffdcc576a0b1a1edcce5e5f /source3/winbindd/winbindd_ads.c | |
parent | 47ea009e86a2a4499e216d97e5b64cc9e52a27ad (diff) | |
download | samba-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_ads.c')
-rw-r--r-- | source3/winbindd/winbindd_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c index dde8e3f53d..770ed43aa0 100644 --- a/source3/winbindd/winbindd_ads.c +++ b/source3/winbindd/winbindd_ads.c @@ -489,7 +489,7 @@ static NTSTATUS query_user(struct winbindd_domain *domain, /* try netsamlogon cache first */ - if ( (user = netsamlogon_cache_get( mem_ctx, sid )) != NULL ) + if (winbindd_use_cache() && (user = netsamlogon_cache_get( mem_ctx, sid )) != NULL ) { DEBUG(5,("query_user: Cache lookup succeeded for %s\n", sid_string_dbg(sid))); |