<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. You can store the a1 hash, which is an md5 of username:realm:password string. For more information on how digest authentication works to help understand why what you are trying is not cryptographically possible, check out: <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 <<a href="mailto:telishisheer@gmail.com" class="">telishisheer@gmail.com</a>> 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. </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=""> <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: </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. </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: </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. </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=""> 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=""><configuration name="xml_ldap.conf"></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=""><bindings></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""><binding name="directory"></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <param name="basedn" value="dc=example,dc=com"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <param name="filter" value="(telephoneNumber=%d)" bindings="directory"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <param name="url" value="ldap://<a href="http://ldap.example.com/" target="_blank" class="">ldap.example.com</a>"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <param name="binddn" value="cn=use,dc=example,dc=com"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <param name="bindpass" value="XXXX"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <trans></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <tran name="id" mapfrom="uid"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> <tran name="password" mapfrom="userPassword"/></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""> </trans></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""></binding></span></font></div><div class=""><font face="Roboto, arial, sans-serif" class=""><span style="line-height:18.2000007629395px" class=""></bindings></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=""></configuration></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>