From 325545982db50d8f2f9687c026712535dc568327 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 12 Oct 2005 03:15:27 +0000 Subject: [PATCH] * Default for autologin is now DISABLED! If you are upgrading an existing site and are using this function, you must --enable-autologin * newinstall.sh: --enable-autologin if upgrading an existing installation that we think is set to autologin. It checks for chkpwd to find out. --- citadel/ChangeLog | 6 ++++++ citadel/configure.ac | 4 ++-- citadel/newinstall.sh | 21 ++++++++++++++++++--- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index df6aa0f0d..df71387e9 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 11 23:13:53 EDT 2005 Art Cancro +* Default for autologin is now DISABLED! If you are upgrading an existing + site and are using this function, you must --enable-autologin +* newinstall.sh: --enable-autologin if upgrading an existing installation + that we think is set to autologin. It checks for chkpwd to find out. + Tue Oct 11 12:55:43 EDT 2005 Art Cancro * The "set the flags" portion of IMAP COPY now sets the flags of all messages in bulk, instead of one message at a time. Big performance boost. diff --git a/citadel/configure.ac b/citadel/configure.ac index b332cbc1e..ab51500e7 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -84,7 +84,7 @@ AC_ARG_WITH(docdir, -AC_ARG_ENABLE(autologin, [ --disable-autologin disable autologin (default is enabled if possible)]) +AC_ARG_ENABLE(autologin, [ --enable-autologin enable autologin (default is disabled)]) AC_ARG_ENABLE(chkpwd, [ --disable-chkpwd don't build 'chkpwd']) AC_ARG_ENABLE(threaded-client, [ --disable-threaded-client @@ -261,7 +261,7 @@ AC_CHECK_LIB(rt, sched_yield) dnl Determine the system's authentication capabilities, if autologin is dnl requested. We currently support PAM, standard getpwnam(), and getspnam() dnl (Linux shadow passwords) -if test "$enable_autologin" != no; then +if test "$enable_autologin" = yes; then if test "$with_pam" = yes; then save_LIBS=$LIBS AC_CHECK_LIB(pam, pam_start, [chkpwd_LIBS="-lpam $chkpwd_LIBS" diff --git a/citadel/newinstall.sh b/citadel/newinstall.sh index a1c34f813..4548a7fcc 100644 --- a/citadel/newinstall.sh +++ b/citadel/newinstall.sh @@ -92,6 +92,7 @@ MAKEOPTS="" # CFLAGS C compiler flags # LDFLAGS Linker flags # IS_UPGRADE Set to "yes" if upgrading an existing Citadel +# IS_AUTOLOGIN Set to "yes" to force enabling autologin # CTDL_DIALOG Where (if at all) the "dialog" program may be found # Let Citadel setup recognize the Citadel installer @@ -264,11 +265,16 @@ install_sources () { cd $BUILD 2>&1 >>$LOG || die ( gzip -dc $CITADEL_SOURCE | tar -xvf - ) 2>&1 >>$LOG || die cd $BUILD/citadel 2>&1 >>$LOG || die + if [ x$IS_AUTOLOGIN = xyes ] ; then + AL="--enable-autologin" + else + AL="" + fi if [ -z "$OK_DB" ] then - ./configure --prefix=$CITADEL --with-db=$SUPPORT --with-pam --enable-autologin --with-libical --disable-threaded-client 2>&1 >>$LOG || die + ./configure --prefix=$CITADEL --with-db=$SUPPORT --with-pam $AL --with-libical --disable-threaded-client 2>&1 >>$LOG || die else - ./configure --prefix=$CITADEL --with-db=$OK_DB --with-pam --enable-autologin --with-libical --disable-threaded-client 2>&1 >>$LOG || die + ./configure --prefix=$CITADEL --with-db=$OK_DB --with-pam $AL --with-libical --disable-threaded-client 2>&1 >>$LOG || die fi $MAKE $MAKEOPTS 2>&1 >>$LOG || die if [ $IS_UPGRADE = yes ] @@ -317,7 +323,6 @@ do_config () { if [ x$IS_UPGRADE == xyes ] ; then echo Upgrading your existing Citadel installation. - #$CITADEL/setup -q || die $CITADEL/setup