<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am trying to bring up the anthentication module. 
Here are the list of what I have done.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1. Create MySQL tables and modify the permissions 
(SER could connect MySQL successfully)</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Modify SER configuration (See 
below)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>loadmodule 
"//usr/lib/ser/modules/mysql.so"</FONT></DIV>
<DIV><FONT face=Arial size=2>loadmodule 
"//usr/lib/ser/modules/auth.so"</FONT></DIV>
<DIV><FONT face=Arial size=2>modparam("usrloc", "db_url", 
"sql://ser:heslo@localhost/ser")<BR>modparam("usrloc", "db_mode", 
2)</FONT></DIV>
<DIV><FONT face=Arial size=2>modparam("auth", "db_url", 
"sql://ser:heslo@localhost/ser")<BR>modparam("auth", "user_column", 
"user_id")<BR>modparam("auth", "calculate_ha1", yes)<BR>modparam("auth", 
"password_column", "password")<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(uri=~"sip\.abcd\.com") 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (method=="REGISTER") {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Uncomment this if you want to use digest 
authentication<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>After all these changes, SER could start without 
problem. But it seems that the Auth module doesn't take effect. For whatever 
username/password (whether it's included in the subscriber table or not), SER 
just allow the registration.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What maybe the problem? Is there anything wrong 
with the configuration?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks.</DIV></FONT></BODY></HTML>