use functions from account.inc for password hashes
This commit is contained in:
parent
45e1686157
commit
ea7788e11b
|
@ -251,13 +251,13 @@ class sambaAccount extends baseModule {
|
|||
if (isset($return[$_SESSION[$this->base]->dn]['modify']['ntPassword']))
|
||||
unset($return[$_SESSION[$this->base]->dn]['modify']['ntPassword']);
|
||||
if (!isset($this->orig['lmPassword'][0])) {
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['lmPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." lm ".escapeshellarg($this->lmPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['ntPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." nt ".escapeshellarg($this->lmPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['lmPassword'][0] = lmPassword($this->lmPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['ntPassword'][0] = ntPassword($this->lmPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['pwdLastSet'][0] = time();
|
||||
}
|
||||
if ($this->lmPassword()!='') {
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['lmPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." lm ".escapeshellarg($this->lmPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['ntPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." nt ".escapeshellarg($this->lmPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['lmPassword'][0] = lmPassword($this->lmPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['ntPassword'][0] = ntPassword($this->lmPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['pwdLastSet'][0] = time();
|
||||
}
|
||||
return $return;
|
||||
|
|
|
@ -258,13 +258,13 @@ class sambaSamAccount extends baseModule {
|
|||
if (isset($return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword']))
|
||||
unset($return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword']);
|
||||
if (!isset($this->orig['sambaLMPassword'][0])) {
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaLMPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." lm ".escapeshellarg($this->sambaLMPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." nt ".escapeshellarg($this->sambaLMPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaLMPassword'][0] = lmPassword($this->sambaLMPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword'][0] = ntPassword($this->sambaLMPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaPwdLastSet'][0] = time();
|
||||
}
|
||||
if ($this->sambaLMPassword()!='') {
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaLMPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." lm ".escapeshellarg($this->sambaLMPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword'][0] = exec(escapeshellarg($_SESSION['lampath'].'lib/createntlm.pl')." nt ".escapeshellarg($this->sambaLMPassword()));
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaLMPassword'][0] = lmPassword($this->sambaLMPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaNTPassword'][0] = ntPassword($this->sambaLMPassword());
|
||||
$return[$_SESSION[$this->base]->dn]['modify']['sambaPwdLastSet'][0] = time();
|
||||
}
|
||||
return $return;
|
||||
|
|
Loading…
Reference in New Issue