Difference between revisions of "Courier-Authlib"

From CBLFS
Jump to navigationJump to search
(Configuring)
(Configuring)
 
(One intermediate revision by the same user not shown)
Line 47: Line 47:
 
== Configuring ==
 
== Configuring ==
 
<pre>
 
<pre>
cat > /etc/rc.d/init.d/authdaemond << "EOF"
+
cat > /etc/rc.d/init.d/authdaemond << "EOF"
#!/bin/sh
+
#!/bin/sh
# Begin $rc_base/init.d/authdaemond
+
# Begin $rc_base/init.d/authdaemond
  
# Based on sysklogd script from LFS-3.1 and earlier.
+
# Based on sysklogd script from LFS-3.1 and earlier.
 
+
#$LastChangedBy: zippo
#$LastChangedBy: zippo
+
#$Date: 2009-04-30 15:31:59  
#$Date: 2009-04-30 15:31:59  
 
  
 
  . /etc/sysconfig/rc
 
  . /etc/sysconfig/rc
 
  . $rc_functions
 
  . $rc_functions
  
case "$1" in
+
case "$1" in
    start)
+
  start)
        boot_mesg "Starting AUTHDAEMOND Server..."
+
      boot_mesg "Starting AUTHDAEMOND Server..."
        /usr/sbin/authdaemond start
+
      /usr/sbin/authdaemond start
        evaluate_retval
+
      evaluate_retval
        ;;
+
      ;;
 
 
    stop)
 
        boot_mesg "Stopping AUTHDAEMONF Server..."
 
        /usr/sbin/authdaemond stop
 
        evaluate_retval
 
        ;;
 
  
    reload)
+
  stop)
        boot_mesg "Reloading AUTHDAEMOND Server..."
+
      boot_mesg "Stopping AUTHDAEMONF Server..."
        /usr/sbin/authdaemond restart
+
      /usr/sbin/authdaemond stop
        evaluate_retval
+
      evaluate_retval
        ;;
+
      ;;
  
    restart)
+
  reload)
        $0 stop
+
      boot_mesg "Reloading AUTHDAEMOND Server..."
        sleep 1
+
      /usr/sbin/authdaemond restart
        $0 start
+
      evaluate_retval
        ;;
+
      ;;
  
    *)
+
  restart)
echo "Usage: $0 {start|stop|reload|restart}"
+
      $0 stop
        exit 1
+
      sleep 1
        ;;
+
      $0 start
esac
+
      ;;
  
# End $rc_base/init.d/authdaemond
+
  *)
EOF
+
echo "Usage: $0 {start|stop|reload|restart}"
 +
      exit 1
 +
      ;;
 +
esac
  
 +
# End $rc_base/init.d/authdaemond
 +
EOF
 +
chmod +x /etc/rc.d/init.d/authdaemond
 
</pre>
 
</pre>
  

Latest revision as of 13:56, 9 November 2009

Download Source: http://prdownloads.sourceforge.net/courier/courier-authlib-0.62.2.tar.bz2

Introduction to Courier-Authlib

Courier's mail server authorization library.

Project Homepage: Unknown

Creating the courier User & Group

groupadd -g 35 courier &&
useradd -c "Courier Daemon User" -d /dev/null \
       -u 35 -g courier -s /bin/false courier

Dependencies

Required

Non-Multilib

Compile the package:

./configure --prefix=/usr --libexecdir=/usr/sbin \
--sysconfdir=/etc/courier/authlib --with-mailuser=courier \
--with-mailgroup=courier
make

Install the package:

make install
make install-configure

Multilib

32Bit

N32

64Bit

Configuring

cat > /etc/rc.d/init.d/authdaemond << "EOF"
#!/bin/sh
# Begin $rc_base/init.d/authdaemond

# Based on sysklogd script from LFS-3.1 and earlier.
#$LastChangedBy: zippo
#$Date: 2009-04-30 15:31:59 

 . /etc/sysconfig/rc
 . $rc_functions

case "$1" in
   start)
       boot_mesg "Starting AUTHDAEMOND Server..."
       /usr/sbin/authdaemond start
       evaluate_retval
       ;;

   stop)
       boot_mesg "Stopping AUTHDAEMONF Server..."
       /usr/sbin/authdaemond stop
       evaluate_retval
       ;;

   reload)
       boot_mesg "Reloading AUTHDAEMOND Server..."
       /usr/sbin/authdaemond restart
       evaluate_retval
       ;;

   restart)
       $0 stop
       sleep 1
       $0 start
       ;;

   *)
echo "Usage: $0 {start|stop|reload|restart}"
       exit 1
       ;;
esac

# End $rc_base/init.d/authdaemond
EOF
chmod +x /etc/rc.d/init.d/authdaemond


Installed Directories: /etc/courier,/etc/courier/authlib,/usr/lib/courier-authlib,/usr/sbin/courier-authlib
Installed Programs: courierauthconfig,authdaemond,authpasswd,makedatprog,authsystem.passwd,authenumerate,userdbpw,pw2userdb,

authtest,userdb,vchkpw2userdb,courierlogger,makeuserdb,userdb-test-cram-md5

Installed Libraries: libauthcustom.so,libauthpipe.so,libauthpam.so,libauthuserdb.so,libcourierauth.so,

libcourierauthsaslclient.so,libauthpipe.so,libcourierauthsasl.so,libcourierauth.so, libcourierauthcommon.so,libauthcustom.so,libauthldap.so,libauthldap.so,libauthmysql.so, libauthmysql.so,libcourierauthcommon.so,libcourierauthsaslclient.so,libauthuserdb.so, libauthpam.so,libcourierauthsasl.so