LDAP: change test for Net::LDAP minimal version for ppolicy feature
This commit is contained in:
parent
67124c6bff
commit
bd9c9d13dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user