public function process() { if ($this->getRequest()->isMutation()) { $this->passwordStash->store($this->parameters['password']); $this->getPlatform()->signalEvent('nethserver-samba-adsjoin', array('-u', $this->parameters['login'], '-F', $this->passwordStash->getFilePath(), 'join')); // Check if join is OK: $this->isAuthNeeded = $this->getPlatform()->exec('/usr/bin/sudo /usr/libexec/nethserver/smbads test')->getExitCode() === 0 ? FALSE : TRUE; } }
public function process() { if ($this->getRequest()->isMutation()) { $this->stash->setAutoUnlink(FALSE); $this->getPlatform()->signalEvent('password-modify', array($this->userName, $this->stash->getFilePath())); } }
public function process() { parent::process(); if ($this->getRequest()->isMutation()) { $this->stash->store($this->parameters['newPassword']); $this->getPlatform()->signalEvent('password-modify@post-process', array($this->userName, $this->stash->getFilePath())); } }