[Moin-user] need script for creating users from group pages [was "Re: moin ACL"]

Thomas Waldmann tw-public at gmx.de
Fri Jul 21 10:48:52 EDT 2006

> I found this script,
>     http://moinmoin.wikiwikiweb.de/MoinMoinQuestions/Administration?action=AttachFile&do=get&target=moin_useradd.py
> to add a single user.  It prompts for the password.
In 1.5.4 there is also moin ... account create --name=xxx --alias=yyy 
--email=zzz --password=!!!

> I'd like to modify this so that it takes a password as stdin or
> command line argument, checks whether the account exists or not before
> modifying the password,
You have to check what happens for that case.
> and if the UserName page doesn't exist, it
> will create a default page using text from a file (specified as the
> argument of a -f option).  If the account was created, I'd like it to
> mail the user (and the administrator) with the new password, and tell
> the user & admin in that email whether a default page was created and
> with what text.
You could add some options for this.

More information about the Moin-user mailing list