<!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 and users for
domain b</FONT></DIV>
<DIV><FONT face=Arial size=2>3. each user is
authenticated without relation with the domain</FONT></DIV>
<DIV><FONT face=Arial size=2>4. each user that is present in domain a and
domain b get authentication failed (registering in domain a and
registrering in doamin b);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thanks again.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Rosario</FONT></DIV>
<DIV> </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 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> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>Please may you halp me to debug?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Rosario</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>These are some part of my ser.cfg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>#debug=6<BR>fork=yes<BR>log_stderror=no</DIV>
<DIV> </DIV>
<DIV><BR>check_via=no # (cmd. line:
-v)<BR>dns=no #
(cmd. line: -r)<BR>rev_dns=no # (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> </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) <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>
sl_send_reply("100", "ci
provo...");<BR> if
(!search("^Contact:\ +\*") && client_nat_test("7"))
{<BR>
setflag(6);<BR>
fix_nated_register();<BR>
force_rport();<BR> };</DIV>
<DIV> </DIV>
<DIV> if (!www_authorize("",
"subscriber"))
{<BR>
www_challenge("",
"0");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>route[3] {<BR> if
(client_nat_test("3")){<BR>
setflag(7);<BR>
force_rport();<BR>
fix_nated_contact();<BR>
};<BR> if (method=="INVITE" &&
!allow_trusted())
{<BR>
if (!proxy_authorize("", "subscriber"))
{<BR>
proxy_challenge("",
"0");<BR>
break;<BR>
} else if (!check_from())
{<BR>
sl_send_reply("403","Setta
From=ID");<BR>
break;<BR>
};<BR>
consume_credentials();<BR>
};<BR>
lookup("aliases");<BR> if
(uri!=myself)
{<BR>
route(5);<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (!lookup("location")
&& !isflagset(4)) {<BR></DIV>
<DIV></FONT> </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>