/[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 85 by dpavlin, Mon Mar 1 19:58:47 2010 UTC revision 86 by dpavlin, Wed Mar 3 20:38:16 2010 UTC
# Line 139  sub log_response { Line 139  sub log_response {
139                  foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) {                  foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) {
140                          if ( $attr->{type} =~ m/date/i ) {                          if ( $attr->{type} =~ m/date/i ) {
141                                  foreach my $i ( 0 .. $#{ $attr->{vals} } ) {                                  foreach my $i ( 0 .. $#{ $attr->{vals} } ) {
142                                          $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([123]\d+)$/;                                          $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([0123]\d+)$/;
143                                  }                                  }
144                          } elsif ( $attr->{type} eq 'hrEduPersonUniqueNumber' ) {                          } elsif ( $attr->{type} eq 'hrEduPersonUniqueNumber' ) {
145                                  foreach my $val ( @{ $attr->{vals} } ) {                                  foreach my $val ( @{ $attr->{vals} } ) {

Legend:
Removed from v.85  
changed lines
  Added in v.86

  ViewVC Help
Powered by ViewVC 1.1.26