diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-09 13:23:13 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-15 16:01:22 -0700 |
commit | 994e70e85eba526a0847e618702966bcf28f65e9 (patch) | |
tree | 925733b2338bb7c3828e10912a01444e0ccac449 /mediagoblin/plugins/ldap | |
parent | 2b55a0f8654d45ca109160459952a7e8bfd1f8f0 (diff) | |
download | mediagoblin-994e70e85eba526a0847e618702966bcf28f65e9.tar.lz mediagoblin-994e70e85eba526a0847e618702966bcf28f65e9.tar.xz mediagoblin-994e70e85eba526a0847e618702966bcf28f65e9.zip |
added docs for ldap plugin
Diffstat (limited to 'mediagoblin/plugins/ldap')
-rw-r--r-- | mediagoblin/plugins/ldap/README.rst | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mediagoblin/plugins/ldap/README.rst b/mediagoblin/plugins/ldap/README.rst new file mode 100644 index 00000000..2539eb18 --- /dev/null +++ b/mediagoblin/plugins/ldap/README.rst @@ -0,0 +1,49 @@ +============= + ldap plugin +============= + +.. Warning: + This plugin is not compatible with the other authentication plugins. + +This plugin allow your GNU Mediagoblin instance to authenticate against an +LDAP server. + +Set up the ldap plugin +====================== + +1. Install the ``python-ldap`` package. + +2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section:: + + [[mediagoblin.plugins.ldap]] + +Configuring the ldap plugin +=========================== + +This plugin allows you to use multiple ldap servers for authentication. + +In order to configure a server, add the following to you MediaGoblin .ini file +under the ldap plugin:: + + [[mediagoblin.plugins.ldap]] + [[[server1]]] + LDAP_SERVER_URI = 'ldap://ldap.testathon.net:389' + LDAP_USER_DN_TEMPLATE = 'cn={username},ou=users,dc=testathon,dc=net' + [[[server2]]] + ... + +Make any necessary changes to the above to work with your sever. Make sure +``{username}`` is where the username should be in LDAP_USER_DN_TEMPLATE. + +If you would like to fetch the users email from the ldap server upon account +registration, add ``LDAP_SEARCH_BASE = 'ou=users,dc=testathon,dc=net'`` and +``EMAIL_SEARCH_FIELD = 'mail'`` under you server configuration in your +MediaGoblin .ini file. + +.. Warning: + By default, this plugin provides no encryption when communicating with the + ldap servers. If you would like to use an SSL connection, change + LDAP_SERVER_URI to use ``ldaps://'' and whichever port you use. Default ldap + port for SSL connections is 636. If you would like to use a TLS connection, + add ``LDAP_START_TLS = 'true'`` under your server configuration in your + MediaGoblin .ini file. |