Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>tags/v29.0.0beta1
* Returns TRUE if the ldapHost variable starts with 'ldapi://' | * Returns TRUE if the ldapHost variable starts with 'ldapi://' | ||||
*/ | */ | ||||
public function usesLdapi(): bool { | public function usesLdapi(): bool { | ||||
return (substr($this->config['ldapHost'], 0, strlen('ldapi://')) === 'ldapi://'); | |||||
$host = $this->config['ldapHost']; | |||||
return is_string($host) && (substr($host, 0, strlen('ldapi://')) === 'ldapi://'); | |||||
} | } | ||||
} | } |