0xDECAFBAD

MovableTypeLDAPAuthors

Revision r1.1 - 21 Dec 2002 - 17:53 GMT - LesOrchard

Introduction

This is a hack for Movable Type to use LDAP when looking up Author records. Every reecord of inetOrgPerson class below a given branch of the LDAP tree will be treated as an MT author, and if necessary a blog will be created for each LDAP-based author.

Authentication depends on using basic authentication on your webserver - ie. using mod_auth_ldap - since LDAP author objects in this hack heck to verify the REMOTE_USER of a webserver-authenticated user, instead of verifying the password stored in MT's author records.

User beware: This is very much a raw hack and will likely require some experience with perl and MT, as well as with LDAP and web server configuation.

Downloads

Installation

In a nutshell: Be sure to back up your MT installation. After that, installation of this hack consists mostly of just unpacking the archive straight into your MT install directory. Then, use mt-ldap.cgi in your browser, or replace mt.cgi with mt-ldap.cgi.

You will also need to configure your web server to use basic authentication on your MT directory, ideally using the same LDAP server that this hack will use. Authors' authentication are checked by matching author username with web server authenticated username

Configuration

At present, all the settings are found in the Author.pm file after the comment "CONFIGURATION VALUES". In these variables, you can set the address of your LDAP server, the base DN for searches, the class for your users, on what attribute to search for UIDs, and a few settings used in blog autocreation.

Also of interest is the subroutine _column_values_from_ldap_entry, which is used to map from LDAP entry attributes to author object properties.

When I grow up, I want to be a computer scientist
Rotating header picture Rotating header picture


Advanced Search

Related Entries

(Disabled, for now.)

Buttons

View items on my Amazon wishlist

Made on a Macintosh Powered by Movable Type <$MTVersion$> Made for Safari Get Firefox You can do better than Microsoft Internet Explorer

Creative Commons License
This work is licensed under a Creative Commons License.