CoSign single sign-on integration for Trac


This plugin is inspired by TracCasPlugin and AccountLdapPlugin, adapted to use CoSign single sign-on as the authentication back-end. CoSign is an open-source, secure, single sign-on web authentication system.

Bugs/Feature Requests

Existing bugs and feature requests for TracCoSignPlugin are here.

If you have any issues, create a new ticket.


6 / 6


Download the zipped source from here.


You can check out TracCoSignPlugin from here using Subversion, or browse the source with Trac.


General instructions on installing Trac plugins can be found on the TracPlugins page.

To enable the whole plugin, add the following to your trac.ini file:

traccosign.* = enabled
trac.web.auth.LoginModule = disabled

or enable parts of the plugin:

traccosign.login.* = enabled
traccosign.accountldap.* = enabled
trac.web.auth.LoginModule = disabled

Note: Even if installing locally, you must disable the default LoginModule.


Configurations of traccosign.login are defined in the [cosign] section of your trac.ini file.

Options in the [cosign] section:

  • cosign_service:

Defaults to trac.

  • cosign_login_uri:

Required. Example https://weblogin.your.domain/cgi-bin/login.

  • cosign_logout_uri:

Required. Example https://weblogin.your.domain/cgi-bin/logout.

Configurations of traccosign.accountldap are defined in the [ldap] section of your trac.ini file. Check AccountLdapPlugin for reference.

An example configuration:

traccosign.* = enabled
trac.web.auth.LoginModule = disabled

cosign_service = trac
cosign_login_uri = https://weblogin.localdomain//cgi-bin/login
cosign_logout_uri = https://weblogin.localdomain//cgi-bin/logout

ldap_uri = ldap://localhost:389
bind_user = cn=ldapadmin,dc=foo,dc=bar
bind_passwd = secret
basedn = dc=foo,dc=bar
user_rdn =
attempts = 1
user_filter = uid

Recent Changes

6049 by jiangxin on 2009-06-14 10:59:03
remove hostname/server from [cosign] section; change login_path to login_uri, ... , in [cosign] section.
6048 by jiangxin on 2009-06-14 10:12:16
Change name of options in trac.ini, to make the config file easily parsed by package maintenance scripts.
5327 by jiangxin on 2009-02-28 15:56:59
TracCosignPlugin: Upgrade to 0.1.2


Author: jiangxin
Maintainer: Jiang Xin

Last modified 3 months ago Last modified on Oct 11, 2016, 8:06:21 PM