Skip to content
Snippets Groups Projects
Commit b52e046b authored by David Surville's avatar David Surville
Browse files

Ajout de l'option "useStartTls"

parent 9e942b92
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,11 @@ class ModuleOptions extends AbstractOptions ...@@ -67,6 +67,11 @@ class ModuleOptions extends AbstractOptions
*/ */
protected $accountFilterFormat; protected $accountFilterFormat;
/**
* @var bool
*/
protected $useStartTls;
public function getIterator() { public function getIterator() {
return new \ArrayIterator($this); return new \ArrayIterator($this);
...@@ -244,7 +249,25 @@ class ModuleOptions extends AbstractOptions ...@@ -244,7 +249,25 @@ class ModuleOptions extends AbstractOptions
*/ */
public function setAccountFilterFormat($accountFilterFormat) public function setAccountFilterFormat($accountFilterFormat)
{ {
$this->accountFilterFormat = (boolean)$accountFilterFormat; $this->accountFilterFormat = (string)$accountFilterFormat;
return $this;
}
/**
* @return bool
*/
public function getUseStartTls(): bool
{
return $this->useStartTls;
}
/**
* @param bool $useStartTls
* @return $this
*/
public function setUseStartTls(bool $useStartTls): ModuleOptions
{
$this->useStartTls = $useStartTls;
return $this; return $this;
} }
...@@ -262,6 +285,7 @@ class ModuleOptions extends AbstractOptions ...@@ -262,6 +285,7 @@ class ModuleOptions extends AbstractOptions
'password' => $this->getPassword(), 'password' => $this->getPassword(),
'bindRequiresDn' => $this->getBindRequiresDn(), 'bindRequiresDn' => $this->getBindRequiresDn(),
'baseDn' => $this->getBaseDn(), 'baseDn' => $this->getBaseDn(),
'useStartTls' => $this->getUseStartTls(),
); );
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment