s3-winbind: Set status before we leave in some msrpc functions.
authorAndreas Schneider <asn@samba.org>
Wed, 7 Jul 2010 12:27:04 +0000 (14:27 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 13 Jul 2010 17:17:41 +0000 (19:17 +0200)
source3/winbindd/winbindd_msrpc.c

index 780a675f402d4e273d4ca36a521f6f779d97e755..714e657012833c29947308f39f46933fa9f1faca 100644 (file)
@@ -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;
        }