Created attachment 13262 [details] debug The problem is that messaging_init_internal() is returning NT_STATUS_INTERNAL_ERROR rather than translate the ERRNO via map_nt_error_from_unix(). The returned NTSTATUS code is then not handled correctly by the net command. > net usershare add test_share /home/dmulder/test_share/ Failed to init messaging context > echo $? 1 Steps: 1. Prepare a AD server 2. Install SLED12SP3 Beta3, join the windows domain 3. Login as a AD user 4. Start YaST2 Windows Domain Membership -> enable 'Allow Users to Share Their Directories' -> enter Enter "Your_DOMAIN_name\domain users" into the 'Permitted Group' -> click OK 5. Right-click on a folder in your home directory then click 'Sharing Options' 6. Check 'Share this folder' -> click 'Create Share' 7. Got a error msg (see the screenshot) 'net usershare' returned error 1: Failed to init messaging context
Created attachment 13263 [details] patch fix
@dmulder: please cherry pick the master commit (git cherry-pick -x 08a21f3539fef76a22189b1751fd2a081937a057) into the v4-6-test and v4-5-test branches and attach the resultant patches here for review.
Created attachment 13264 [details] cherry-picked commit to v4-6-test
The bug wasn't present in v4-5-test, so it can't be cherry-picked to that branch. I've attached a patch for v4-6-test.
Comment on attachment 13264 [details] cherry-picked commit to v4-6-test LGTM. Jeremy.
@Karolin: please merge for 4.6.next - thanks!
Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #7) Pushed to v4-6-test. Closing out bug report. Thanks!