Re: Apache 2.4: scope of PerlAddAuthzProvider

2015-04-22 Thread Lathan Bidwell
You are correct, the new setup thinks of it as setting up global AuthZ
handlers.

Make sure to name the provider with a good identifier (i.e.: thisAppUser,
GlobalLoginUser, )

A great many people would benefit from updating the documentation on these
changes. But I think people are focusing on making sure it builds properly
on different environments.

Lathan


On Wed, Apr 22, 2015 at 3:37 AM, Jie Gao j@sydney.edu.au wrote:

 OK, I suppose I can add the provider globally, but not actually start to
 use it until I call the module within a container.

 And it should be PerlAddAuthzProvider user My::MyAuth::AuthCookie-authz
 as well.


 Regards,

 Jie

 * Jie Gao j@sydney.edu.au wrote:

  Date: Wed, 22 Apr 2015 17:23:10 +1000
  From: Jie Gao j@sydney.edu.au
  To: modperl@perl.apache.org
  Subject: Apache 2.4: scope of PerlAddAuthzProvider
  User-Agent: Mutt/1.5.21 (2010-09-15)
 
  Hi
 
  When I put the following line within a Location section:
 
  PerlAddAuthzProvider user My::MyAuth::AuthCookie-authen
 
  I get an error:
 
  AH00526: Syntax error on line 545 of
 /usr/local/httpd-2.4.12/conf/httpd.conf: PerlAddAuthzProvider not allowed
 here
 
  . But if I put it outside the container, it'll apply globally to
 everything and that is not what I want.
 
  Can somebody clarify this?
 
 
  Regards,
 
  Jie



svn commit: r1675431 - /perl/Apache-Reload/trunk/RELEASE

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 17:26:09 2015
New Revision: 1675431

URL: http://svn.apache.org/r1675431
Log:
Remove instruction to bump *.pm $VERSIONs from -dev to -rc1 etc

We don't have -dev $VERSIONs to start with, and I don't think either 0.13-dev 
or 0.13-rc1 is a valid $VERSION number anyway. (It *is* currently that way in 
Apache-SizeLimit, but I don't think it's a good idea and I'd rather change that 
to be like this than change this to be like that.)

Modified:
perl/Apache-Reload/trunk/RELEASE

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675431r1=1675430r2=1675431view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 17:26:09 2015
@@ -24,11 +24,9 @@ Instructions for Apache-Reload Release M
as possible.
 
   a. edit ./Changes:
- - find lib -type f -name *.pm | \
- xargs perl -pi -e 's,0.13-dev,0.13-rc1,g'
- - perl -pi -e 's,0.13-dev,0.13-rc1,g' Changes
+ - change -dev to -rc\d+ starting with -rc1
 
- - don't commit these (see dev@ archives)
+ - don't commit this (see dev@ archives)
 
   b. nuke any preinstalled Apache-Reload libs and run 'make test'
 




Apache 2.4: scope of PerlAddAuthzProvider

2015-04-22 Thread Jie Gao
Hi

When I put the following line within a Location section:

PerlAddAuthzProvider user My::MyAuth::AuthCookie-authen

I get an error:

AH00526: Syntax error on line 545 of 
/usr/local/httpd-2.4.12/conf/httpd.conf: PerlAddAuthzProvider not allowed here

. But if I put it outside the container, it'll apply globally to everything and 
that is not what I want.

Can somebody clarify this?


Regards,

Jie 


Re: Apache 2.4: scope of PerlAddAuthzProvider

2015-04-22 Thread Jie Gao
OK, I suppose I can add the provider globally, but not actually start to use it 
until I call the module within a container.

And it should be PerlAddAuthzProvider user My::MyAuth::AuthCookie-authz as 
well.


Regards,

Jie 

* Jie Gao j@sydney.edu.au wrote:

 Date: Wed, 22 Apr 2015 17:23:10 +1000
 From: Jie Gao j@sydney.edu.au
 To: modperl@perl.apache.org
 Subject: Apache 2.4: scope of PerlAddAuthzProvider
 User-Agent: Mutt/1.5.21 (2010-09-15)
 
 Hi
 
 When I put the following line within a Location section:
 
 PerlAddAuthzProvider user My::MyAuth::AuthCookie-authen
 
 I get an error:
 
 AH00526: Syntax error on line 545 of 
 /usr/local/httpd-2.4.12/conf/httpd.conf: PerlAddAuthzProvider not allowed 
 here
 
 . But if I put it outside the container, it'll apply globally to everything 
 and that is not what I want.
 
 Can somebody clarify this?
 
 
 Regards,
 
 Jie 


