remove the check for the library as fusiondirectory-makentpassword use it internaly
Hello,
the check here for the lib is unecessary
@
/* Check generation of LM/NT password hashes /
/ need the perl Mcrypt library or fusiondirectory-mkntpassword executable */
$query= "mkntpwd 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);
}
@
it sould just test if the command is available and tell the user installing fd that it connot continue
Cheers
(from redmine: issue id 1216, created on 2012-08-05, closed on 2012-08-08)
- Changesets:
- Revision 9fbde32b by Benoit MORTIER on 2012-08-06T07:54:19.000Z:
Fixes: #1216 remove the check for the library as fusiondirectory-makentpassword use it internaly
- Revision 05a3bbac by Benoit MORTIER on 2012-08-06T17:28:40.000Z:
Fixes: #1216 remove the check for the library as fusiondirectory-makentpassword use it internaly