diff --git a/lib/Service/LDAPConnectionService.php b/lib/Service/LDAPConnectionService.php index dc0ee7b284c13ccc310a2011aec178e91510c679..650313bc52bc2a2d6039a75447754636a76fa995 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; + } }