net usershare dies for users with "Failed to init messaging context"

David Mulder dmulder at
Wed Jun 7 12:25:41 UTC 2017

Yeah, I already thought of that. Calling map_nt_error_from_unix() on the
return code instead fixes the problem.

On 06/06/2017 02:43 PM, Jeremy Allison wrote:
> On Tue, Jun 06, 2017 at 02:28:59PM -0600, David Mulder via samba-technical wrote:
>> Hmm, problem is the returned error is NT_STATUS_INTERNAL_ERROR, and I
>> wouldn't think we'd want to blanket allow that error. Looks like it's
>> coming from messaging_init_internal() where it just returns
>> NT_STATUS_INTERNAL_ERROR rather than map it from the actual returned error.
> messaging_dgm_init() returns errno as ret, which is then passed
> into *err as a parameter from messaging_dgm_ref().
> The bug is that inside messaging_init_internal() we just return
> NT_STATUS_INTERNAL_ERROR instead of calling
> 	status = map_nt_error_from_unix(ret);
> Can you try the attached patch ?
> Jeremy.

David Mulder
SUSE Labs Software Engineer - Samba
dmulder at
SUSE Linux GmbH, GF: Felix Imend├Ârffer, Jane Smithard, Graham Norton, HRB 21284 (AG N├╝rnberg)

More information about the samba-technical mailing list