When considering a "local" user, it is conceivable that the user's UNIX primary gid is mapped to a well-known or builtin SID. If such a user logs on, the logon succeeds, and the SamInfo3 that's created during the logon has an RID of 513 (domain users). OTOH, if a different user logs on and connects to a share with a "force user" pointing to that user, the tree-connect fails with a NT_STATUS_INVALID_SID. This is similar in a way to https://bugzilla.samba.org/show_bug.cgi?id=11044
Created attachment 11609 [details] git-am fix for 4.3.next
Comment on attachment 11609 [details] git-am fix for 4.3.next LGTM.
Re-assigning to Karolin for inclusion in 4.3.next.
uri@samba.org
(In reply to Jeremy Allison from comment #3) Pushed to autobuild-v4-3-test.
(In reply to Karolin Seeger from comment #5) Pushed to v4-3-test. Closing out bug report. Thanks!