Re: Intercepting with data for mod_dav

[prev] [thread] [next] [Date index for 2005/02/04]

From: Stefan Sonnenberg-Carstens
Subject: Re: Intercepting with data for mod_dav
Date: 14:43 on 04 Feb 2005
Jeff Finn schrieb:

>I've been doing this with mod_perl 2.. here's the relative parts of my
>config:
>============
>  Alias /dav_files /home/users
>
>  #
>  # hook into the other phases for
>  #
>  <Location /dav_files>
>  	PerlOutputFilterHandler	MyEncrypt::output
>	PerlInputFilterHandler	MyEncrypt::input
>
>	PerlSetOutputFilter	DEFLATE
>
>	#
>	# Request Phase Handlers
>	#
>	PerlAuthenHandler	 MyAuthenticate
>
>	AuthType basic
>	AuthName "xxx"
>	Require valid-user
>	Satisfy all
>  </Location>
>
>  #
>  # Actual access to the files.... use will be already authenticated
>  #
>  <Directory /home/users/*/>
>	AllowOverride	None
>	DAV on
>  </Directory>
>======================
>
>Hope this helps.
>  
>
That looks like my config ;-)
The point is, must I take care of the DAV specific things ?
For example, I wrote a sub named input (whoww!)
which did nothing more than consuming the input files on
PUT request, it should return to the upper/lower layers
afterwards. But the apache process which handled my request, hang.

sub input {
    my $req = shift;
    if($req->method eq "PUT") {
       #maybe nothing here allowed ?
    }
    return Apache::OK;
}

1;

Caused that effect. Am I thinking wrong ?

>To the list:
>My encryption is proprietary based on the PW the user sends... anyone know a
>tested symmetric streaming (not block) encryption algoritm?
>
>  
>
Mh, for streams with a token size of 32-64 bits, you could try

http://www.simonshepherd.supanet.com/tea.htm

It's easy to implement in perl, as the C source is easy.

I use the C source to encrypt 64 bit tokens, which would
be 8 bytes from a stream.

Perhaps you can then tie that thing between your stream.

>Jeff
>
>-----Original Message-----
>From: Stefan Sonnenberg-Carstens [mailto:ssc@xxxxxxxx.xx]
>Sent: Friday, February 04, 2005 9:11 AM
>To: modperl@xxxx.xxxxxx.xxx
>Subject: Intercepting with data for mod_dav
>
>
>Hi list,
>I'm struggeling a bit with the following :
>I set a mod_dav DAV server, which works fine.
>One thing I *must* accomplish, is to write the
>uploaded files encrypted in some way to the disk,
>and publish them back unencrypted.
>That should be perfectly possible with
>apache's filters.
>The problem seems to be, that mod_perl doesn't see
>anything if dav is set to on on a specific dir ?
>Is that true ?
>What I need is small (very small) hint, how to get the data
>that the PUT and GET requests offer, or if this
>is possible at all.
>
>Thx in advance,
>
>Stefan Sonnenberg
>
>  
>

Intercepting with data for mod_dav
Stefan Sonnenberg-Carstens 14:11 on 04 Feb 2005

RE: Intercepting with data for mod_dav
Jeff Finn 14:32 on 04 Feb 2005

Re: Intercepting with data for mod_dav
Stefan Sonnenberg-Carstens 14:43 on 04 Feb 2005

Re: Intercepting with data for mod_dav
Philippe M. Chiasson 06:36 on 06 Feb 2005

Generated at 09:05 on 06 Feb 2005 by mariachi v0.52