s3:winbind: Don't abort when receiving a NULL SID
authorAmit Kumar <amitkuma@redhat.com>
Fri, 31 May 2019 13:27:52 +0000 (18:57 +0530)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 16 Oct 2019 16:39:42 +0000 (16:39 +0000)
commiteb093c5d2ac77889215356ffabb915861cd4e9d5
tree13dbb1e2402718223b35fb43ad98c493c0e81593
parentd023b29876dc1449014c3cf5d19abb6f186e166c
s3:winbind: Don't abort when receiving a NULL SID

Source code in winbind_rpc.c states that if the trusted domain
has no SID, winbindd just aborts the session. This happens with
MIT Kerberos realm added as trust to AD and winbindd just returns
without processing further as there is no SID returned for the
Linux system having kerberos support.

This fix makes winbindd to skip the domain having NULL SID instead
of aborting the request completely.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13913

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd_rpc.c