[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Public Add User Script



"Steven Depuydt - BeNe.WS" <steven@xxxxxxx> wrote:
> I am looking for a script (when possible in PHP) to Add (E-mail) Users.
>
> We want to make a form that can ask for an e-mail alias;
> then checks if the alias is free;
> when OK: adds the user with a random login & password and displays this on
> the screen.

I'm not familiar with any open source or commercial software that does what
you want on a RaQ server.  Perhaps someone else knows of some.  I don't want
to discourage you because it's certainly possible to build software that
does what you want.  I built software that did something similar for a
client a few months ago.  It allowed a special class of hosting customer to
create a user profile and manage email and web redirection accounts via a
password-protected web interface.  In other words, the customer could create
regular and catchall email aliases and manage forwarding to off-server email
addresses and the customer could setup the domain to point to an off-server
website.  I wrote it in PHP with a MySQL backend, running PHP scripts via a
CGI install called from cron (along with some bash shell commands and Cobalt
Perl scripts) to update root-owned Apache and sendmail files periodically
(and DNS also).  My solution *did not* create actual system users so the
customers could not use their account to login via SSH, telnet, FTP, etc.
and there was no webspace created on the server.  I should say that it took
a lot of tinkering to get some calls to shell commands and external Perl
scripts to work properly and I built in code to check when certain files
appeared to have a problem, revert to the last known good copy automatically
if a problem was suspected and notify the admin via email with details.  If
you are considering building the software yourself hopefully this will get
you started.  If you decide to build it and run into problems feel free to
contact me.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/