If cm_prepare_connection() has try_ipc_auth == false (happens with an NT4 dc), we segfault dereferencing machine_password (== NULL) in strlen(), when we pass it to cli_session_setup(). This applies to 4.5 and older. 4.6 passes cli_credentials and avoids this problem.
Created attachment 12981 [details] Patches for v4-6-test
Created attachment 12982 [details] Patches for v4-5-test
Created attachment 12983 [details] Patches for v4-4-test
Reassigning to Karolin for inclusion in 4.4, 4.5 and 4.6.
Pushed to autobuild-v4-{4,5,6}-test.
(In reply to Stefan Metzmacher from comment #5) Pushed to all branches. Closing out bug report. Thanks!