<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Due to the way sip digest auth works, you could not actually validate a password if all you have is the md5 of the password. &nbsp;You can store the a1 hash, which is an md5 of username:realm:password string. &nbsp;For more information on how digest authentication works to help understand why what you are trying is not cryptographically possible, check out:&nbsp;<a href="http://en.wikipedia.org/wiki/Digest_access_authentication" class="">http://en.wikipedia.org/wiki/Digest_access_authentication</a><div class=""><br class=""></div><div class="">Mike</div><div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 23, 2014, at 2:09 AM, Shisheer Teli &lt;<a href="mailto:telishisheer@gmail.com" class="">telishisheer@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="font-size:12.8000001907349px" class=""><span style="font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" class="">Hi,</span></div><span style="font-size: 13px; font-family: Roboto, arial, sans-serif; line-height: 18.2000007629395px;" class=""><br class=""></span><span style="font-size: 13px; font-family: Roboto, arial, sans-serif; line-height: 18.2000007629395px;" class="">I am able to bind with any alise on ldap server except userPassword (MD5) alise.</span><br style="font-size: 13px; font-family: Roboto, arial, sans-serif; line-height: 18.2000007629395px;" class=""><span style="font-size: 13px; font-family: Roboto, arial, sans-serif; line-height: 18.2000007629395px;" class=""><br class=""></span><div style="font-size:12.8000001907349px" class=""><span style="font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" class="">when i bind password with userPassword , authentication fails. &nbsp;</span><br style="font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" class=""><br style="font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" class="">I done some following testing</div><div style="font-size:12.8000001907349px" class=""><br class=""></div><div style="font-size:12.8000001907349px" class="">&nbsp;<span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class="">Test 1:&nbsp;</span></div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class="">when i set openldap userPassword in md5 , in freeswitch cli i saw hash password and authentication failed.&nbsp;</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class=""><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class=""><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class="">Test 2:&nbsp;</span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class=""><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(224,240,255)" class="">when i set openldap userPassword in plain text, in freeswitch cli i can see plain text password and authentication success.&nbsp;</span><div class="" style="font-size:12.8000001907349px"><div id=":2id" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">Authentication</span></font><span style="font-size: 13px; font-family: Roboto, arial, sans-serif; line-height: 18.2000007629395px;" class="">&nbsp;works with plain text but not for encrypted password.</span></div><div class=""><br class=""></div><div style="font-size:12.8000001907349px" class=""><span style="font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" class="">Configuration file:</span><br class=""></div><div style="font-size:12.8000001907349px" class=""><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;configuration name="xml_ldap.conf"&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""><br class=""></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;bindings&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;binding name="directory"&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &lt;param name="basedn" value="dc=example,dc=com"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &lt;param name="filter" value="(telephoneNumber=%d)" bindings="directory"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &lt;param name="url" value="ldap://<a href="http://ldap.example.com/" target="_blank" class="">ldap.example.com</a>"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &lt;param name="binddn" value="cn=use,dc=example,dc=com"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &lt;param name="bindpass" value="XXXX"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &nbsp;&lt;trans&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &nbsp;&lt;tran name="id" mapfrom="uid"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &nbsp;&lt;tran name="password" mapfrom="userPassword"/&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&nbsp; &nbsp;&lt;/trans&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;/binding&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;/bindings&gt;</span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""><br class=""></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class="">&lt;/configuration&gt;</span></font></div></div><div class=""><br class=""></div><div class="">Please reply ASAP...</div></div></div></blockquote></div><br class=""></div></div></body></html>