Your message dated Tue, 16 Aug 2005 01:02:05 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#323006: fixed in mod-vhost-ldap 0.2.2-1
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 13 Aug 2005 23:07:31 +0000
>From [EMAIL PROTECTED] Sat Aug 13 16:07:31 2005
Return-path: <[EMAIL PROTECTED]>
Received: from nautilus.neoisis.net [194.100.129.90] (Debian-exim)
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1E456A-0003o1-00; Sat, 13 Aug 2005 16:07:31 -0700
Received: from adsl-62-220-230-201.fonet.fi ([62.220.230.201]
helo=localhost.localdomain)
by nautilus.neoisis.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA:32)
(Exim 4.50)
id 1E455z-0006HG-25
for [EMAIL PROTECTED]; Sun, 14 Aug 2005 02:07:29 +0300
Received: from fabbe by localhost.localdomain with local (Exim 4.50)
id 1E455u-0005BP-Ds
for [EMAIL PROTECTED]; Sun, 14 Aug 2005 02:07:14 +0300
Content-Type: multipart/mixed; boundary="===============1511913786=="
MIME-Version: 1.0
From: Fabian Fagerholm <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: libapache2-mod-vhost-ldap: apacheScriptAlias attribute must be present
X-Mailer: reportbug 3.8
Date: Sun, 14 Aug 2005 02:07:14 +0300
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: ClamAV
X-Spam-Score: 0.1
X-Spam-Score-Int: 1
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
HTML_MESSAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
This is a multi-part MIME message sent by reportbug.
--===============1511913786==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: libapache2-mod-vhost-ldap
Version: 0.2.1-1
Severity: important
I noticed that if the apacheScriptAlias attribute is not present in the
LDAP directory, the module will return NULL as filename, resulting in
the vhost to break.
I quickly cooked up a patch, which is probably completely wrong. It
makes the module decline if ScriptAlias is not defined. It also fixes a
comment typo.
In addition to this, the apacheConfig objectclass should have MUST (
apacheServerName & apacheDocumentRoot & apacheScriptAlias ) so that it
reflects the behavior of the code.
On the other hand, I think the correct fix would be to not require this
attribute and instead have the code behave correctly without it. I made
some simple changes and the second attached patch is an attempt to fix
this, although I suspect my lack of sleep means it's no good... ;-)
--===============1511913786==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="scriptalias-v1.diff"
--- mod_vhost_ldap.c.orig 2005-08-11 13:17:00.000000000 +0300
+++ mod_vhost_ldap.c 2005-08-14 01:52:02.662014320 +0300
@@ -79,7 +79,7 @@
char *name; /* ServerName */
char *admin; /* ServerAdmin */
char *docroot; /* DocumentRoot */
- char *cgiroot; /* ScripAlias */
+ char *cgiroot; /* ScriptAlias */
char *uid; /* Suexec Uid */
char *gid; /* Suexec Gid */
} mod_vhost_ldap_request_t;
@@ -413,10 +413,10 @@
}
}
- if ((req->name == NULL)||(req->docroot == NULL)) {
+ if ((req->name == NULL)||(req->docroot == NULL)||(req->cgiroot == NULL)) {
ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r,
"[mod_vhost_ldap.c] translate: "
- "translate failed; ServerName or DocumentRoot not
defined");
+ "translate failed; ServerName or DocumentRoot or
ScriptAlias not defined");
return DECLINED;
}
--===============1511913786==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="scriptalias-v2.diff"
--- mod_vhost_ldap.c.orig 2005-08-11 13:17:00.000000000 +0300
+++ mod_vhost_ldap.c 2005-08-14 02:05:03.819260368 +0300
@@ -79,7 +79,7 @@
char *name; /* ServerName */
char *admin; /* ServerAdmin */
char *docroot; /* DocumentRoot */
- char *cgiroot; /* ScripAlias */
+ char *cgiroot; /* ScriptAlias */
char *uid; /* Suexec Uid */
char *gid; /* Suexec Gid */
} mod_vhost_ldap_request_t;
@@ -290,7 +290,7 @@
command_rec mod_vhost_ldap_cmds[] = {
AP_INIT_TAKE1("VhostLDAPURL", mod_vhost_ldap_parse_url, NULL, RSRC_CONF,
- "URL to define LDAP connection. This should be an RFC 2255
complaint\n"
+ "URL to define LDAP connection. This should be an RFC 2255
compliant\n"
"URL of the form
ldap://host[:port]/basedn[?attrib[?scope[?filter]]].\n"
"<ul>\n"
"<li>Host is the name of the LDAP server. Use a space
separated list of hosts \n"
@@ -309,7 +309,7 @@
"Set to off to disable vhost_ldap, even if it's been enabled
in a higher tree"),
AP_INIT_TAKE1("VhostLDAPDereferenceAliases", mod_vhost_ldap_set_deref,
NULL, RSRC_CONF,
- "Determines how aliases are handled during a search. Can bo
one of the"
+ "Determines how aliases are handled during a search. Can be
one of the"
"values \"never\", \"searching\", \"finding\", or
\"always\". "
"Defaults to always."),
@@ -427,17 +427,16 @@
if (cgi && (cgi != r->uri + strspn(r->parsed_uri.path, "/"))) {
cgi = NULL;
}
+ }
- if (cgi) {
- r->filename =
- apr_pstrcat (r->pool, req->cgiroot, cgi + strlen("cgi-bin"),
NULL);
- r->handler = "cgi-script";
- apr_table_setn(r->notes, "alias-forced-type", r->handler);
- } else {
-
- r->filename =
- apr_pstrcat (r->pool, req->docroot, r->parsed_uri.path, NULL);
- }
+ if (cgi) {
+ r->filename =
+ apr_pstrcat (r->pool, req->cgiroot, cgi + strlen("cgi-bin"), NULL);
+ r->handler = "cgi-script";
+ apr_table_setn(r->notes, "alias-forced-type", r->handler);
+ } else {
+ r->filename =
+ apr_pstrcat (r->pool, req->docroot, r->parsed_uri.path, NULL);
}
r->server->server_hostname = apr_pstrdup (r->pool, req->name);
--===============1511913786==--
---------------------------------------
Received: (at 323006-close) by bugs.debian.org; 16 Aug 2005 08:10:08 +0000
>From [EMAIL PROTECTED] Tue Aug 16 01:10:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1E4wOb-0000fj-00; Tue, 16 Aug 2005 01:02:05 -0700
From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#323006: fixed in mod-vhost-ldap 0.2.2-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 16 Aug 2005 01:02:05 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 3
Source: mod-vhost-ldap
Source-Version: 0.2.2-1
We believe that the bug you reported is fixed in the latest version of
mod-vhost-ldap, which is due to be installed in the Debian FTP archive:
libapache2-mod-vhost-ldap_0.2.2-1_i386.deb
to pool/main/m/mod-vhost-ldap/libapache2-mod-vhost-ldap_0.2.2-1_i386.deb
mod-vhost-ldap_0.2.2-1.dsc
to pool/main/m/mod-vhost-ldap/mod-vhost-ldap_0.2.2-1.dsc
mod-vhost-ldap_0.2.2-1.tar.gz
to pool/main/m/mod-vhost-ldap/mod-vhost-ldap_0.2.2-1.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
OndÅej Surý <[EMAIL PROTECTED]> (supplier of updated mod-vhost-ldap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 16 Aug 2005 09:37:12 +0200
Source: mod-vhost-ldap
Binary: libapache2-mod-vhost-ldap
Architecture: source i386
Version: 0.2.2-1
Distribution: unstable
Urgency: low
Maintainer: OndÅej Surý <[EMAIL PROTECTED]>
Changed-By: OndÅej Surý <[EMAIL PROTECTED]>
Description:
libapache2-mod-vhost-ldap - Apache 2 module for Virtual Hosting from LDAP
Closes: 322958 323002 323006 323007
Changes:
mod-vhost-ldap (0.2.2-1) unstable; urgency=low
.
* New upstream version.
* Fix schema (Closes: #322958, #323002)
* Fix invalid behaviour when apacheScriptAlias missing (Closes: #323006)
* Set DOCUMENT_ROOT internal variable (Closes: #323007)
Files:
ac893c9e81a5a01ac50af4a3ca20e81c 575 web optional mod-vhost-ldap_0.2.2-1.dsc
0d6598681bfb718664a4a0a4d2a52601 8690 web optional
mod-vhost-ldap_0.2.2-1.tar.gz
ca7aad29d5f1d1974e78f48fc1489ff2 9152 web optional
libapache2-mod-vhost-ldap_0.2.2-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDAZnM9OZqfMIN8nMRAslSAJ9DHK32DXkyR013sVYFKkye17YY6gCfTRo6
dlJGYXIdLNwD9ymPFbM+MXM=
=H02F
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]