From Bug 12821, tree connect failed without password to windows

shivappa Sangapur ssangapur3 at gmail.com
Thu Jun 8 07:14:55 UTC 2017


Looks like this is causing me the problem.

https://bugzilla.samba.org/show_bug.cgi?id=12821#add_comment
<https://bugzilla.samba.org/show_bug.cgi?id=12821#add_comment>  

auth/ntlmssp/ntlmssp_client.c:

	if (ntlmssp_state->use_ccache) {
		struct samr_Password *nt_hash = NULL;

		/*
		 * If we have a password given we don't
		 * use the ccache
		 */
		nt_hash = cli_credentials_get_nt_hash(gensec_security->credentials,
						      mem_ctx);
		if (nt_hash != NULL) {
			ZERO_STRUCTP(nt_hash);
			TALLOC_FREE(nt_hash);
*			ntlmssp_state->use_ccache = false;*
		}
	}

since I am sending null password *ntlmssp_state->use_ccache = false;* is NOT
set and 
NT_STATUS_WRONG_CREDENTIAL_HANDLE is returned since i'm not running
windbindd.

If I set ntlmssp_state->use_ccache = false; irrespective of password(empty
or non-empty), what else i need to modify.

I must use username to communicate with Windows.

Can anybody please help me to resolve this problem.

Thanks & Regards,
Shivappa





--
View this message in context: http://samba.2283325.n4.nabble.com/From-Bug-12821-tree-connect-failed-without-password-to-windows-tp4719688.html
Sent from the Samba - samba-technical mailing list archive at Nabble.com.



More information about the samba-technical mailing list