# $Cambridge: hermes/src/prayer/files/etc.hermes/prayer-accountd.cf,v 1.1 2004/06/18 13:51:07 dpc22 Exp $
#
# Prayer - a Webmail Interface
#
# Copyright (c) University of Cambridge 2000 - 2002
# See the file NOTICE for conditions of use and distribution.
#
# Default accountd.cf file suitable for RedHat Linux only.
# See distribution for some sample files for FreeBSD and Solaris

msforward_name      = ".MSforward"
forward_name        = ".forward"
aliases_name        = "vacation.aliases"
filter_restricted   = FALSE

# While debugging
child_timeout       = 0

# Password changing - Linux defaults. (Warning: Strange race condition with
# Linux passwd program. Following only works some of the time...
pwd_cmdline         = "/usr/bin/passwd"
pwd_script =                           \
  readline                             \
  readline                             \
  expect   "(current) UNIX password: " \
  sendline "$old"                      \
  expect   "New password: "            \
  sendline "$new"                      \
  expect "Retype new password: "       \
  sendline "$new"                      \
  expect "passwd: all authentication tokens updated successfully."

# Fullname checking
checkfull_cmdline = "/bin/echo Script still needs to be written"
checkfull_script  = "result"

# Fullname changing
full_cmdline = "/usr/bin/chfn -f ${newname}"
full_script =            \
  readline               \
  expect "Password: "    \
  sendline "$password"   \
  expect "Finger information changed."

# Quota check
quota_cmdline       = "fquota -v"
quota_hermes        = FALSE

# SSL configuration, if required
#use_ssl             = T
#ssl_cert_file       = "/usr/local/prayer/certs/prayer.pem"
#ssl_dh_file         = "/usr/local/prayer/certs/prayer.pem"
#ssl_rsakey_lifespan = 10m
#egd_socket          = "/var/prngd/urandom"

