diff --git a/public_html/deployment/classes/ldap.class.php b/public_html/deployment/classes/ldap.class.php index 36eca987ba1d1164b72a9c99a87189d03d24406a..82e4a57c387cfced3423599f0cb00f6763289b5d 100644 --- a/public_html/deployment/classes/ldap.class.php +++ b/public_html/deployment/classes/ldap.class.php @@ -3,12 +3,12 @@ /** * * IML LDAP CONNECTOR - * - * 2022-02-22 ah added objGet(), sanitizeFilter() - * 2022-08-18 ah mask password (showing 4 chars only) - * 2022-08-22 ah mhash is deprecated - * 2022-08-26 ah fix verifyPassword - * + *<pre> + * 2022-02-22 ah added objGet(), sanitizeFilter() <br> + * 2022-08-18 ah mask password (showing 4 chars only) <br> + * 2022-08-22 ah mhash is deprecated <br> + * 2022-08-26 ah fix verifyPassword <br> + * </pre> * @author axel.hahn@iml.unibe.ch */ class imlldap { @@ -34,6 +34,7 @@ class imlldap { * @var object current ldap connection */ private $_ldapConn = false; + /** * @var bool bind was done? */ @@ -288,7 +289,7 @@ class imlldap { * * @param array $aRecord singel result item * @return array - + */ public function normalizeSearchresult($aLdapSearchresult) { if (!is_array($aLdapSearchresult)){ return false; @@ -300,7 +301,6 @@ class imlldap { } return $aReturn; } - */ /** * sanitize value to put into a search filter @@ -396,8 +396,8 @@ class imlldap { * It returns false if the user does not exist or is * not member of the group 'DnAppNode' (if it was set). * - * @param type $sUser user id (uid) or email (mail) to search - * @param type $aAttributesToGet i.e. array("ou", "sn", "vorname", "mail", "uid", "memberOf") + * @param string $sUser user id (uid) or email (mail) to search + * @param array $aAttributesToGet i.e. array("ou", "sn", "vorname", "mail", "uid", "memberOf") * @return boolean|array */ public function getUserInfo($sUser, $aAttributesToGet = array("*")) { @@ -521,7 +521,7 @@ class imlldap { * this requires a ldap bind with master/ admin account * * @param string $sDn dn to update - * @param string $aItem array of new ldap properties + * @param array $aItem array of new ldap properties * @return boolean */ public function objAdd($sDn, $aItem) {