svn commit: r1675268 - /perl/Apache-Reload/trunk/Changes

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 07:42:29 2015
New Revision: 1675268

URL: http://svn.apache.org/r1675268
Log:
Fill in previously missed Changes file entry

Modified:
perl/Apache-Reload/trunk/Changes

Modified: perl/Apache-Reload/trunk/Changes
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/Changes?rev=1675268r1=1675267r2=1675268view=diff
==
--- perl/Apache-Reload/trunk/Changes (original)
+++ perl/Apache-Reload/trunk/Changes Wed Apr 22 07:42:29 2015
@@ -8,6 +8,9 @@ Changes - Apache::Reload change logfile
 
 =item 0.13-dev
 
+Fix reload.t. Reported in CPAN RT#96656.
+[Steve Hay]
+
 =item 0.12 March 31, 2012
 
 Set the -apxs argument correctly when building from mod_perl.




svn commit: r1675271 - /perl/Apache-Reload/trunk/RELEASE

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 07:59:01 2015
New Revision: 1675271

URL: http://svn.apache.org/r1675271
Log:
Update PAUSE instructions in RELEASE

Modified:
perl/Apache-Reload/trunk/RELEASE

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675271r1=1675270r2=1675271view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 07:59:01 2015
@@ -25,8 +25,8 @@ Instructions for Apache-Reload Release M
 
 a. login into https://pause.perl.org
 b. menu click: Select Mailinglist/Action
-c. choose APML and share_perms and click go
-d. click 3.3 Make somebody else co-maintainer
+c. choose APML and Change Permissions and click go
+d. click 3.1 Make somebody else co-maintainer
 e. choose the modules to give the perms to
type the username of the new co-maintainer
 f. if you happen to know that packages were added this release,




svn commit: r1675272 - /perl/Apache-Reload/trunk/RELEASE

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 08:01:07 2015
New Revision: 1675272

URL: http://svn.apache.org/r1675272
Log:
KEYS are not required for an Apache-Reload release since it is distributed via 
CPAN

Modified:
perl/Apache-Reload/trunk/RELEASE

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675272r1=1675271r2=1675272view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 08:01:07 2015
@@ -3,22 +3,6 @@ Instructions for Apache-Reload Release M
 0.  Ask the PMC to verify that you have the appropriate CPAN permissions
 on dev@perl.
 
-make sure your public key is in the KEYS file in the mod_perl docs.
-you should only need to do this if this is your first time playing
-Release Manager
-
- $ cd mod_perl-docs
- $ grep $USER src/dist/KEYS
-
-note that the KEYS file itself contains all the instructions you
-need on how to add your key.  if you need further help on gpg
-(like how to create a key in the first place) you can look here
-
-  http://people.apache.org/~geoff/gpghowto.html
-
-Copy the KEYS file into place:
-% scp KEYS www.apache.org:/www/www.apache.org/dist/perl/KEYS
-
 If this is your first release, ask someone with APML karma on PAUSE
 to verify you have the appropriate permissions.  Likely someone on
 the PMC can do this.




svn commit: r1675273 - /perl/Apache-Reload/trunk/RELEASE

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 08:07:11 2015
New Revision: 1675273

URL: http://svn.apache.org/r1675273
Log:
Note that the automated update of RELEASE accidentally updates something that 
it shouldn't, which then needs undoing

Modified:
perl/Apache-Reload/trunk/RELEASE

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675273r1=1675272r2=1675273view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 08:07:11 2015
@@ -99,6 +99,8 @@ Instructions for Apache-Reload Release M
 
  $ perl -pi -e 's/(\d+)\.(\d+)/join(., $1, $2+1)/eg' RELEASE
 
+ (undo the change to the PAUSE menu item number in item 0d. above)
+
   d. commit Changes
  % svn ci -m start 0.13-dev cycle Changes RELEASE \
lib/Apache/Reload.pm lib/Apache2/Reload.pm




