<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>NTLMv2 Support in Cyrus Sasl2</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Dan,<BR>
<BR>
Thanks for replying.<BR>
<BR>
I have applied the given patch successfully to Cyrus SASL version 2.1.20 using 'patch -p1 < patch file.txt'<BR>
<BR>
Then I did "./configure --enable-ntlm --with-ntlm-impl=samba'<BR>
But when I did 'make', I got the following errors,<BR>
<BR>
gcc -bundle -undefined error -o .libs/libntlm.2.0.20.so ntlm.lo ntlm_init.lo plugin_common.lo -lresolv -lresolv -lc <BR>
Undefined symbols:<BR>
"_DES_set_odd_parity", referenced from:<BR>
_E in ntlm.lo<BR>
"_HMAC_Update", referenced from:<BR>
_V2 in ntlm.lo<BR>
_V2 in ntlm.lo<BR>
"_HMAC", referenced from:<BR>
_V2 in ntlm.lo<BR>
"_EVP_md5", referenced from:<BR>
_V2 in ntlm.lo<BR>
_V2 in ntlm.lo<BR>
"_DES_ecb_encrypt", referenced from:<BR>
_E in ntlm.lo<BR>
"_MD4", referenced from:<BR>
_P16_nt in ntlm.lo<BR>
"_HMAC_CTX_cleanup", referenced from:<BR>
_V2 in ntlm.lo<BR>
<BR>
Later I changed the patched configure.in file by adding<BR>
"-lcrypto $LIB_RSAREF" to NTLM_LIBS in "if test "$ntlm_impl" = samba; then NTLM_LIBS=""<BR>
After this change, the above errors were gone.<BR>
<BR>
<BR>
When I did "ldapsearch" from OpenLDAP, I got " Unknown authentication method (-6): SASL(-4):No such mechanism"<BR>
<BR>
Can this patch be applied to SASL version 2.1.23 after suitable modifications?<BR>
<BR>
<BR>
Thanks,<BR>
Dhruva<BR>
<BR>
</FONT>
</P>
<pre>
</pre></BODY>
</HTML>