Hi Bill!<div><br></div><div>That's a perfectly reasonable suggestion, but for this solution, I need a username/password combo that spans domains. Also, the password is used in other places too.</div><div><br></div><div>
Thanks for the reply!</div><div><br></div><div>Mike van Lammeren</div><div><br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 11:15 AM, Bill W <span dir="ltr"><<a href="mailto:freeswitch@aastral.net">freeswitch@aastral.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Why don't you just store the a1-hash in the database instead of the<br>
password?<br>
<br>
-Bill W.<br>
<div class="im"><br>
<br>
Mike van Lammeren wrote:<br>
> Hello!<br>
><br>
> I have written a Lua script to connect to a database and provide<br>
> directory information for phones registering with FreeSWITCH.<br>
><br>
> My problem is that I store an MD5 hash of the passwords in the database,<br>
> so I wish there was a way to get FreeSWITCH to authenticate using the<br>
> MD5 hash of the password provided by the phone, and not the password itself.<br>
><br>
> According to the wiki<br>
</div>> <<a href="http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide" target="_blank">http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide</a>>, it is<br>
<div class="im">> possible to pass in a parameter called /a1-hash/ instead of the username<br>
> and password. The a1-hash parameter is an MD5 hash of a string<br>
> comprising the username, domain and password, separated by<br>
> colons. Unfortunately, I can't generate that string, since I don't have<br>
> the raw password, just the MD5 hash.<br>
><br>
> I would have my Lua script do the authentication, but cannot because<br>
> FreeSWITCH doesn't pass the user's password to the script.<br>
><br>
> The best solution I can think of is to enter the MD5 hash of the<br>
> password in the phone.<br>
><br>
> Does anyone have a better idea?<br>
><br>
><br>
> Mike van Lammeren<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>