svn commit: r1675267 - in /perl/Apache-Reload/trunk: Changes RELEASE lib/Apache/Reload.pm

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 07:41:03 2015
New Revision: 1675267

URL: http://svn.apache.org/r1675267
Log:
start 0.13-dev cycle

[This should have been done when 0.12 was made, but seems to have been 
forgotten. Doing it now since we're about to start the release process for 
0.13.]

Modified:
perl/Apache-Reload/trunk/Changes
perl/Apache-Reload/trunk/RELEASE
perl/Apache-Reload/trunk/lib/Apache/Reload.pm

Modified: perl/Apache-Reload/trunk/Changes
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/Changes?rev=1675267r1=1675266r2=1675267view=diff
==
--- perl/Apache-Reload/trunk/Changes (original)
+++ perl/Apache-Reload/trunk/Changes Wed Apr 22 07:41:03 2015
@@ -6,6 +6,8 @@ Changes - Apache::Reload change logfile
 
 =over 1
 
+=item 0.13-dev
+
 =item 0.12 March 31, 2012
 
 Set the -apxs argument correctly when building from mod_perl.

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675267r1=1675266r2=1675267view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 07:41:03 2015
@@ -1,120 +1,120 @@
-Instructions for Apache-Reload Release Manager
-
-0.  Ask the PMC to verify that you have the appropriate CPAN permissions
-on dev@perl.
-
-make sure your public key is in the KEYS file in the mod_perl docs.
-you should only need to do this if this is your first time playing
-Release Manager
-
- $ cd mod_perl-docs
- $ grep $USER src/dist/KEYS
-
-note that the KEYS file itself contains all the instructions you
-need on how to add your key.  if you need further help on gpg
-(like how to create a key in the first place) you can look here
-
-  http://people.apache.org/~geoff/gpghowto.html
-
-Copy the KEYS file into place:
-% scp KEYS www.apache.org:/www/www.apache.org/dist/perl/KEYS
-
-If this is your first release, ask someone with APML karma on PAUSE
-to verify you have the appropriate permissions.  Likely someone on
-the PMC can do this.
-
-a. login into https://pause.perl.org
-b. menu click: Select Mailinglist/Action
-c. choose APML and share_perms and click go
-d. click 3.3 Make somebody else co-maintainer
-e. choose the modules to give the perms to
-   type the username of the new co-maintainer
-f. if you happen to know that packages were added this release,
-   make sure you give the correct permissions to them.
-
- MAINTAINER_BUILDING_RELEASE=1 perl Makefile.PL
-
-1. 'make disttest' - to make sure nothing is missing from the manifest.
-   Now 'make dist', and test this generated package (not svn)
-   with as many configurations as possible on as many platforms
-   as possible.
-
-  a. edit ./Changes:
- - find lib -type f -name *.pm | \
- xargs perl -pi -e 's,0.12-dev,0.12-rc1,g'
- - perl -pi -e 's,0.12-dev,0.12-rc1,g' Changes
-
- - don't commit these (see dev@ archives)
-
-  b. nuke any preinstalled Apache-Reload libs and run 'make test'
-
-  c. test that you can 'make install' and then run 'make test' again
-
-  d. test whether we still 100% OK on systems with no LWP:
-
- % APACHE_TEST_PRETEND_NO_LWP=1 make test
-
-2. once confident that the package is good, upload a release candidate
-   to people.apache.org/~username and post 24 hour-ish candidate alert
-   to the various lists
-
- o dev/perl.apache.org
- o modperl/perl.apache.org
-
-  Subject: [RELEASE CANDIDATE] Apache-Reload 0.12 RC\d+
-
-   (or maybe longer to give most people a chance to catch up). no need
-   to tag this package
-
-  a. if problems are detected during stage 2, repeat stages 1 and 2.
-
-3. when the package has been reported to be good, prepare a new
-   package to be released
-
-  a. edit ./Changes
- - remove -rc\d+ (from lib/Apache/Reload.pm and lib/Apache2/Reload.pm also)
- - add release date
-
-  b. rerun:
- % perl Makefile.PL
- make sure tag looks right
- % make -n tag
-
-  c. commit Changes
- % svn ci Changes
-
-  d. tag
- % make tag
-
-  e. create the final package
- % make dist
-
-  f. test the final package again at least once
-
-4. Upload the package to CPAN
-
-5. Announce the package
-
-  a. post ... to the modperl, announce lists
-  Subject: [ANNOUNCE] Apache-Reload 0.12
- include 
-  - MD5 sig (as it comes from CPAN upload announce).
-  - the latest Changes
-
-6. Prepare for the next cycle
-
-  a. increment version in lib/Apache/Reload.pm
-
-  b. edit ./Changes:
- - start a new item with incremented version + '-dev'
-
-  =item 0.13-dev
-
-  c. bump up version numbers in this file to make it easier to do the
- next release.
-
- $ perl -pi -e 's/(\d+)\.(\d+)/join(., $1, $2+1)/eg' RELEASE
-
-  d. commit Changes
- % svn ci -m start 0.12-dev cycle Changes 

