MediaWiki/Extensions

From Wiki
< MediaWiki
Revision as of 01:55, 6 December 2016 by Marcluer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
$wgSecurityUseDBHook = true; 
require_once("{$IP}/extensions/SimpleSecurity/SimpleSecurity.php");
$wgPageRestrictions['Namespace:Privat']['read'] = 'sysop';
$wgPageRestrictions['Namespace:Spezial']['read'] = 'sysop';
$wgSecurityRenderInfo = false;


require_once("extensions/LdapAuthentication.php");
$wgAuth                   = new LdapAuthenticationPlugin();
$wgLDAPDomainNames        = array("domäne");
$wgLDAPServerNames        = array("domäne"=>"dcdomäne");
$wgLDAPSearchStrings      = array("domäne"=>"domäne\\USER-NAME");
$wgLDAPEncryptionType     = array("domäne"=>"clear");
$wgLDAPUseLocal           = true;
$wgMinimalPasswordLength  = 1;
$wgLDAPUseLocal = false;
$wgLDAPBaseDNs = array( "domain" => "dc=domain,dc=local" );
$wgLDAPSearchAttributes = array( "domain" => "sAMAccountName" );
$wgLDAPPreferences = array( "domain" => "true" );
$wgLDAPDebug = 0; //for debugging LDAP
$wgDebugLogGroups["ldap"] = "/tmp/ldapdebug.log" ; //for debugging LDAP
$wgGroupPermissions['*']['createaccount'] = false;
$wgPasswordPolicy = array(
       'policies' => array(
               'bureaucrat' => array(
                       'MinimalPasswordLength' => 1,
                       'MinimumPasswordLengthToLogin' => 1,
                       'PasswordCannotMatchUsername' => true,
               ),
               'sysop' => array(
                       'MinimalPasswordLength' => 1,
                       'MinimumPasswordLengthToLogin' => 1,
                       'PasswordCannotMatchUsername' => true,
               ),
               'bot' => array(
                       'MinimalPasswordLength' => 1,
                       'MinimumPasswordLengthToLogin' => 1,
                       'PasswordCannotMatchUsername' => true,
               ),
               'default' => array(
                       'MinimalPasswordLength' => 1,
                       'PasswordCannotMatchUsername' => true,
                       'PasswordCannotMatchBlacklist' => true,
                       'MaximalPasswordLength' => 4096,
               ),
       ),
       'checks' => array(
               'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
               'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
               'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
               'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
               'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
       ),
);



require_once("extensions/FCKeditor/FCKeditor.php");


require_once("extensions/WhosOnline/WhosOnline.php");