Apache-AuthenN2

 view release on metacpan or  search on metacpan

AuthenN2.pm  view on Meta::CPAN


_Every_ time a protected file is requested, this handler is invoked.
Depending on your configuration (how many controllers and default
domains you specify), and where the matching credentials are, it can
take a while.  This adds to your network and server load, as well as
bothering some users with the wait.  It makes sense to cache valid
credentials in memory so as to avoid invoking this expensive module
every time.  Luckily, Jason Bodnar already created AuthenCache.
Although written with AuthenDBI in mind, it works beautifully in this
case as well.  It is _highly_ recommended.  After installing it, you
need a few more lines in httpd.conf; to expand on the above example:

   PerlModule Apache::AuthenCache
   <Files *challenge*>
      AuthName 'your nt or nis+ account'
      AuthType Basic
      PerlSetVar NISPlus_Passwd_Table passwd.org_dir.yoyodyne.com
      PerlSetVar NISPlus_Group_Table group.org_dir.yoyodyne.com
      PerlSetVar NT_Default_Domains 'eng corporate'
      PerlSetVar NT_Controllers 'bapdc:babdc nypdc:nybdc'
      PerlSetVar AuthenCache_casesensitive off

README  view on Meta::CPAN


    _Every_ time a protected file is requested, this handler is invoked.
    Depending on your configuration (how many controllers and default
    domains you specify), and where the matching credentials are, it can
    take a while. This adds to your network and server load, as well as
    bothering some users with the wait. It makes sense to cache valid
    credentials in memory so as to avoid invoking this expensive module
    every time. Luckily, Jason Bodnar already created AuthenCache. Although
    written with AuthenDBI in mind, it works beautifully in this case as
    well. It is _highly_ recommended. After installing it, you need a few
    more lines in httpd.conf; to expand on the above example:

       PerlModule Apache::AuthenCache
       <Files *challenge*>
          AuthName 'your nt or nis+ account'
          AuthType Basic
          PerlSetVar NISPlus_Passwd_Table passwd.org_dir.yoyodyne.com
          PerlSetVar NISPlus_Group_Table group.org_dir.yoyodyne.com
          PerlSetVar NT_Default_Domains 'eng corporate'
          PerlSetVar NT_Controllers 'bapdc:babdc nypdc:nybdc'
          PerlSetVar AuthenCache_casesensitive off



( run in 0.441 second using v1.01-cache-2.11-cpan-5623c5533a1 )