Changeset 1534 for branches/locker-dev


Ignore:
Timestamp:
Apr 1, 2010, 5:57:23 AM (12 years ago)
Author:
mitchb
Message:
Make procmail and cron try harder to actually mail the signup user

At present, we try to set up the initial crontab or procmailrc to
send mail to the user who signed a locker up for the cron or mail
service by stripping off the @REALM from the Kerberos principal.
We need to also strip non-null instances off to get the username.
(If you're doing signups for lockers using machine or service
principals, you ought to be able to fend for yourself.)
Location:
branches/locker-dev/locker/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/bin/signup-cron

    r1521 r1534  
    1010  fs sa /mit/$lname/cron_scripts daemon.scripts write
    1111  DATE=`date`
    12   signupuser=`echo "$principal" | sed 's/@.*$//'`
     12  signupuser=`echo "$principal" | sed 's/[/@].*$//'`
    1313  sed '/SCRIPTS_USER/s//'"$lname"'/g' /mit/scripts/bin$scriptsdev/crontab | sed '/ATHENA_USER/s//'"$signupuser"'/g' | sed '/SCRIPTS_DATE/s//'"$DATE"'/g' > /mit/$lname/cron_scripts/crontab
    1414  echo "By default, output from cron jobs for the $lname locker will be mailed"
  • branches/locker-dev/locker/bin/signup-mail

    r1087 r1534  
    99  fs sa /mit/$lname/mail_scripts system:authuser none
    1010  fs sa /mit/$lname/mail_scripts daemon.scripts read
    11   signupuser=`echo "$principal" | sed 's/@.*$//'`
     11  signupuser=`echo "$principal" | sed 's/[/@].*$//'`
    1212  sed /SCRIPTS_USER/s//$signupuser/ /mit/scripts/bin/procmailrc > /mit/$lname/mail_scripts/procmailrc
    1313  echo "By default, mail sent to $lname@scripts.mit.edu will be forwarded to"
Note: See TracChangeset for help on using the changeset viewer.