wiki:ApacheUserInfoPlugin

Version 4 (modified by alexandrul, 3 years ago) (diff)

--

Apache User Info plugin

Description

If you're using Apache with mod_auth_ldap then you can use multiple attributes in AuthLDAPURL, all of them being exposed as variables with the default prefix AUTHENTICATE_.

With this plugin you can fill the missing values or override the name and the email address of the user during the login.

Installation

The plugin consists of a single file that must be placed directly into either the project's or the shared plugins directory.

Bugs/Feature Requests

Existing bugs and feature requests for ApacheUserInfoPlugin are here.

If you have any issues, create a new ticket.

Download

You can download the latest version of ApacheUserInfo.py from here.

Source

You can clone ApacheUserInfoPlugin from here using Mercurial, or browse the source directly at Bitbucket.

Example

Enable it in trac.ini:

[components]
apacheuserinfo.* = enabled

[apacheuserinfo]
email_override = true
email_var = AUTHENTICATE_MAIL
name_override = true
name_var = AUTHENTICATE_DISPLAYNAME

The attributes used for mapping must be present in AuthLDAPURL, e.g.:

ldap://host:port/basedn?sAMAccountName,displayName,mail?scope?filter

Recent Changes

[11284] by alexandrul on 2012-02-20 01:03:48
New hack ApacheUserInfoPlugin, created by alexandrul

Author/Contributors

Author: alexandrul
Maintainer: alexandrul
Contributors: