From 4e2f4db5209c2b87fef236195c4189122e7b7d23 Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Mon, 11 Jul 2022 13:03:26 +0530 Subject: [PATCH] new func to return ldap access --- lib/Service/LDAPConnectionService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Service/LDAPConnectionService.php b/lib/Service/LDAPConnectionService.php index dc0ee7b2..650313bc 100644 --- a/lib/Service/LDAPConnectionService.php +++ b/lib/Service/LDAPConnectionService.php @@ -93,4 +93,12 @@ class LDAPConnectionService { ldap_close($conn); } + + public function getLDAPAccess() + { + if (!$this->access) { + throw new Exception('Access not defined!'); + } + return $this->access; + } } -- GitLab