diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-01-26 12:47:19 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-01-26 12:47:19 +0100 |
commit | b61b906abeb07a21a6651d4533a2f00f68e56796 (patch) | |
tree | c6c4c49e7c59f798a7e136d43c1163f289189759 /apps/user_ldap/lib/Access.php | |
parent | 26682b6936dcc127393655754500a1848d28c7d0 (diff) | |
download | nextcloud-server-b61b906abeb07a21a6651d4533a2f00f68e56796.tar.gz nextcloud-server-b61b906abeb07a21a6651d4533a2f00f68e56796.zip |
do not catch ServerNotAvailable
might cause the user to be unavailable (race condition).
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Access.php')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 43feeb4c1f0..915d8e8e092 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -168,12 +168,14 @@ class Access extends LDAPUtility implements IUserTools { /** * reads a given attribute for an LDAP record identified by a DN + * * @param string $dn the record in question * @param string $attr the attribute that shall be retrieved * if empty, just check the record's existence * @param string $filter * @return array|false an array of values on success or an empty * array if $attr is empty, false otherwise + * @throws ServerNotAvailableException */ public function readAttribute($dn, $attr, $filter = 'objectClass=*') { if(!$this->checkConnection()) { @@ -255,6 +257,7 @@ class Access extends LDAPUtility implements IUserTools { * @return array|bool false if there was any error, true if an exists check * was performed and the requested DN found, array with the * returned data on a successful usual operation + * @throws ServerNotAvailableException */ public function executeRead($cr, $dn, $attribute, $filter, $maxResults) { $this->initPagedSearch($filter, array($dn), array($attribute), $maxResults, 0); |