Re: external_acl problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 21 Jan 2003 11:00:43 +0100

"Hegedus, Ervin" wrote:

> i try to make a quota_helper, or in other words:
> per_user_quota_helper. But if i can do this, may be it knows
> group quota, and etc...
>
> It needs user and content-length info, and gives back OK, if
> everything good, and ERR, if user overstep its quota.

Note: content-length of the reply is only available in
http_reply_access, and external acl's is not compatible with
http_reply_access as http_reply_access as of yet is a "quick" type of
acl check not allowing for external lookups to complete..

> I think, tha common problem of this program, there will run many
> issue of this process's, and every process wants to access the
> quota database. I think, i try to make some lock-flag in
> database.

For this kind of applications you need a multiuser capable database with
locking and/or transactions.

> BTW, what is the correct form the use of %{Header} parameter?
>
> examples:
>
> ... %{Content-Length}

This one.

But see above.

For your application you will need two programs:

1. A daemon that tails access.log to maintain the quota database

2. A external acl which queries the quota database to see if the user
has quota left or not.

Regards
Henrik
Received on Tue Jan 21 2003 - 03:30:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:07 MST