diff options
author | Vincent Van Houtte <vvh@aplusv.be> | 2022-09-05 14:39:03 +0200 |
---|---|---|
committer | Vincent Van Houtte <vvh@aplusv.be> | 2022-09-09 16:53:05 +0200 |
commit | c323022d06a2fb76745e626452ea035121f35ca9 (patch) | |
tree | d5cc951f43cd6d3b8ef815b1982cfd2a8722aeea /apps/user_ldap/lib/Configuration.php | |
parent | f56ecf92426026c913497bea9f7ca99e8d3ac631 (diff) | |
download | nextcloud-server-c323022d06a2fb76745e626452ea035121f35ca9.tar.gz nextcloud-server-c323022d06a2fb76745e626452ea035121f35ca9.zip |
Add ldap-unix-socket support - squashed commits to files Connection.php, Configuration.php, Wizard.php, LDAP.php and view.js
Signed-off-by: Vincent Van Houtte <vvh@aplusv.be>
Diffstat (limited to 'apps/user_ldap/lib/Configuration.php')
-rw-r--r-- | apps/user_ldap/lib/Configuration.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php index c16823d39ee..76766df7134 100644 --- a/apps/user_ldap/lib/Configuration.php +++ b/apps/user_ldap/lib/Configuration.php @@ -559,4 +559,11 @@ class Configuration { } return $defaultAttributes; } + + /** + * Returns TRUE if the ldapHost variable starts with 'ldapi://' + */ + public function usesLdapi(): bool { + return (substr($this->config['ldapHost'], 0, strlen('ldapi://')) === 'ldapi://'); + } } |