The username parsing of the commandline options is done before we read the smb.conf so the username is not fully parsed.
This does not set DOMAIN as the domain name but handles 'DOMAIN+username' as the connecting username!
Created attachment 13295 [details]
patch for 4.6
I've backported the patch, test is working.
Karolin, please add the patch for the next 4.6 release. Thanks!
(In reply to Andreas Schneider from comment #2)
Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #3)
Pushed to v4-6-test.
Closing out bug report.