Wiki: Difference between revisions

From NURDspace
No edit summary
Line 16: Line 16:
* SSL
* SSL
* Migrate current users to [[LDAP]] (including password [http://www.gossamer-threads.com/lists/wiki/mediawiki/101789 if possible] and use LDAP for [http://www.mediawiki.org/wiki/Extension:LDAP_Authentication authentication] from then on.
* Migrate current users to [[LDAP]] (including password [http://www.gossamer-threads.com/lists/wiki/mediawiki/101789 if possible] and use LDAP for [http://www.mediawiki.org/wiki/Extension:LDAP_Authentication authentication] from then on.
== Status ==
The wiki can read information from the [[LDAP]] through the [http://www.mediawiki.org/wiki/Extension:External_Data#.23get_ldap_data_-_retrieve_data_from_LDAP_directory External Data extension]. This is in the LocalSettings.php:
#LDAP lookups
$edgLDAPServer['ldap.nurdspace.nl'] = "ldaps://ldap.nurdspace.nl/";
$edgLDAPBaseDN['ldap.nurdspace.nl'] = "dc=nurdspace,dc=lan";
$edgLDAPUser['ldap.nurdspace.nl'] = "cn=read-user,ou=systems,dc=nurdspace,dc=lan";
$edgLDAPPass['ldap.nurdspace.nl'] = "xxxxxxx";
You can list information from a single entry like so:
<nowiki>
{{#get_ldap_data:
domain=ldap.nurdspace.nl
|filter=(uid=username)
|data=CommonName=cn
}}
{{#external_value:CommonName}}</nowiki>
Here "cn" is the name of the attribute in the LDAP for the entry where attribute "uid" has value "fwd". This gives the attribute the local variable name "CommonName" which is then displayed by the template.

Revision as of 23:02, 29 April 2013

This page is about the very wiki you're currently reading. It can hold ideas, thoughts, discussions, and feature requests.

Tips

Feature requests

Todo

  • Creating an inventory page with a form results in HTTP Error 500 for the user, but the page is saved correctly.
  • SSL
  • Migrate current users to LDAP (including password if possible and use LDAP for authentication from then on.

Status

The wiki can read information from the LDAP through the External Data extension. This is in the LocalSettings.php:

#LDAP lookups
$edgLDAPServer['ldap.nurdspace.nl'] = "ldaps://ldap.nurdspace.nl/";
$edgLDAPBaseDN['ldap.nurdspace.nl'] = "dc=nurdspace,dc=lan";
$edgLDAPUser['ldap.nurdspace.nl'] = "cn=read-user,ou=systems,dc=nurdspace,dc=lan";
$edgLDAPPass['ldap.nurdspace.nl'] = "xxxxxxx";

You can list information from a single entry like so:

{{#get_ldap_data:
domain=ldap.nurdspace.nl
|filter=(uid=username)
|data=CommonName=cn
}}

{{#external_value:CommonName}}

Here "cn" is the name of the attribute in the LDAP for the entry where attribute "uid" has value "fwd". This gives the attribute the local variable name "CommonName" which is then displayed by the template.