@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | /** |
| 502 | 502 | * returns the internal Nextcloud name for the given LDAP DN of the user, false on DN outside of search DN or failure |
| 503 | - * @param string $dn the dn of the user object |
|
| 503 | + * @param string $fdn the dn of the user object |
|
| 504 | 504 | * @param string $ldapName optional, the display name of the object |
| 505 | 505 | * @return string|false with with the name to use in Nextcloud |
| 506 | 506 | */ |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | * the login filter. |
| 787 | 787 | * |
| 788 | 788 | * @param string $loginName |
| 789 | - * @param array $attributes optional, list of attributes to read |
|
| 789 | + * @param string[] $attributes optional, list of attributes to read |
|
| 790 | 790 | * @return array |
| 791 | 791 | */ |
| 792 | 792 | public function fetchUsersByLoginName($loginName, $attributes = array('dn')) { |
@@ -870,7 +870,7 @@ discard block |
||
| 870 | 870 | |
| 871 | 871 | /** |
| 872 | 872 | * @param string $filter |
| 873 | - * @param string|string[] $attr |
|
| 873 | + * @param string[] $attr |
|
| 874 | 874 | * @param int $limit |
| 875 | 875 | * @param int $offset |
| 876 | 876 | * @return array |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | |
| 919 | 919 | /** |
| 920 | 920 | * @param string $filter |
| 921 | - * @param string|string[] $attr |
|
| 921 | + * @param string[] $attr |
|
| 922 | 922 | * @param int $limit |
| 923 | 923 | * @param int $offset |
| 924 | 924 | * @return false|int |
@@ -1018,6 +1018,7 @@ discard block |
||
| 1018 | 1018 | * retrieved. Results will according to the order in the array. |
| 1019 | 1019 | * @param int $limit optional, maximum results to be counted |
| 1020 | 1020 | * @param int $offset optional, a starting point |
| 1021 | + * @param string $filter |
|
| 1021 | 1022 | * @return array|false array with the search result as first value and pagedSearchOK as |
| 1022 | 1023 | * second | false if not successful |
| 1023 | 1024 | * @throws \OC\ServerNotAvailableException |
@@ -1274,7 +1275,7 @@ discard block |
||
| 1274 | 1275 | |
| 1275 | 1276 | /** |
| 1276 | 1277 | * @param string $name |
| 1277 | - * @return bool|mixed|string |
|
| 1278 | + * @return string |
|
| 1278 | 1279 | */ |
| 1279 | 1280 | public function sanitizeUsername($name) { |
| 1280 | 1281 | if($this->connection->ldapIgnoreNamingRules) { |
@@ -1298,6 +1299,7 @@ discard block |
||
| 1298 | 1299 | * escapes (user provided) parts for LDAP filter |
| 1299 | 1300 | * @param string $input, the provided value |
| 1300 | 1301 | * @param bool $allowAsterisk whether in * at the beginning should be preserved |
| 1302 | + * @param string $input |
|
| 1301 | 1303 | * @return string the escaped string |
| 1302 | 1304 | */ |
| 1303 | 1305 | public function escapeFilterPart($input, $allowAsterisk = false) { |