LDAP: change test for Net::LDAP minimal version for ppolicy feature

This commit is contained in:
Clément Oudot 2010-03-24 15:53:55 +00:00
parent 67124c6bff
commit bd9c9d13dc

View File

@ -98,12 +98,10 @@ sub loadPP {
return 1 if ($ppLoaded); return 1 if ($ppLoaded);
# Minimal version of Net::LDAP required # Minimal version of Net::LDAP required
eval { use Net::LDAP 0.38 }; if ( $Net::LDAP::VERSION < 0.38 ) {
if ($@) { $self->{portal}->abort(
$self->{portal}->lmLog( "Module Net::LDAP is too old for password policy, please install version 0.38 or higher"
"Module Net::LDAP is too old for password policy, please install version 0.38 or higher", );
'error' );
return 0;
} }
# Require Perl module # Require Perl module