diff options
author | Gerald (Jerry) Carter <jerry@samba.org> | 2008-01-04 13:34:10 -0600 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2008-01-04 13:34:10 -0600 |
commit | 4093b0632cda821f331f9ff50c51aa63c799292f (patch) | |
tree | 30dc0d9f5dd26e86367cfb8c82533ec703c8cff3 | |
parent | bcc2a6a9d759adc52ed9176bd1153da4b5a79722 (diff) | |
download | samba-4093b0632cda821f331f9ff50c51aa63c799292f.tar.gz samba-4093b0632cda821f331f9ff50c51aa63c799292f.tar.bz2 samba-4093b0632cda821f331f9ff50c51aa63c799292f.zip |
Add a missing check for dealing with a one-way trust in query_user().
(This used to be commit f89e356bdaa203ef0a3ce6b8bd52170afa68a2c9)
-rw-r--r-- | source3/winbindd/winbindd_rpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index ffb47692cb..f5e1226447 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -456,6 +456,12 @@ static NTSTATUS query_user(struct winbindd_domain *domain, return NT_STATUS_OK; } + if ( !winbindd_can_contact_domain( domain ) ) { + DEBUG(10,("query_user: No incoming trust for domain %s\n", + domain->name)); + return NT_STATUS_OK; + } + /* no cache; hit the wire */ result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol); |