Difference between revisions of "Wiki Setup"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
 
Line 12: Line 12:
  
 
Currently installed extensions:
 
Currently installed extensions:
* [http://www.mediawiki.org/wiki/Extension:LDAP_Authentication Ldap Authentication] version 1.2a (Current as of 9/21/09).
+
* [http://www.mediawiki.org/wiki/Extension:LDAP_Authentication Ldap Authentication] version 1.2a (Current as of 9/21/09).
* [https://www.mediawiki.org/wiki/Extension:Math Math] as of 6/11/2020
+
* [https://www.mediawiki.org/wiki/Extension:Math Math] as of 6/11/2020
  
 
=== Ldap Authentication ===
 
=== Ldap Authentication ===

Latest revision as of 14:20, 11 June 2020

A standard "media wiki" was installed on roentgen (nuclear.unh.edu) in /var/www/nuclear
This was originally in the now defunct "physics" directory, our old physics website. I moved it and made a link "wiki".

Customizations

So far the only changes made to standard install:

  • Pick the skin: monobook -- This is where you could do serious customization of the interface.
  • Change the Logo picture: set $wgLogo to images/UNHNPG_logo.png and put correct image there.

Extensions

Currently installed extensions:

Ldap Authentication

LdapAuthentication.php is located in the wiki folder on Roentgen under extensions. The configuration settings for the extension are located in the LocalSettings.php file.

Settings

These are the settings currently configured for the Ldap Authentication (located at the bottom of LocalSettings.php):

# includes the LDAP Authentication Plugin
require_once( "$IP/extensions/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();

# Sets the name for the LDAP domain
$wgLDAPDomainNames = array( "physics" );

# Sets the domain names of LDAP servers to use
$wgLDAPServerNames = array( "physics" => "einstein.unh.edu"  );

# LDAP binding options
$wgLDAPSearchStrings = array( 
"physics"=>"uid=USER-NAME,ou=People,dc=physics,dc=unh,dc=edu"  
);
$wgLDAPSearchAttributes = array( "physics" => "uid" );
$wgLDAPBaseDNs = array( "physics" => "dc=physics,dc=unh,dc=edu" );

# Specifies the type of encryption to use. TLS is the default, but it's 
# explicitly set here just to be safe.
$wgLDAPEncryptionType = array( "physics" => "tls" );

# Retrieves user information from LDAP
$wgLDAPRetrievePrefs = array( 'physics' => true );

# Disables using the local database for user authentication. 
$wgLDAPUseLocal = false; 


In order for the Ldap Authentication plugin to work you need to add a line to the LdapAuthenticaion.php file that includes AuthPlugin.php. It should look like this:

require_once("AuthPlugin.php");

and should be placed above the line which reads:

class LdapAuthenticationPlugin extends AuthPlugin {

If this isn't included you will just get a blank white page due to a php error.