[Catalyst] progressive authentication via db & LDAP

Tomas Doran bobtfish at bobtfish.net
Mon Jan 24 22:01:31 GMT 2011

On 24 Jan 2011, at 15:17, piccard wrote:

> Is there a possibilty to map the keys, so they also work for a LDAP- 
> authentication?

Yes, there is. You'll need to patch the code, but the patch would be  
very welcome upstream.

Add an authinfo_remap key to the config, and the code...

if ( my $map = $self->config->{authinfo_remap}->{$realm->name} ) {
	foreach my $from (keys %$map) {
             $auth->{$map->{$from}} = delete $auth->{$from};

or something similar... Add a couple of tests to that, and you're done..


More information about the Catalyst mailing list