* depend on bdb 4.3 or 4.4
authorWilfried Göesgens <willi@citadel.org>
Thu, 21 Dec 2006 01:58:17 +0000 (01:58 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 21 Dec 2006 01:58:17 +0000 (01:58 +0000)
* depend on the db4.4|3 util package, as it provides the stuff we need for the cleanup script
* ask for auth mode
* init pointer
* adjust configure call

citadel/debian/citadel-server.postinst
citadel/debian/citadel-server.templates
citadel/debian/control
citadel/debian/rules
citadel/serv_extensions.c

index 1cf746837928987797723df17c906ecd2e308bc8..9c2e09c9728ff358f66380fd4596d83118c97fce 100644 (file)
@@ -160,6 +160,12 @@ case "$1" in
 
        db_get citadel/Administrator && admin="$RET"
        db_get citadel/ServerIPAddress && ip_addr="$RET"
+       db_get citadel/LoginType && enable_unix_auth="$RET"
+       if test "$enable_unix_auth" = "true"; then
+           export ENABLE_UNIX_AUTH=yes
+       else
+           export ENABLE_UNIX_AUTH=no
+       fi
        export IP_ADDR=$ip_addr
        export CITADEL=''
        export CITADEL_INSTALLER=yes
@@ -169,21 +175,6 @@ case "$1" in
        export CREATE_INITTAB_ENTRY=no
        export NO_INIT_SCRIPTS=yes
        echo "applying your settings."
-# citadel home
-# sysadmin
-# uid
-# server ip
-# port
-# postfix?
-# exim?
-#      echo "/usr/sbin
-#$admin
-#citadel
-#$ip_addr
-#
-#no
-#no
-#" | \
        /usr/lib/citadel-server/setup -q
        if test -S /var/run/citadel/citadel.socket; then 
            /usr/sbin/sendcommand "DOWN"
@@ -194,7 +185,7 @@ case "$1" in
        done
 
        update-rc.d citadel defaults >/dev/null
-
+#      /etc/init.d/citadel start
        echo "run /etc/init.d/citadel start to start citadel service."
     #### There are three sub-cases:
     ###if test "${2+set}" != set; then
index 74188287611d33c29f138087edb6899fa895a358..dd59755f8fb681f36393f0b00f616b49a5131e7b 100644 (file)
@@ -8,6 +8,23 @@ Description: Listen IP for Citadel
   instances of Citadel on the same computer.
 
 
+Template: citadel/LoginType
+Type: boolean
+Default: false
+Description: Citadel Account Mode
+  Normally, a Citadel system uses a "black box" authentication mode.
+  This means that users do not have accounts or home directories on
+  the underlying host system -- Citadel manages its own user database.
+  However, if you wish to override this behavior, you can enable the
+  host based authentication mode which is traditional for Unix systems.
+  You will allso need host based authentication if you want to authenticate
+  against an ldap directory or another pam source for example.
+  WARNING: do *not* change this setting once your system is installed.
+  .
+  (Answer "no" unless you completely understand this option)
+  Do you want to enable host based authentication mode?
+
+
 Template: citadel/Administrator
 Type: string
 Default: Administrator
index 826797f3f2fa08037dc535c1141f2b971b8b96ac..0ea193cdcd561208724afb205b582fdbe46b2d62 100644 (file)
@@ -2,7 +2,7 @@ Source: citadel
 Section: mail
 Priority: optional
 Maintainer: Wilfried Goesgens <w.goesgens@chaosindutries.de>
-Build-Depends: debhelper (>= 4.0.0), libical-dev, autotools-dev, zlib1g-dev , libssl-dev, libncurses5-dev, libdb4.4-dev, libldap2-dev, libsasl2-dev, libgnutls-dev | libgnutls11-dev, libgcrypt11-dev, bison, libpam0g-dev, gettext, libdb3-util
+Build-Depends: debhelper (>= 4.0.0), libical-dev, autotools-dev, zlib1g-dev , libssl-dev, libncurses5-dev, libdb4.4-dev|libdb4.3-dev, libldap2-dev, libsasl2-dev, libgnutls-dev | libgnutls11-dev, libgcrypt11-dev, bison, libpam0g-dev, gettext, libsieve2-dev
 Standards-Version: 3.6.1
 
 Package: citadel-server
@@ -10,7 +10,7 @@ Architecture: any
 Pre-Depends: debconf
 Provides: pop3-server, imap-server
 Conflicts: pop3-server, imap-server
-Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, libical, libssl0.9.7, libncurses5, libdb4.4, libldap2, libsasl2, libgnutls | libgnutls11, libgcrypt11, libc6, libgpg-error0, ucf, libdb3-util
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, libical, libgnutls | libgnutls11, ucf, db4.4-util|db4.3-util
 Suggests: citadel-mta
 Description: Citadel is the good old BBS system grown up to a Groupware.
  Citadel is a different kind of messaging and collaboration platform. While 
index cec20b37bead5a6f13fceaaf63818081e17f5192..f3016b9f8822d7bf05079f5496acd2534d6cfa77 100755 (executable)
@@ -41,8 +41,10 @@ config.status: configure
                --with-datadir=/var/lib/citadel \
                --with-rundir=/var/run/citadel \
                --with-docdir=/usr/share/doc/citadel-doc/ \
-               --enable-autologin --with-pam \
-               --with-ical --with-db --with-ldap
+               --with-pam \
+               --with-ical \
+               --with-db \
+               --with-ldap
 
 
 #Architecture 
index 1934e0de008fe53a29b4410ce3774cae3a8404bc..428b47eef19a60cf12266b90790e78dcd7dd4f51 100644 (file)
@@ -565,6 +565,7 @@ void CtdlRegisterServiceHook(int tcp_port,
        char *message;
        char *error;
 
+       error = NULL;
        newfcn = (struct ServiceFunctionHook *)
            malloc(sizeof(struct ServiceFunctionHook));
        message = (char*) malloc (SIZ);