/[virtual-ldap]/lib/LDAP/Virtual.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/LDAP/Virtual.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30 by dpavlin, Sat Mar 14 18:21:29 2009 UTC revision 31 by dpavlin, Mon Mar 23 20:24:46 2009 UTC
# Line 43  Provide LDAP server functionality somewh Line 43  Provide LDAP server functionality somewh
43  =cut  =cut
44    
45  our $pids;  our $pids;
 our $cache;  
   
 sub cache {  
         return $cache;  
 }  
46    
47  sub run {  sub run {
48          my $self = shift;          my $self = shift;
# Line 242  sub search { Line 237  sub search {
237    
238          warn "## entries = ",dump( @entries );          warn "## entries = ",dump( @entries );
239    
240  #       $self->cache->write_cache( \@entries, uri_escape( $filter ));          my $path = 'var/' . uri_escape( $filter ) . '.yml';
241            DumpFile( $path, \@entries );
         my $path = uri_escape( $filter );  
         DumpFile( "var/${path}.yml", \@entries );  
242          warn "# created $path ", -s $path, " bytes";          warn "# created $path ", -s $path, " bytes";
243    
244          return RESULT_OK, @entries;          return RESULT_OK, @entries;

Legend:
Removed from v.30  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.26