This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

wpCAS-w-LDAP

Description

wpCAS-w-LDAP allows you to use your own CAS architecture to authenticate users in your WordPress blog. It also allows you to configure an LDAP connection to get user information for user not already members of your WordPress installation.

Based largely on wpCAS by Casey Bisson, which was largely based on Stephen Schwink‘s CAS Authentication plugin.

CAS From Wikipedia:

The Central Authentication Service (CAS) is a single sign-on protocol for the web. Its purpose is to permit a user to log into multiple applications simultaneously and automatically. It also allows untrusted web applications to authenticate users without gaining access to a user’s security credentials, such as a password. The name CAS also refers to a software package that implements this protocol.

Users who attempt to login to WordPress are redirected to the central CAS sign-on screen. After the user’s credentials are verified, s/he is then redirected back to the WordPress site. If the CAS username matches the WordPress username, the user is recognized as valid and allowed access.

Authorization of that user’s capabilities is based on native WordPress settings and functions. CAS only authenticates that the user is who s/he claims to be.

If the CAS user does not have an account in the WordPress site, depending on the plugin’s settings, the user is either
1. Denied access or
1. Added to the user database with the default role set on the plugin’s options page.

LDAP is included as an option for getting user information when they are being added to the database. If LDAP is available on your installation of PHP, you will be given the option of configuring it for this purpose.

LDAP From Wikipedia

The Lightweight Directory Access Protocol, or LDAP, is an application protocol for querying and modifying directory services running over TCP/IP.

Installation

  1. Download phpCAS and place it on your webserver so that it can be included by the wpCAS-w-LDAP plugin.
  2. Place the plugin folder in your wp-content/plugins/ directory and activate it.
  3. Set any options you want in Settings -> wpCAS with LDAP or in the wpcasldap-conf.php file.
  4. The plugin starts intercepting authentication attempts as soon as you activate it. Use another browser or another computer to test the configuration.

wpcasldap-conf.php

wpCAS-w-LDAP can be configured either via the settings page in the WordPress dashboard, or via a configuration file. See wpcasldap-conf-sample.php for an example. If a config file is used, it overrides any settings that might have been made via the settings page and configured portion of that page are hidden.

Use of wpcasldap-conf.php is recommended for the CAS and LDAP portions of an WordPressMU installations, as doing so hides the settings menu from users. The option to use LDAP, add users, and default role can be left to blog administrators.

FAQ

What version of phpCAS should I use?

wpCAS-w-LDAP has been tested with phpCAS version 1.0.1.

Where do I get phpCAS

http://www.ja-sig.org/wiki/display/CASC/phpCAS

How’s it work?

Users who attempt to login to WordPress are redirected to the central CAS sign-on screen. After the user’s credentials are verified, s/he is then redirected back to the WordPress site. If the CAS username matches the WordPress username, the user is recognized as valid and allowed access. If the CAS username does not exist in WordPress, you can define a function that could provision the user in the site.

What’s the relationship between LDAP and CAS?

There is none.

What if LDAP is not installed on my server?

wpCAS-w-LDAP will ignore attempts to use LDAP and will essentially work just like wpCAS by Casey Bisson.

Doesn’t this already exist?

wpCAS-w-LDAP replicates the functionality of wpCAS by Casey Bisson. It adds LDAP functionality to his original code. I created wpCAS-w-LDAP so that when new users are added my WordPressMU install, they will be added with a full set of information.

Contributors & Developers

“wpCAS-w-LDAP” is open source software. The following people have contributed to this plugin.

Contributors