]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Auth/LDAP.pm
Merge branch 'no-cleartext-passwords-in-db'
[mfinanz.git] / SL / Auth / LDAP.pm
index ea9326275524b912268fa0da11d2917174632182..1c8c851613fa105d18edcb9f431e61a1ce027c89 100644 (file)
@@ -2,6 +2,7 @@ package SL::Auth::LDAP;
 
 use English '-no_match_vars';
 
+use Scalar::Util qw(weaken);
 use SL::Auth::Constants qw(:all);
 
 use strict;
@@ -17,6 +18,7 @@ sub new {
   my $self = {};
 
   $self->{auth} = shift;
+  weaken $self->{auth};
 
   bless $self, $type;
 
@@ -178,6 +180,10 @@ sub can_change_password {
   return 0;
 }
 
+sub requires_cleartext_password {
+  return 1;
+}
+
 sub change_password {
   return ERR_BACKEND;
 }