# $Cambridge: hermes/src/prayer/accountd/accountd-freebsd.cf,v 1.1.1.1 2003/04/15 13:00:02 dpc22 Exp $
# Prayer - a Webmail Interface
#
# Copyright (c) University of Cambridge 2000 - 2002
# See the file NOTICE for conditions of use and distribution.
#
# Accountd configuration suitable for FreeBSD

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

# While debugging
child_timeout       = 0

# Authtype options:
# PAM (preferred where available)
# pwd        :: Passwords accessed via getpwnam(), old fashioned crypt
# pwd_md5    :: Passwords accessed via getpwnam(), GNU md5 crypt
# shadow     :: Passwords accessed via getspnam(), old fashioned crypt
# shadow_md5 :: Passwords accessed via getspnam(), GNU md5 crypt
#
authtype = pam

# Password changing - FreeBSD defaults
pwd_cmdline         = "/usr/bin/passwd"
pwd_script =                          \
  readline                            \
  expect   "Old password:"            \
  sendline "$old"                     \
  expect   "New password:"            \
  sendline "$new"                     \
  expect "Retype new password:"       \
  sendline "$new"                     \
  expect "passwd: updating the database...\n" \
  expect "passwd: done\n"

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

# Fullname changing
full_cmdline = "/bin/echo Script still needs to be written"
full_script  = "result"

# 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"

