--On lördag, lördag 6 dec 2008 19.44.06 +0100 Jesus arteche
<[EMAIL PROTECTED]> wrote:

> hey,
> 
> I'd ike to know if there is  a possibility of access to my openAFS cell
> via web. and if its possible where I can find the info about how to do.

Put /afs/your.cell/ in an apache vhost like so: 

<VirtualHost *>
    ServerName web-view.your.cell
    DocumentRoot /afs/your.cell
</VirtualHost>

Start apache with suitable tickets and tokens. An often used method is to
create a principal, extract it to a file and then: 

#!/bin/ksh
#
#       Startup-script for apache-server with ticketfile.
#       $Id: apache-stacken.sh,v 1.3 2005/07/21 17:19:42 thn Exp $
#
ARGV="$@"
REALSCRIPT="/usr/local/apache2/bin/apachectl"

case $ARGV in
start)
    /usr/heimdal/bin/pagsh $0 second-level
    ;;
second-level)
    /usr/heimdal/bin/kauth -l 8d -t /my/principal/file websrvapache
    echo "Starting apache with kerberos-tickets:"
    /usr/heimdal/bin/klist -T
    $REALSCRIPT start
    ;;
restart)
    $REALSCRIPT stop
    /usr/heimdal/bin/pagsh $0 second-level    
    ;;
*)
    $REALSCRIPT $ARGV
    ;;
esac



-- 
Måns Nilsson                    M A C H I N A

If I pull this SWITCH I'll be RITA HAYWORTH!!  Or a SCIENTOLOGIST!

Attachment: pgpPpND8fsSwO.pgp
Description: PGP signature

Reply via email to