Move the bulk (or guts) of newuser and newproject from the web
interface to the backend. There are new scripts that can be called from the command line: newuser xmlfile newproj xmlfile They both run from small xmlfiles that are generated by the web interface from the form data. I also moved user verification to the backend so that we do not have duplicated email functions, but that was a small change. Upon error, the xmlfile is saved and sent to tbops so that we can rerun the command by hand, rather then force user to fill out form again. I also do a better job of putting the form back up intact when there are internal errors. If the user provides an initial public key, that is put into the xml file as well and addpubkey is called from newuser instead of the web interface. A more general change to addpukey is that it is now *always* called as "nobody". This script was a morass of confusion cause of having to call it as nobody before the user actually exists. In fact, another of my ongoing projects is to reduce the number of scripts called as a particular user, but thats a story for another day. Anyway, the script is always called as nobody, but we pass along the implied user in the environment so that it can do permission checks.
Showing
- Makeconf.in 2 additions, 1 deletionMakeconf.in
- account/GNUmakefile.in 4 additions, 2 deletionsaccount/GNUmakefile.in
- account/addpubkey.in 17 additions, 16 deletionsaccount/addpubkey.in
- account/newproj.in 306 additions, 0 deletionsaccount/newproj.in
- account/newuser.in 449 additions, 0 deletionsaccount/newuser.in
- account/tbacct.in 37 additions, 3 deletionsaccount/tbacct.in
- db/User.pm.in 2 additions, 2 deletionsdb/User.pm.in
- sql/database-fill.sql 8 additions, 0 deletionssql/database-fill.sql
- www/defs.php3.in 8 additions, 12 deletionswww/defs.php3.in
- www/deletepubkey.php3 2 additions, 2 deletionswww/deletepubkey.php3
- www/joinproject.php3 43 additions, 137 deletionswww/joinproject.php3
- www/newproject.php3 67 additions, 265 deletionswww/newproject.php3
- www/project_defs.php 70 additions, 0 deletionswww/project_defs.php
- www/showpubkeys.php3 3 additions, 3 deletionswww/showpubkeys.php3
- www/user_defs.php 75 additions, 0 deletionswww/user_defs.php
- www/verifyusr.php3 10 additions, 175 deletionswww/verifyusr.php3
- www/widearea_register.php 3 additions, 3 deletionswww/widearea_register.php
Loading
Please register or sign in to comment