From: Babelo G. <her...@ho...> - 2013-10-03 22:01:55
|
Just to be sure, to apply the patch I do: patch -b /usr/local/pf/lib/authentication.pm -i /home/PFAdmin/Documents/f0660655caeb7205555bc22c9dd88b8aadbc8910.diff Because this way i have this error: Hunk #1 FAILED at 210. 1 out of 1 hunk FAILED -- saving rejects to file authentication.pm.rej This what I have in /usr/local/pf/lib/authentication.pm.rej: --- authentication.pm +++ authentication.pm @@ -210,17 +210,15 @@ push(@authentication_sources, $current_source); $authentication_lookup{$source_id} = $current_source; } - $config->cache->set("authentication_lookup",\%authentication_lookup); $config->cache->set("authentication_sources",\@authentication_sources); }], -oncachereload => [ on_cache_authentication_reload => sub { my ($config, $name) = @_; - my $authentication_lookup_ref = $config->fromCacheUntainted("authentication_lookup"); my $authentication_sources_ref = $config->fromCacheUntainted("authentication_sources"); - if( all_defined($authentication_sources_ref, $authentication_lookup_ref)) { - %authentication_lookup = %$authentication_lookup_ref; + if( defined($authentication_sources_ref) ) { @authentication_sources = @$authentication_sources_ref; + %authentication_lookup = map { $_->id => $_ } @authentication_sources; } else { $config->doCallbacks(1,0); } Thx by advance |