| @@ 216-228 (lines=13) @@ | ||
| 213 | * |
|
| 214 | * @return Ldaph |
|
| 215 | */ |
|
| 216 | final public function ssl($mode = true) { |
|
| 217 | ||
| 218 | $mode = filter_var($mode, FILTER_VALIDATE_BOOLEAN); |
|
| 219 | ||
| 220 | if ( $mode === true ) { |
|
| 221 | $this->ssl = true; |
|
| 222 | } else { |
|
| 223 | $this->ssl = false; |
|
| 224 | } |
|
| 225 | ||
| 226 | return $this; |
|
| 227 | ||
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * Enable/disable tls for connection |
|
| @@ 237-249 (lines=13) @@ | ||
| 234 | * |
|
| 235 | * @return Ldaph |
|
| 236 | */ |
|
| 237 | final public function tls($mode = true) { |
|
| 238 | ||
| 239 | $mode = filter_var($mode, FILTER_VALIDATE_BOOLEAN); |
|
| 240 | ||
| 241 | if ( $mode === true ) { |
|
| 242 | $this->tls = true; |
|
| 243 | } else { |
|
| 244 | $this->tls = false; |
|
| 245 | } |
|
| 246 | ||
| 247 | return $this; |
|
| 248 | ||
| 249 | } |
|
| 250 | ||
| 251 | /** |
|
| 252 | * Enable/disable single sign on |
|