<!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.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'd like to add that I have added:</FONT></DIV>
<DIV><FONT face=Arial size=2>1. domains using serctl domain add</FONT></DIV>
<DIV><FONT face=Arial size=2>2. added users for domain a&nbsp;and users for 
domain b</FONT></DIV>
<DIV><FONT face=Arial size=2>3. each user is 
authenticated&nbsp;without&nbsp;relation with the domain</FONT></DIV>
<DIV><FONT face=Arial size=2>4. each user that&nbsp;is present in domain a and 
domain b get authentication failed (registering in domain a&nbsp;and 
registrering in doamin b);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks again.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Rosario</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=rpingar@italycom.it href="mailto:rpingar@italycom.it">Rosario Pingaro</A> 
</DIV>
<DIV><B>To:</B> <A title=serusers@lists.iptel.org 
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV><B>Sent:</B> Sunday, June 12, 2005 5:04 PM</DIV>
<DIV><B>Subject:</B> [Serusers] Multiple Domain Problem ser0.9.2</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I'd like to&nbsp;configure SER to host two 
different domains; the domains are into the hst file of the linux 
machine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The problem is that SER autheticates the users 
indifferently from the domain (I have enabled use_domain on both registrar and 
userloc), also if an user is present on both domains i got an authentication 
failed.</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't have alias because the doamin ar einto the 
linux' host file.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I remove a domain from the file and don't make 
an alias I get an error about "too many hops" because ser doesn't recognize as 
myself.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please may you halp me to debug?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Rosario</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>These are some part of my ser.cfg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>#debug=6<BR>fork=yes<BR>log_stderror=no</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: 
-v)<BR>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
(cmd. line: -r)<BR>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: 
-R)<BR>port=5060<BR>children=4<BR>fifo="/tmp/ser_fifo"<BR>fifo_mode=0666<BR>fifo_db_url="mysql://ser:hesloimgs@ns2.italycomnet.it/ser"<BR>listen=213.178.216.45</DIV>
<DIV>&nbsp;</DIV>
<DIV>modparam("domain", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("domain", "db_mode", 
1)<BR>modparam("domain", "domain_table", "domain")<BR>modparam("domain", 
"domain_col", "domain")<BR>modparam("permissions", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("permissions", "db_mode", 
1)<BR>modparam("permissions", "trusted_table", "trusted")<BR>modparam("uri_db", 
"db_url", "mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("usrloc", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("usrloc", "db_mode", 
1)<BR>modparam("usrloc", "use_domain",1)<BR>modparam("auth_db", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("auth_db", "calculate_ha1", 
yes)<BR>modparam("auth_db", "password_column", 
"password")<BR>modparam("registrar", "nat_flag", 6)<BR>modparam("registrar", 
"use_domain",1)<BR>modparam("nathelper", "natping_interval", 
0)&nbsp;<BR>modparam("nathelper", "rtpproxy_disable", 1) 
<BR>modparam("mediaproxy","natping_interval",30)<BR>modparam("acc", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>modparam("acc", "db_flag", 
1)<BR>modparam("acc", "db_missed_flag", 1)<BR>modparam("acc", 
"failed_transactions", 1)<BR>modparam("acc", "report_cancels", 
1)<BR>modparam("acc", "log_fmt", "cdfimorstup")<BR>modparam("acc", "log_level", 
1)<BR>modparam("acc", "report_ack", 1)<BR>modparam("rr", "enable_full_lr", 
1)<BR>modparam("tm", "fr_timer", 40)<BR>modparam("tm", "fr_inv_timer", 
60)<BR>modparam("tm", "fr_inv_timer_avp", "inv_timeout")<BR>modparam("tm", 
"wt_timer", 5)<BR>modparam("group", "db_url", 
"mysql://ser:heslo@xxx.xxxxxx.it/ser")<BR>#</DIV>
<DIV><BR>route[2] {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("100", "ci 
provo...");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!search("^Contact:\ +\*") &amp;&amp; client_nat_test("7"))&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setflag(6);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fix_nated_register();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
force_rport();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!www_authorize("", 
"subscriber")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
www_challenge("", 
"0");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>route[3] {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(client_nat_test("3")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setflag(7);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
force_rport();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fix_nated_contact();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method=="INVITE" &amp;&amp; 
!allow_trusted()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!proxy_authorize("", "subscriber")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
proxy_challenge("", 
"0");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
} else if (!check_from()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("403","Setta 
From=ID");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
consume_credentials();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
lookup("aliases");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(uri!=myself) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(5);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!lookup("location") 
&amp;&amp; !isflagset(4)) {<BR></DIV>
<DIV></FONT>&nbsp;</DIV>
<P>
<HR>

<P></P>_______________________________________________<BR>Serusers mailing 
list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BODY></HTML>