X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth%2FLDAP.pm;h=92ee43e2b807ac538d3f4e3e6ffae1ae125a3ce9;hb=38902b24ceed494a2936edfe4d72e8c48e15bce0;hp=ea9326275524b912268fa0da11d2917174632182;hpb=3ceb381944924a7b6a14d69361754422b8b49589;p=kivitendo-erp.git diff --git a/SL/Auth/LDAP.pm b/SL/Auth/LDAP.pm index ea9326275..92ee43e2b 100644 --- a/SL/Auth/LDAP.pm +++ b/SL/Auth/LDAP.pm @@ -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; @@ -25,6 +27,12 @@ sub new { return $self; } +sub reset { + my ($self) = @_; + $self->{ldap} = undef; + $self->{dn_cache} = { }; +} + sub _connect { $main::lxdebug->enter_sub(); @@ -178,6 +186,10 @@ sub can_change_password { return 0; } +sub requires_cleartext_password { + return 1; +} + sub change_password { return ERR_BACKEND; }