svn commit: r1675269 - /perl/Apache-Reload/trunk/Makefile.PL

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 07:48:49 2015
New Revision: 1675269

URL: http://svn.apache.org/r1675269
Log:
Ensure file permissions and EOLs are set correctly when creating the release 
tarball

Otherwise EOLs in particular are not set correctly (i.e. LF) when creating a 
release from a workspace on a Windows machine since native EOLs (i.e. CRLF in 
this case) are used by default in client-side workspaces.

Modified:
perl/Apache-Reload/trunk/Makefile.PL

Modified: perl/Apache-Reload/trunk/Makefile.PL
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/Makefile.PL?rev=1675269r1=1675268r2=1675269view=diff
==
--- perl/Apache-Reload/trunk/Makefile.PL (original)
+++ perl/Apache-Reload/trunk/Makefile.PL Wed Apr 22 07:48:49 2015
@@ -24,6 +24,12 @@ my $HAS_APACHE_TEST = check_for_apache_t
 
 my %common_opts = (
PREREQ_PM   = \%prereqs,
+   dist= {
+   COMPRESS = 'gzip -9f', SUFFIX = 'gz',
+   PREOP   = 'find $(DISTVNAME) -type d -print|xargs 
chmod 0755  ' .
+  'find $(DISTVNAME) -type f -print|xargs 
chmod 0644',
+   TO_UNIX = 'find $(DISTVNAME) -type f -print|xargs 
dos2unix'
+   },
clean   = { FILES = 't/TEST' },
   );
 




svn commit: r1675270 - in /perl/Apache-Reload/trunk: RELEASE lib/Apache2/Reload.pm

2015-04-22 Thread stevehay
Author: stevehay
Date: Wed Apr 22 07:54:52 2015
New Revision: 1675270

URL: http://svn.apache.org/r1675270
Log:
Missed a $VERSION bump in lib/Apache2/Reload.pm

Update RELEASE notes too so that this doesn't get forgotten again.

Modified:
perl/Apache-Reload/trunk/RELEASE
perl/Apache-Reload/trunk/lib/Apache2/Reload.pm

Modified: perl/Apache-Reload/trunk/RELEASE
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/RELEASE?rev=1675270r1=1675269r2=1675270view=diff
==
--- perl/Apache-Reload/trunk/RELEASE (original)
+++ perl/Apache-Reload/trunk/RELEASE Wed Apr 22 07:54:52 2015
@@ -103,7 +103,7 @@ Instructions for Apache-Reload Release M
 
 6. Prepare for the next cycle
 
-  a. increment version in lib/Apache/Reload.pm
+  a. increment version in lib/Apache/Reload.pm and lib/Apache2/Reload.pm also
 
   b. edit ./Changes:
  - start a new item with incremented version + '-dev'

Modified: perl/Apache-Reload/trunk/lib/Apache2/Reload.pm
URL: 
http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/lib/Apache2/Reload.pm?rev=1675270r1=1675269r2=1675270view=diff
==
--- perl/Apache-Reload/trunk/lib/Apache2/Reload.pm (original)
+++ perl/Apache-Reload/trunk/lib/Apache2/Reload.pm Wed Apr 22 07:54:52 2015
@@ -18,7 +18,7 @@ package Apache2::Reload;
 use strict;
 use warnings FATAL = 'all';
 
-our $VERSION = '0.12';
+our $VERSION = '0.13';
 
 use Apache2::Const -compile = qw(OK);