X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLdapAuthentication%2FLdapAuthenticationPlugin.php;h=0efaec99b201b8b6d61e0d42f54070242393bfec;hb=546a03b5eac5f172d543a889625e2f4de446e8b7;hp=38ea6e6592356664bb8289cfa6297d3d186baeb3;hpb=19b965d99188fde59cdd39b668df8951bc0f180c;p=quix0rs-gnu-social.git diff --git a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php index 38ea6e6592..0efaec99b2 100644 --- a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php +++ b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php @@ -54,6 +54,8 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin require_once(INSTALLDIR.'/plugins/LdapCommon/LdapCommon.php'); return false; } + + return parent::onAutoload($cls); } function onEndShowPageNotice($action) @@ -112,7 +114,7 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin } $registration_data['nickname'] = $nickname; //set the database saved password to a random string. - $registration_data['password']=common_good_rand(16); + $registration_data['password']=common_random_hexstr(16); return User::register($registration_data); }else{ //user isn't in ldap, so we cannot register him @@ -140,10 +142,10 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin return common_nicknamize($nickname); } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'LDAP Authentication', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:LdapAuthentication', 'rawdescription' =>