what should be done in a vhost_db module?

2008-04-04 Thread Robert Schulze
Hi, I'm currently working on a module to create virtualhosts on the fly out of a cdb-database file. I looked at some module which do basically the same with other data sources. What I now wonder is, what else I have to do except for setting the r-filename and maybe some script-alias-foo.

Re: Handler method is it executed in mutex?

2008-04-04 Thread Thib
Hi, Thanks a lot for this response. I didn't succeed in watching a bug with gdb on this part but I'm going to treat global configuration as read-only. Thanks a lot. Thib 2008/4/4, Nick Kew [EMAIL PROTECTED]: On Fri, 4 Apr 2008 09:04:50 +0200 Thib [EMAIL PROTECTED] wrote: Hi, I'm

child process exit

2008-04-04 Thread Julien Billon
Hello, I'm new to module development and I have a question about resources management: I'm using the worker mpm and my module manages, for each child process, a single connection with a back end server. This connection is shared between the threads of a process. I'd like to explicitly close the

Re: How to manage memory allocation/free in the handler ?

2008-04-04 Thread Eric Covener
On Fri, Apr 4, 2008 at 8:07 AM, Thib [EMAIL PROTECTED] wrote: For example, in create_snu_config : new_cfg = (snu_config *) apr_pcalloc(p, sizeof(snu_config)); And I don't know how to free this memory at the end of the handler method. I don't find any method in apr to do that (as

Re: How to manage memory allocation/free in the handler ?

2008-04-04 Thread Thib
Hi, Thanks for this response. For the new config, there is no problem because I create a new one only when my create config method (create_snu_config method) is called : static void *create_snu_config(apr_pool_t *p, server_rec *s) { ... newcfg = (snu_config *) apr_pcalloc(p,

Re: what should be done in a vhost_db module?

2008-04-04 Thread ed
On Fri, 04 Apr 2008 11:59:08 +0200 Robert Schulze [EMAIL PROTECTED] wrote: Hi, I'm currently working on a module to create virtualhosts on the fly out of a cdb-database file. I looked at some module which do basically the same with other data sources. What I now wonder is, what else I

Re: 2.4 (Was: Re: Configuration Issues to Address [was Re: Dynamic configuration for the hackathon?])

2008-04-04 Thread William A. Rowe, Jr.
Chris Darroch wrote: I've been working with the 2.4 authn/z stuff a bit lately and what I keep tripping over is that the default authorization merge rule uses OR logic. For example, if I enable mod_access_compat and put in a traditional: I wonder if anyone would offer a fastfeather talk

Re: 2.4 (Was: Re: Configuration Issues to Address [was Re: Dynamicconfiguration for the hackathon?])

2008-04-04 Thread Brad Nicholes
On 4/4/2008 at 1:20 AM, in message [EMAIL PROTECTED], William A. Rowe, Jr. [EMAIL PROTECTED] wrote: Chris Darroch wrote: I've been working with the 2.4 authn/z stuff a bit lately and what I keep tripping over is that the default authorization merge rule uses OR logic. For example, if I

Apache support for form authentication

2008-04-04 Thread Graham Leggett
Hi all, Despite having a very capable pluggable aaa subsystem built into httpd, the two main mechanisms for access remain mod_auth_basic and mod_auth_digest. Many web applications demand more flexible or user friendly ways to log into the server, and so every application server out there

Re: Apache support for form authentication

2008-04-04 Thread Nick Kew
On Fri, 04 Apr 2008 17:03:06 +0200 Graham Leggett [EMAIL PROTECTED] wrote: It would be significantly simpler to teach Apache how to do form logins, +1. It's something no doubt most of us have reinvented. A standardised/bundled solution would be great! It is hoped that with a standard

Re: 2.4 (Was: Re: Configuration Issues to Address [was Re: Dynamic configuration for the hackathon?])

2008-04-04 Thread Chris Darroch
William A. Rowe, Jr. wrote: I've been working with the 2.4 authn/z stuff a bit lately and what I keep tripping over is that the default authorization merge rule uses OR logic. For example, if I enable mod_access_compat and put in a traditional: I wonder if anyone would offer a fastfeather

Re: svn commit: r644253 - in /httpd/httpd/trunk: docs/manual/mod/core.xml include/ap_mmn.h include/http_core.h server/core.c server/request.c

2008-04-04 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: Nick Kew Gesendet: Freitag, 4. April 2008 00:06 An: dev@httpd.apache.org Betreff: Re: svn commit: r644253 - in /httpd/httpd/trunk: docs/manual/mod/core.xml include/ap_mmn.h include/http_core.h server/core.c server/request.c On Thu, 03 Apr 2008

Re: svn commit: r644253 - in /httpd/httpd/trunk: docs/manual/mod/core.xml include/ap_mmn.h include/http_core.h server/core.c server/request.c

2008-04-04 Thread William A. Rowe, Jr.
Plüm wrote: I am still not convinced. What makes you sure that a previous merge did not set entry_core-r / entry_core-d. But maybe it is just my missing experience with the config and merge system. It is 1) the job of location to do so. 2) the job of any section which throws away the

Re: Apache support for form authentication

2008-04-04 Thread Chris Darroch
Graham Leggett wrote: A session is a simple table of key value pairs. mod_session_dbd stores sessions within a SQL database. The session is tracked by a cookie, very similar to a typical Tomcat session. The catch is that you need a database beefy enough to handle the resulting load, which

AuthzMergeRules directive (was:Re: 2.4)

2008-04-04 Thread Brad Nicholes
On 4/4/2008 at 11:37 AM, in message [EMAIL PROTECTED], Chris Darroch [EMAIL PROTECTED] wrote: William A. Rowe, Jr. wrote: I've been working with the 2.4 authn/z stuff a bit lately and what I keep tripping over is that the default authorization merge rule uses OR logic. For example, if I

Re: AuthzMergeRules directive

2008-04-04 Thread Chris Darroch
Brad Nicholes wrote: So here was the thinking behind it when AuthzMergeRules was introduced. Maybe there is still a bug here that needs to be addressed. http://mail-archives.apache.org/mod_mbox/httpd-dev/200607.mbox/[EMAIL PROTECTED]

Re: AuthzMergeRules directive

2008-04-04 Thread Paul J. Reder
Perhaps it would make more sense to provide this as an explicit value rather than On vs. Off and set the default to the previous behavior. Perhaps something like: AuthzMergeRules [AND | OR | OVERRIDE] with default being OVERRIDE (if I grok correctly) Meaning that any directives specified at

Problems with mod_dbd and prepared statements

2008-04-04 Thread Graham Leggett
Hi all, I am trying to debug a problem with mod_dbd, and the creation of prepared statements. If I run the following three steps, the first adds the prepared statement, the second obtains a handle to the dbd functions, and the third statement retrieves the prepared statement. For some