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..

Cheers
t0m


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to