#Patches for vboxd
#last update: 07.11.2002
#written by Kai Grosshaus kai@grosshaus.org
#and Joerg Mauer joerg@mauerclan.de


1) no-ftp-patch (from kai)
   Upload messages without the need of an ftp-server.
   To use it, append the messages directory to the end of your accounts:

    A:localhost:RW:vboxuser:x:/var/spool/vbox/vboxuser:incoming:messages 


2) ssl-support
   Includes ssl-support into the vboxd. To use it, add the -s switch to the
   vboxd line in /etc/inetd.conf:

    svboxd   stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/local/sbin/vboxd -s -f /etc/vbox/vboxd.conf

   Make sure to have svboxd in /etc/services:

    svboxd	20013/tcp
    svboxd	20013/udp

   next, insert the path to your cert and keyfiles into your vboxd.conf:
   
    ssl_cert_file /etc/vbox/server.pem         
    ssl_key_file /etc/vbox/server.pem

   Create the certificate- and keyfiles (in case you don't have them already):

    # openssl req -new -x509 -nodes -out /etc/vbox/server.pem -keyout /etc/vbox/server.pem -days 3650

  
  
3) pam-support

  To enable pam support create a file vboxd in /etc/pam.d:

    #%PAM-1.0
    auth     required       pam_unix.so
    account  required       pam_unix.so

  Replace the password for your account (that should be col. 5) with an x.
  example:
   
    A:localhost:RW:vboxuser:x:/var/spool/vbox/vboxuser:incoming:messages 


INSTALLATION:

-get the latest version (v3.2p1) of  isdn4k-utils from http://www.isdn4linux.de

-unpack the sources:
# tar xvfj isdn4k-utils.v3.2p1.tar.bz2
-and apply the patch:
# cd isdn4k-utils && patch -p1 < ../vbox-pam-ssl-patch
-cd into the vbox directory and build the vboxd:
# cd vbox
# ./configure
# make
-that's it!
-copy the patched vbox to wherever your old version is:
# cd src && cp vboxd /usr/local/sbin/

