Index: [Article Count Order] [Thread]

Date:  Fri, 11 Aug 2006 11:35:07 -0600
From:  "Jeff" <jeff (at mark) skislave.com>
Subject:  [coba-e:06322] Re: New Feature Addon
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <008f01c6bd6c$812374e0$3201a8c0@wjs>
In-Reply-To:  <Pine.LNX.4.63.0608111245360.10200 (at mark) mail.nuonce.net>
X-Mail-Count: 06322

Sweet...I was thinking about this same thing.  I'll try it out.  However,
what would be cool, is the ability to enable/disable the feature like other
vsite features.  (Not all customers are savvy enough to edit DNS.)

-----Original Message-----
From: Brian N. Smith [mailto:brian (at mark) nuonce.net] 
Sent: Friday, August 11, 2006 11:01 AM
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:06321] New Feature Addon

To all.

DO NOT RUN THIS ON A PRODUCTIO BOX.  If you do, and it breaks anything, do 
not cry to me!!!  You have been warned!!!

This is as I like to say, a bit experimental.  I have worked on it for the 
last couple of days and I feel it worthy of atleast beta testing.

Feature:

   DNS Admin via the Siteadmin level.

   Allow the site admins to control their own DNS.  I feel this is great 
feature, but I am not a hosting provider, so I do not know what people 
look for.

   The only bad downside I see is that they essentially can restart the DNS 
server whenever they want.  This behavior can probably be changed rather 
easy.

It does offer some security.  I.E.  hopefully they should not be able to 
jump domains.  I.E.  be in "abc.com" and modify "xyz.net".  It pulls the 
domain from the site admin who is logged in.  So, in theory, they should 
not be able to mess with other people's domains.

Outside of that, if you are interested in trying this on a NON PRODUCTION 
machine the directions are down below.  I say NON PRODUCTION because I do 
not want to read this in my inbox.

I installed this, my server is down, I am loosing money because of you.

I have a filter that will /dev/null that e-mail :) and I will never know 
about it (kidding).

#1 - Backup your files!  The following files are over written:

tar cfvpz /my-backup.tgz \
   /usr/sausalito/handlers/base/dns/validate_dnsrecords.pl \
   /usr/sausalito/ui/web/base/user/userMod.php \
   /usr/sausalito/ui/web/base/user/userModHandler.php \
   /usr/sausalito/ui/menu/base/dns/base-dns-vsite.xml \
   /usr/sausalito/schemas/base/dns/dns.schema \
   /usr/sausalito/constructor/base/alpine/setup_capabilities.pl \
   /usr/share/locale/en/LC_MESSAGES/base-user.mo

#2 - Download the new files and extract them.

cd /
wget http://www.nuonce.net/bq-vsite-dns-addon.tgz
tar xfvpz bq-vsite-dns-addon.tgz

#3 - Restart Sausalito & Admserv

service cced.init restart
service admserv restart

#4 - Log in as Admin, change someone to dnsAdmin.  Then log in as that 
user and play around.

#5 - If you find a bug.  Try to document the steps you did to make it 
happen.  I would appreciate that more then, "It doesn't work".  I will 
ignore those too.

Now, if it does break, or you do not want it

cd /
tar xfvpz my-backup.tgz
service cced.init restart
service admserv restart

Then it is GONE.  If all goes well with this Beta trial, and if anyone has 
any enhancement ideas, let me know.  I will ask the big man if I can 
commit it to CVS.

-- 
Brian N. Smith
NuOnce Networks, Inc.
=-=-=-=-=-=-=-=-=-=-=
http://www.nuonce.net
P: (321) 574-5227
F: (321) 574-0554
E: brian (at mark) nuonce.net