1 .. MediaGoblin Documentation
3 Written in 2012 by MediaGoblin contributors
5 To the extent possible under law, the author(s) have dedicated all
6 copyright and related and neighboring rights to this software to
7 the public domain worldwide. This software is distributed without
10 You should have received a copy of the CC0 Public Domain
11 Dedication along with this software. If not, see
12 <http://creativecommons.org/publicdomain/zero/1.0/>.
21 This plugin is not compatible with the other authentication plugins.
23 This plugin allow your GNU Mediagoblin instance to authenticate against an
26 Set up the ldap plugin
27 ======================
29 1. Install the ``python-ldap`` package.
31 2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::
33 [[mediagoblin.plugins.ldap]]
35 Configuring the ldap plugin
36 ===========================
38 This plugin allows you to use multiple ldap servers for authentication.
40 In order to configure a server, add the following to you MediaGoblin .ini file
41 under the ldap plugin::
43 [[mediagoblin.plugins.ldap]]
45 LDAP_SERVER_URI = 'ldap://ldap.testathon.net:389'
46 LDAP_USER_DN_TEMPLATE = 'cn={username},ou=users,dc=testathon,dc=net'
50 Make any necessary changes to the above to work with your sever. Make sure
51 ``{username}`` is where the username should be in LDAP_USER_DN_TEMPLATE.
53 If you would like to fetch the users email from the ldap server upon account
54 registration, add ``LDAP_SEARCH_BASE = 'ou=users,dc=testathon,dc=net'`` and
55 ``EMAIL_SEARCH_FIELD = 'mail'`` under you server configuration in your
56 MediaGoblin .ini file.
59 By default, this plugin provides no encryption when communicating with the
60 ldap servers. If you would like to use an SSL connection, change
61 LDAP_SERVER_URI to use ``ldaps://`` and whichever port you use. Default ldap
62 port for SSL connections is 636. If you would like to use a TLS connection,
63 add ``LDAP_START_TLS = 'true'`` under your server configuration in your
64 MediaGoblin .ini file.