[otrs-cvs] CVS: otrs/Kernel/System/Auth HTTPBasicAuth.pm,1.4,1.5

cvs-log at otrs.org cvs-log at otrs.org
Thu Nov 9 09:31:17 CET 2006


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

Modified Files:
	HTTPBasicAuth.pm 
Log Message:
added AuthModule::HTTPBasicAuth::Replace and Customer::AuthModule::HTTPBasicAuth::Replace config option to HTTPBasicAuth modules to strip e. g. domains like example_domain\user from login down to user

Index: HTTPBasicAuth.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Auth/HTTPBasicAuth.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** HTTPBasicAuth.pm	29 Aug 2006 17:28:44 -0000	1.4
--- HTTPBasicAuth.pm	9 Nov 2006 08:31:15 -0000	1.5
***************
*** 70,73 ****
--- 70,77 ----
      my $RemoteAddr = $ENV{REMOTE_ADDR} || 'Got no REMOTE_ADDR env!';
      if ($User) {
+         my $Replace = $Self->{ConfigObject}->Get('AuthModule::HTTPBasicAuth::Replace');
+         if ($Replace) {
+             $User =~ s/^\Q$Replace\E//;
+         }
          $Self->{LogObject}->Log(
              Priority => 'notice',



More information about the cvs-log mailing list