No edit summary |
m (→Status) |
||
Line 35: | Line 35: | ||
{{#external_value:CommonName}}</nowiki> | {{#external_value:CommonName}}</nowiki> | ||
Here "cn" is the name of the attribute in the LDAP for the entry where attribute "uid" has value " | Here "cn" is the name of the attribute in the LDAP for the entry where attribute "uid" has value "username". This gives the attribute the local variable name "CommonName" which is then displayed by the template. |
Revision as of 23:03, 29 April 2013
This page is about the very wiki you're currently reading. It can hold ideas, thoughts, discussions, and feature requests.
Tips
- To make an image-map (like on the Infra and 19" rack page) check out http://www.image-maps.com.
Feature requests
- Tagcloud? e.g. http://www.mediawiki.org/wiki/Extension:WikiCategoryTagCloud
- http://www.mediawiki.org/wiki/Manual:$wgCapitalLinks
- Single sign-on for this wiki and future stuff
- Ajax support for space state
Keep edits marked as 'minor edit' out of the RSS to reduce spam on IRC'hideminor' => 1 in ~/includes/DefaultSettings.php- Use http://www.mediawiki.org/wiki/Extension:Include to get rid of the iframe on Infra#Which_hosts_are_online.3F, and maybe turn certain lines into hyperlinks to pages describing the hosts? (use "protect page" to prevent fuckery?)
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 "username". This gives the attribute the local variable name "CommonName" which is then displayed by the template.