[otrs-cvs] CVS: otrs/Kernel/System/Auth LDAP.pm,1.18,1.19

cvs-log at otrs.org cvs-log at otrs.org
Tue Jul 11 15:00:28 CEST 2006


Update of /home/cvs/otrs/Kernel/System/Auth
In directory lancelot:/tmp/cvs-serv25485/Kernel/System/Auth

Modified Files:
	LDAP.pm 
Log Message:
added missing utf-8 encoding

Index: LDAP.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Auth/LDAP.pm,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** LDAP.pm	29 Jan 2006 11:45:51 -0000	1.18
--- LDAP.pm	11 Jul 2006 12:00:26 -0000	1.19
***************
*** 254,260 ****
--- 254,264 ----
                      foreach (keys %{$Self->{ConfigObject}->Get('UserSyncLDAPMap')}) {
                          $SyncUser{$_} = $Entry->get_value($Self->{ConfigObject}->Get('UserSyncLDAPMap')->{$_});
+                         # e. g. set utf-8 flag
+                         $Self->{EncodeObject}->Encode(\$SyncUser{$_});
                      }
                      if ($Entry->get_value('userPassword')) {
                          $SyncUser{Pw} = $Entry->get_value('userPassword');
+                         # e. g. set utf-8 flag
+                         $Self->{EncodeObject}->Encode(\$SyncUser{Pw});
                      }
                  }
***************
*** 407,411 ****
          # take down session
          $LDAP->unbind;
!         return $Param{User};
      }
  }
--- 411,415 ----
          # take down session
          $LDAP->unbind;
!         return uc($Param{User});
      }
  }
***************
*** 416,419 ****
--- 420,424 ----
      my $Charset = shift;
      if (!$Charset || !$Self->{DestCharset}) {
+         $Self->{EncodeObject}->Encode(\$Text);
          return $Text;
      }



More information about the cvs-log mailing list