Skip to content

Commit

Permalink
Merge pull request #34702 from nextcloud/fix/clean-ldap-wizard-typing
Browse files Browse the repository at this point in the history
Clean up LDAP Wizard typing
  • Loading branch information
PVince81 authored Nov 4, 2022
2 parents 966ee67 + 5242a78 commit a736a2b
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 106 deletions.
9 changes: 4 additions & 5 deletions apps/user_ldap/lib/ILDAPWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
namespace OCA\User_LDAP;

interface ILDAPWrapper {

//LDAP functions in use

/**
Expand All @@ -48,7 +47,7 @@ public function bind($link, $dn, $password);
* connect to an LDAP server
* @param string $host The host to connect to
* @param string $port The port to connect to
* @return mixed a link resource on success, otherwise false
* @return resource|\LDAP\Connection|false a link resource on success, otherwise false
*/
public function connect($host, $port);

Expand Down Expand Up @@ -106,23 +105,23 @@ public function firstEntry($link, $result);
* Get attributes from a search result entry
* @param resource|\LDAP\Connection $link LDAP link resource
* @param resource|\LDAP\ResultEntry $result LDAP result resource
* @return array containing the results, false on error
* @return array|false containing the results, false on error
* */
public function getAttributes($link, $result);

/**
* Get the DN of a result entry
* @param resource|\LDAP\Connection $link LDAP link resource
* @param resource|\LDAP\ResultEntry $result LDAP result resource
* @return string containing the DN, false on error
* @return string|false containing the DN, false on error
*/
public function getDN($link, $result);

/**
* Get all result entries
* @param resource|\LDAP\Connection $link LDAP link resource
* @param resource|\LDAP\Result $result LDAP result resource
* @return array containing the results, false on error
* @return array|false containing the results, false on error
*/
public function getEntries($link, $result);

Expand Down
Loading

0 comments on commit a736a2b

Please sign in to comment.