Allows users to login by using external authentication methods.
Note: I chose not to use the existing LDAP module because it did not allow me to use both local Gallery accounts along with the LDAP accounts.
This module replaces the default login link on the user_menu_login. This works for the ajax login but to use the html you need to go to /pam ... I do not know enough about kohana to know how to use the /login url without removing the gallery/controller/login.php file.
Copy the pam folder to the gallery3 modules folder.
$plugin_path = ;
$plugins = array('gallery');
$create_account = true;
mock: will authenticate any matching name/password pair. ex. user/user and if $create_account is true then an account will be created using the name.
The fullname will be "Mock {the name used}" and the email will be set to "{the name used}@email.com"
ad: this is a plugin to authenticate a user via an Active Directory domain controller. It uses the class adLDAP (http://adldap.sourceforge.net/) and assumes that your PHP environment has the LDAP exensions loaded. This plugin has included the adLDAP class version 2.1. I've not tested with later versions.
Login as admin and go to the Gallery Modules page. Check the PAM module and update. The PAM module will replace the "Login" link so that the PAM module will be used instead of the core Login.
By default the "gallery" plugin is in the plugin folder. This allows authentication via the core identity. You should be able to logout and then login again.
If you are not able to login just remove the PAM folder from the modules and refresh your page. Or you can go to the default login by going to {your site url}/login.
I will be adding an OpenID plugin soon.
By using the Mock plugin as an example you should be able to create a connector/plugin to any existing database or web service that will authenticate user credentials.
Jim Sloan (jsloan.email@gmail.com)