Help: OpenLdap bindRequest with NTLM authentication makes mailformed message.

Help: OpenLdap bindRequest with NTLM authentication makes mailformed message.

Lev Olshvang lolshva at 012.net.il
Tue Mar 3 22:20:26 IST 2015


Hello Alll,


Does anybody have example or can advice how to perform NTLM 
authentication of Linux client toward Microsoft AD service?


I calledd ldap_ntlm_bind() to do the Job, but
Wireshark can not fully recognize these message and prints "mailformed"

And following
ldap_parse_ntlm_bind_result() returns with Authentication error.


Unfortunately these functions are not documented, perhaps I pass wrong 
parameters.


Actually I pass
ldap_ntlm_bind(ld, dn, LDAP_AUTH_NTLM_REQUEST, cred, NULL, NULL, msgidp);
I put password in cred structure and user parameter as part of dn string,
like "user=NTDOMAIN\lev, cn=myhost,dn=com"


Many thanks and Hag Sameah,

L.







More information about the Linux-il mailing list