Commit 7d443964 authored by Nigel McNie's avatar Nigel McNie
Browse files

Added LDAP authentication plugin. Thanks very much to Howard Miller of Glasgow University!

It's based on a combination of the Mahara IMAP plugin and the Moodle LDAP plugin.

I cleaned up the code style and internationalised the language strings.
parent 857bef23
<?php
/**
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @subpackage auth-internal
* @author Nigel McNie <nigel@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined('INTERNAL') || die();
$string['contexts'] = 'Contexts';
$string['distinguishedname'] = 'Distinguished name';
$string['hosturl'] = 'Host URL';
$string['ldapfieldforemail'] = 'LDAP field for Email';
$string['ldapfieldforfirstname'] = 'LDAP field for First Name';
$string['ldapfieldforsurname'] = 'LDAP field for Surname';
$string['ldapversion'] = 'LDAP version';
$string['password'] = 'Password';
$string['searchsubcontexts'] = 'Search subcontexts';
$string['userattribute'] = 'User attribute';
$string['usertype'] = 'User type';
$string['weautocreateusers'] = 'We auto-create users';
?>
<h3>Distinguished name</h3>
<p>If you want to use bind-user to search users, specify it here.
Something like 'cn=ldapuser,ou=public,o=org'. Leave this blank
for anonymous bind</p>
<h3>Password</h3>
<p>The password for the Distinguished name</p>
<h3>Contexts</h3>
<p>List of contexts where users are located. Separate different
contexts with ';'. (e.g., 'ou=users,o=org;ou=other,o=org')</p>
<h3>LDAP field for email</h3>
<p>Enter the name of the field in the LDAP record
that contains the user's email address</p>
<h3>LDAP field for First Name</h3>
<p>Enter the name of the field in the LDAP record
that contain's the user's first name.</p>
<h3>Host UR:</h3>
<p>Specify hosts in URL form (e.g. ldap://ldap.myorg.com').
Separate multiple servers with ';' for failover support</p>
<h3>Search subcontexts</h3>
<p>Search for user in subcontexts</p>
<h3>LDAP field for Surname</h3>
<p>Enter the name of the field in the LDAP record that
contains the user's last name</p>
<h3>User attribute</h3>
<p>The attribute used to search for users (often 'cn')</p>
<h3>User type</h3>
<p>Select how users are stored in LDAP</p>
<h3>LDAP version</h3>
<p>The version of the LDAP protocol your server is using</p>
<h3>We auto-create users</h3>
<p>Users that successfully authenticate but are not currently Mahara users
will have an acount created automatically</p>
This diff is collapsed.
<?php
/**
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package mahara
* @subpackage auth-ldap
* @author Howard Miller <howard.miller@udcf.gla.ac.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2008 Howard Miller <howard.miller@udcf.gla.ac.uk>
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*/
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008012400;
$config->release = '0.1';
$config->requires_config = 1;
$config->requires_parent = 0;
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment