<div dir="ltr">Hi ,<div><br></div><div>| id | username | domain           | password   | email_address | ha1 | ha1b | rpid |<br>|  1 | sasmita  | <a href="http://reg1-10x.i3clogic.com">reg1-10x.i3clogic.com</a> | sasmita123  |               |     |      | NULL |<br>|  2 | somanshu | <a href="http://reg2-10x.i3clogic.com">reg2-10x.i3clogic.com</a> |  somu1234   |            |     |      | NULL |</div><div><br></div><div>loadmodule "auth_db.so"<br>modparam("auth_db", "db_url", "mysql://root:cccl0g1c@localhost/opensips")<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "user_column", "username")<br>modparam("auth_db", "domain_column", "domain")<br>modparam("auth_db", "password_column", "password")<br></div><div>modparam("auth_db", "use_domain", 1)  <br></div><div>route{ ........................</div><div>                        if (!www_authorize(" ", "subscriber")) {<br>                                        www_challenge(" ", "1");<br>                                exit;<br>                         };<br>                        consume_credentials();<br></div><div>}</div><div><br></div><div>If I am maikng use_domain=1 , then the authentication fails . If I am commenting this line the Authentication is successful . Why so ? I have multi domain setup so I need to verify the domain part also with the username and password. Please do help  if I am missing something. </div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><b><i><br></i></b></div><div dir="ltr"><b><i><br></i></b></div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div></div>