Commit 9fbde32b authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #1216 remove the check for the library as fusiondirectory-makentpassword use it internaly

parent bdec8f7e
......@@ -133,15 +133,10 @@ class Step_Checks extends setup_step
$this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
/* Check generation of LM/NT password hashes */
/* need the perl Mcrypt library or fusiondirectory-mkntpassword executable */
$query= "mkntpwd 2>&1";
/* need the perl Mcrypt library and fusiondirectory-mkntpassword executable */
$query= "fusiondirectory-mkntpassword 2>&1";
$output= shell_exec ($query);
$have_mkntpwd= preg_match("/^Usage: fusiondirectory-mkntpassword /", $output);
if (!$have_mkntpwd){
$query= 'LC_ALL=C LANG=C perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen $ARGV[0]), $/;" >/dev/null';
system ($query, $ret);
$have_mkntpwd |= ($ret == 0);
}
$N = msgPool::checkingFor(_("samba hash generator"));
$D = _("FusionDirectory requires this command to synchronize POSIX and samba passwords.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment