/[virtual-ldap]/bin/ldap-rewrite.pl
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 /bin/ldap-rewrite.pl

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

revision 19 by dpavlin, Mon Mar 16 09:46:47 2009 UTC revision 22 by dpavlin, Mon Mar 16 10:12:57 2009 UTC
# Line 108  sub log_response { Line 108  sub log_response {
108                          foreach my $type ( keys %$data ) {                          foreach my $type ( keys %$data ) {
109    
110                                  my $vals = $data->{$type};                                  my $vals = $data->{$type};
                                 $vals =~ s{#\s*$}{};  
                                   
                                 my @vals = split(/\s*#\s*/, $vals);  
111    
112                                  push @{ $response->{protocolOp}->{searchResEntry}->{attributes} },                                  push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, {
113                                          { type => $config->{overlay_prefix} . $type, vals => [ @vals ] };                                          type => $config->{overlay_prefix} . $type,
114                                            vals => ref($vals) eq 'ARRAY' ? $vals : [ $vals ],
115                                    };
116                          }                          }
117                  }                  }
118    

Legend:
Removed from v.19  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26