I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
Regards Tony
Tony Sarendal wrote:
I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
it's correct, but is not sufficient.. you need also to adapt your config file.
bogdan
On Fri, Jul 30, 2004 at 10:22:13AM +0200, Bogdan-Andrei IANCU wrote:
Tony Sarendal wrote:
I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
it's correct, but is not sufficient.. you need also to adapt your config file.
That part was done, I was just wondering if the direct approach was correct. Everything works now, good stuff.
Is the same username but different domains supported ? Or should I use aliases and unique usernames instead ?
/Tony
bogdan
Tony Sarendal wrote:
On Fri, Jul 30, 2004 at 10:22:13AM +0200, Bogdan-Andrei IANCU wrote:
Tony Sarendal wrote:
I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
it's correct, but is not sufficient.. you need also to adapt your config file.
That part was done, I was just wondering if the direct approach was correct. Everything works now, good stuff.
Is the same username but different domains supported ?
Or should I use aliases and unique usernames instead ?
you can use the same username for different domains, but be careful and enable the "use_domain" param for the modules you use (ex: usrloc, registrar) - Note, not all modules have this param.
bogdan
/Tony
bogdan
On Fri, Jul 30, 2004 at 11:01:59AM +0200, Bogdan-Andrei IANCU wrote:
Or should I use aliases and unique usernames instead ?
you can use the same username for different domains, but be careful and enable the "use_domain" param for the modules you use (ex: usrloc, registrar) - Note, not all modules have this param.
Everything seems to be working, except the below. ---
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl add testuser testis testuser@test1.se MySql password: new user added ser@gabrielle$ export SIP_DOMAIN=test2.se ser@gabrielle$ serctl add testuser testis testuser@test2.se MySql password: new user added ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; +----------+----------+ | username | domain | +----------+----------+ | testuser | test1.se | | testuser | test2.se | +----------+----------+ 2 rows in set (0.02 sec)
mysql>
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl rm testuser MySql password: ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; Empty set (0.00 sec)
mysql> ---
Both users disapeared after serctl rm testuser.
/Tony
ok - I will take a look. what ser ver is? cvs? rpms? bogdan
Tony Sarendal wrote:
On Fri, Jul 30, 2004 at 11:01:59AM +0200, Bogdan-Andrei IANCU wrote:
Or should I use aliases and unique usernames instead ?
you can use the same username for different domains, but be careful and enable the "use_domain" param for the modules you use (ex: usrloc, registrar) - Note, not all modules have this param.
Everything seems to be working, except the below.
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl add testuser testis testuser@test1.se MySql password: new user added ser@gabrielle$ export SIP_DOMAIN=test2.se ser@gabrielle$ serctl add testuser testis testuser@test2.se MySql password: new user added ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; +----------+----------+ | username | domain | +----------+----------+ | testuser | test1.se | | testuser | test2.se | +----------+----------+ 2 rows in set (0.02 sec)
mysql>
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl rm testuser MySql password: ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; Empty set (0.00 sec)
mysql>
Both users disapeared after serctl rm testuser.
/Tony
On Fri, Jul 30, 2004 at 11:48:16AM +0200, Bogdan-Andrei IANCU wrote:
ok - I will take a look. what ser ver is? cvs? rpms? bogdan
ser-0.8.14.tar.gz
ser@gabrielle$ ser -V version: 0.8.14 (i386/freebsd) flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 @(#) $Id: main.c,v 1.168.4.3 2004/06/28 15:41:21 andrei Exp $ main.c compiled on 23:45:27 Jul 29 2004 with gcc 2.95 ser@gabrielle$
/Tony
Tony Sarendal wrote:
On Fri, Jul 30, 2004 at 11:01:59AM +0200, Bogdan-Andrei IANCU wrote:
Or should I use aliases and unique usernames instead ?
you can use the same username for different domains, but be careful and enable the "use_domain" param for the modules you use (ex: usrloc, registrar) - Note, not all modules have this param.
Everything seems to be working, except the below.
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl add testuser testis testuser@test1.se MySql password: new user added ser@gabrielle$ export SIP_DOMAIN=test2.se ser@gabrielle$ serctl add testuser testis testuser@test2.se MySql password: new user added ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; +----------+----------+ | username | domain | +----------+----------+ | testuser | test1.se | | testuser | test2.se | +----------+----------+ 2 rows in set (0.02 sec)
mysql>
ser@gabrielle$ export SIP_DOMAIN=test1.se ser@gabrielle$ serctl rm testuser MySql password: ser@gabrielle$
mysql> select username,domain from subscriber where username like 'test%'; Empty set (0.00 sec)
mysql>
Both users disapeared after serctl rm testuser.
/Tony
At 10:50 AM 7/30/2004, Tony Sarendal wrote:
On Fri, Jul 30, 2004 at 10:22:13AM +0200, Bogdan-Andrei IANCU wrote:
Tony Sarendal wrote:
I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
it's correct, but is not sufficient.. you need also to adapt your config file.
That part was done, I was just wondering if the direct approach was correct. Everything works now, good stuff.
Is the same username but different domains supported ?
no: tony@foobar.com != tony@foobar.net
Or should I use aliases and unique usernames instead ?
maybe, even though writing some code for domain canonization may be less tedious.
-jiri
try to use serctl/sc from CVS/development branch. What it does is it updates mysql tables and forces their reload in server's cache using a FIFO command.
-jiri
At 12:19 AM 7/30/2004, Tony Sarendal wrote:
I'm trying out this what looks like nice software while the kids are sleeping.
I just installed 0.8.14 and I'm messing around with getting multiple domains to play. What is the correct way to update the table domain ? Just an INSERT directly into the database ?
Regards Tony
--
Tony Sarendal - tony.sarendal@polarcap.org Cisco/Unix/Babies -= The scorpion replied, "I couldn't help it, it's my nature." =-
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/