When trying "net sam listmem" I found that wbcLookupSids does not return a proper domain name.
Created attachment 6110 [details] Patch for 3.5
Created attachment 6111 [details] Patch for master
Comment on attachment 6111 [details] Patch for master LGTM.
Comment on attachment 6110 [details] Patch for 3.5 LGTM.
Re-assigning to Karolin for inclusion in 3.5.next. Jeremy.
*** Bug 7834 has been marked as a duplicate of this bug. ***
Pushed to v3-5-test. Closing out bug report. Thanks!