Here is a little script I use: adduser.cgi

#!/bin/sh
#
# CGI Utility for adding users via Dynaportal/TSI
#
# Created by: James Beam - BiznizWEB, Inc.  08/20/2000

read STDIN
QUERY_STRING=`echo $STDIN`

USER=`echo $QUERY_STRING | cut -d"&" -f1 | cut -d"=" -f2`
PASSWORD=`echo $QUERY_STRING | cut -d"&" -f2 | cut -d"=" -f2`

/mail/bin/vadduser $USER $PASSWORD

exit 0

I run that apache virtual as vpopmail.vchkpw and it works like a charm.

To delete a user: deluser.cgi

#!/bin/sh
#
# CGI Utility for deleting users via Dynaportal/TSI
#
# Created by: James Beam - BiznizWEB, Inc.  08/20/2000

read STDIN
QUERY_STRING=`echo $STDIN`

USER=`echo $QUERY_STRING | cut -d"&" -f1 | cut -d"=" -f2`

/mail/bin/vdeluser $USER

exit 0

To change a user password: password.cgi

#!/bin/sh
#
# CGI Utility for changing passwords via Dynaportal/TSI
#
# Created by: James Beam - BiznizWEB, Inc.  08/20/2000

read STDIN
QUERY_STRING=`echo $STDIN`

USER=`echo $QUERY_STRING | cut -d"&" -f1 | cut -d"=" -f2`
PASSWORD=`echo $QUERY_STRING | cut -d"&" -f2 | cut -d"=" -f2`

/mail/bin/vpasswd $USER $PASSWORD

exit 0


Hope this helps!

James Beam
ASP/Network Operations
BiznizWEB, Inc. / Touch PLc

----- Original Message -----
From: "Kim Andersson" <[EMAIL PROTECTED]>
To: "Vpopmail" <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 8:49 AM
Subject: small cgi to add users with needed


> Hi!
>
> I need a cgi script that could be called from an other program or script
> that would work like this;
>
>
http://myserver.domain.com/cgi-bin/somescript.cgi?username=somebody&domain=s
> ome.domain&password=password
>
> and the cgi would then pass on the arguments to vadduser and create the
new
> user.
>
> Is this possible already with vqsignup or the kind or is it difficult to
do
> for a non programmer?
>
> Thanks,
>
> Kim
>
>

Reply via email to