in reply to Re^3: CGI Application Authentication using multiple drivers
in thread CGI Application Authentication using multiple drivers

Can you point out what am I doing wrong? Thanks
  • Comment on Re^4: CGI Application Authentication using multiple drivers

Replies are listed 'Best First'.
Re^5: CGI Application Authentication using multiple drivers
by Corion (Patriarch) on Jun 25, 2010 at 18:31 UTC

    You write something like:

    DRIVER => [ 'DBI', ... ], DRIVER => [ 'Authen::Simple::LDAP', ... ],

    while the documentation suggests

    DRIVER => [ [ 'Generic', { user1 => '123' } ], [ 'Generic', sub { my ($u, $p) = @_; is_prime($p) ? 1 : 0 } ] ],
      oh - much appreciated.. I had a brain paralysis by looking at the doc and my code for too long.