summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-07-07 14:27:04 +0200
committerAndreas Schneider <asn@samba.org>2010-07-13 19:17:41 +0200
commit57ebc8af8061e1a81a46300154ac6c4d489b302a (patch)
treede323508a4ea0422081114fa38164d9b5db55a49
parent5bdb8b472ce9c8072d4ffade4075f9ec17ae3819 (diff)
downloadsamba-57ebc8af8061e1a81a46300154ac6c4d489b302a.tar.gz
samba-57ebc8af8061e1a81a46300154ac6c4d489b302a.tar.bz2
samba-57ebc8af8061e1a81a46300154ac6c4d489b302a.zip
s3-winbind: Set status before we leave in some msrpc functions.
-rw-r--r--source3/winbindd/winbindd_msrpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c
index 780a675f40..714e657012 100644
--- a/source3/winbindd/winbindd_msrpc.c
+++ b/source3/winbindd/winbindd_msrpc.c
@@ -438,6 +438,8 @@ static NTSTATUS msrpc_query_user(struct winbindd_domain *domain,
if ( !winbindd_can_contact_domain( domain ) ) {
DEBUG(10,("query_user: No incoming trust for domain %s\n",
domain->name));
+ /* Tell the cache manager not to remember this one */
+ status = NT_STATUS_SYNCHRONIZATION_REQUIRED;
goto done;
}
@@ -562,6 +564,8 @@ static NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain,
if (!winbindd_can_contact_domain(domain)) {
DEBUG(10,("msrpc_lookup_useraliases: No incoming trust for domain %s\n",
domain->name));
+ /* Tell the cache manager not to remember this one */
+ status = NT_STATUS_SYNCHRONIZATION_REQUIRED;
goto done;
}