wiki:LDAPAuthPlugin

Version 2 (modified by Yu Huang <yuhuang@…>, 6 years ago) (diff)

add the downloading URL for LDAPAuth Plugin

I'm not the developer or maintainer of the LDAPAuthPlugin, and this is not a real reference; just some quick notes on using LDAPAuthPlugin with a standalone tracd:

Prerequisites:

I'm using tracd to serve multiple projects, and have a global trac.ini:

[ldap]
bind_dn =<bind DN>
;e.g. bind_dn = uid=%s,ou=people,dc=foo,dc=bar,dc=moo

server = <ldap server address>

[components]
trac.web.auth.LoginModule = disabled
 
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.web_ui.LoginModule = enabled
 
; be sure to enable the component
ldapauth.store.LDAPStore = enabled
 
[account-manager]
; configure the plugin to store passwords in the htdigest format:
password_store = LDAPStore

This global trac.ini then gets inherited by each trac projects' trac.ini:

# -*- coding: utf-8 -*-
  
[inherit]
file = /my/path/to/trac_projects/trac.ini

...

Start tracd like this:

tracd -p 80 -e /my/path/to/trac_projects