[PATCH] s3-winbind: Try lsa connect over np if tcpip fails.
Jeremy Allison
jra at samba.org
Tue Aug 13 11:36:34 MDT 2013
On Tue, Aug 13, 2013 at 09:41:31AM -0700, Christof Schmitt wrote:
> On Tue, Aug 13, 2013 at 02:00:00PM +0200, Andreas Schneider wrote:
> > BUG: https://bugzilla.samba.org/show_bug.cgi?id=9615
> > BUG: https://bugzilla.samba.org/show_bug.cgi?id=9899
> >
> > Signed-off-by: Andreas Schneider <asn at samba.org>
> > ---
> > source3/winbindd/winbindd_cm.c | 5 ++---
> > 1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
> > index 6c3f6ea..e6b6822 100644
> > --- a/source3/winbindd/winbindd_cm.c
> > +++ b/source3/winbindd/winbindd_cm.c
> > @@ -2642,11 +2642,10 @@ NTSTATUS cm_connect_lsat(struct winbindd_domain *domain,
> > invalidate_cm_connection(&domain->conn);
> > status = cm_connect_lsa_tcp(domain, mem_ctx, cli);
> > }
> > - if (!NT_STATUS_IS_OK(status)) {
> > + if (NT_STATUS_IS_OK(status)) {
> > return status;
> > }
> > -
> > - return NT_STATUS_OK;
> > + domain->can_do_ncacn_ip_tcp = false;
> > }
> >
> > status = cm_connect_lsa(domain, mem_ctx, cli, lsa_policy);
> > --
> > 1.8.3.1
> >
>
> I just tested the patch. It fixes the problem pointed out in
> https://bugzilla.samba.org/show_bug.cgi?id=9899#c9
Yeah, looks similar to the patch written by florianriehm at web.de.
What I don't understand is why the TCP connection fails, but
the RPC over NBT works.
Jeremy.
More information about the samba-technical
mailing list