1. 22 Mar, 2010 1 commit
    • Leigh Stoller's avatar
      Finish up user deletion. The big visible change is that when a user is · 2965922b
      Leigh Stoller authored
      deleted, they still remain in the user table with a status of
      "archived", but since all the queries in the system now use uid_idx
      instead of uid, it is safe to reuse a uid since they are no longer
      ambiguous. 
      
      The reason for not deleting users from the users table is so that the
      stats records can refer to the original record (who was that person
      named "mike"). This is very handy and worth the additional effort it
      has taken.
      
      There is no way to ressurect a user, but it would not be hard to add.
      2965922b
  2. 27 Apr, 2006 1 commit
  3. 15 Oct, 2003 1 commit
    • Mike Hibler's avatar
      Uniform syslog'ing. Change everything I could find to use a syslog facility · cc6d6fa7
      Mike Hibler authored
      as defined in the defs-* file (e.g. "TBLOGFACIL=local2").  The default is
      "local5" which is what we are setup to use so you shouldn't need to mess
      with your defs- file!
      
      perl scripts just get this value configured in when configure is run.
      C programs get the value in two ways.  For programs that are intimate with
      the testbed infrastructure, and include "config.h", they just get it from
      that file.  For programs that we sometimes use outside the Emulab build
      environment (e.g., frisbee, capture) and that don't include config.h,
      the value is set via a "-DLOG_TESTBED=..." in the GNUmakefile build line.
      If the value isn't set, it defaults to what it used to be (usually LOG_USER).
      
      Still to do: healthd, hmcd (whose build doesn't seem to be completely
      integrated) and plabdaemon.in (since its icky python :-)
      cc6d6fa7
  4. 30 Jan, 2003 1 commit
  5. 07 Jul, 2002 1 commit
  6. 16 Apr, 2002 1 commit
  7. 15 Apr, 2002 1 commit
  8. 15 Mar, 2002 1 commit
  9. 07 Mar, 2002 1 commit
  10. 08 Jan, 2002 1 commit
    • Leigh Stoller's avatar
      Fix up genlastlog to avoid Y2K like problems. Basically, syslog does · cb096341
      Leigh Stoller authored
      not include a year in the output, so I was using the current year to
      init the tm structure. However, the log file could span from the old
      year to the new year, and so all the dates could be wrong. Using Mac's
      suggestion, look at the final time stamp, and if its in the future,
      reset it back one year.
      
      Also add [-a #] option to roll through the specified number of
      rotation files, to make the job of reinitting all the records easier.
      I ran it as "genlastlog -a 7", which makes it process logins.7.gz
      through logins.0.gz, before doing the current log.
      cb096341
  11. 30 Oct, 2001 1 commit
  12. 29 Oct, 2001 1 commit
    • Leigh Stoller's avatar
      A bunch of lastlogin changes! The user and experiment information · 4658545e
      Leigh Stoller authored
      pages now show the lastlogin info that is gathered from sshd syslog
      reporting to users. That info is parsed by security/genlastlog.c, and
      entered into the DB in the nodeuidlastlogin and uidnodelastlogin
      tables. If not obvious from the names, for each user we want the last time
      they logged in anyplace, and for each node we want the last time anyone
      logged into it. The latter is obviously more useful for scheduling
      purposes. All of the various images have new /etc/syslog.conf files,
      and the 6.2 got new sshd_configs (all cvsup'ed with kill -HUP). There
      is an entry in boss:/etc/crontab and users:/etc/syslog.conf. All of
      this is decribed in greater detail in security/genlastlog.c.
      4658545e