mod_perl2 and Apache::AuthenNIS

This has been a thorn in my side 3 times now while at work: how to get the aging Apache::AuthenNIS mod_perl module ported to work with mod_perl2 and Apache2. There is a slightly helpful thread here, but it didn’t fully help me. Eventually, I figured it: you have to port the module form within CPAN, then install it.

Here’s what I did:

  1. perl -MCPAN -e 'shell'
  2. get Apache::AuthenNIS
  3. look Apache::AuthenNIS
  4. Replace AuthenNIS.pm with Patched Apache::AuthenNIS.
  5. exit
  6. install Apache::AuthenNIS

From there, you follow the rest of the tutorial on Apache and NIS authentication here.

Hopefully this information is helpful to someone out there doing a Google search.

One Response to “mod_perl2 and Apache::AuthenNIS”

  1. Jonathan Pierce Says:

    Ran into your site from Google; thanks for the info. However, when I run the ‘install Apache::AuthenNIS” command, though, it ends up re-untarring the package, replacing the modified AuthenNIS.pm with the original. Easy fix is just to head over to the CPAN site and install it manually after replacing the file (really not that hard).

    Also, based on your modifications, I made a modified AuthzNIS.pm file because I require group authentication on my site. For anybody interested, you can download it at http://www.bwaht.net/code/AuthzNIS.pm.

Leave a Reply