1. sheila dada
  2. TracPlugin

Overview

HTTPS SSH
= TracTicketValidatorPlugin =

== description ==
 * support validate anonymous to input valid email address
 * support required fields
 * support match fields to regular expression
 * support authentication using LDAP (version 0.11 - software express)

= Install =
 You can install this software as normal Trac plugin.

 1. Uninstall TracTicketTemplate if you have installed before.

 2. Change to the directory containning setup.py.

 3. If you want to install this plugin globally, that will install this plugin to the python path:
  * python setup.py install

 4. If you want to install this plugin to trac instance only:
  * python setup.py bdist_egg
  * copy the generated egg file to the trac instance's plugin directory
  {{{
cp dist/*.egg /srv/trac/env/plugins
}}}

 5. Config trac.ini:
  {{{
[components]
ticketvalidator.* = enabled

[ticketvalidator]
validate_author = true
validate_author.tip = Please fill your valid email address
validates = summary, comment, cc
comment.method = regex ; (version 0.11 - software express)
comment.rule = .*
comment.tip = Please input comment
cc.method = ldap ; method that will validate the data. It can be "regex" or "method". (version 0.11 - software express)
cc.isMail = true ; if this variable is true and the value field isn't an email, it will be replaced with valuefield + @softwareexpress.com.br (version 0.11 - software express)
cc.isList = true ; value field must be a list (version 0.11 - software express)
cc.ldapquery = (mail={campo}) ; query that will be used in ldap search (version 0.11 - software express)
cc.ldapattribute = mail ; attribute that will be shown in the search result (version 0.11 - software express)
server_uri= ldap://server   ; ldap active directory server URI (version 0.11 - software express)
                            ; use ldaps://server:636 url for ldaps,
                            ; use  ldap://server for ldap without tls (and set start_tls to 0),
                            ; use  ldap://server for ldap with tls (and set start_tls to 1 or 2).
bind_dn= buscaldap@paulista.local   ; Be careful if you need a % char in those strings - as they are used as  (version 0.11 - software express)
                                    ; a format string, you have to write %% to get a single % in the end.
                                    ; or we can use the username and password we got from the user:
                                    ; bind_dn = '%(username)s@example.org' # DN we use for first bind (AD)
                                    ; bind_pw = '%(password)s' # password we use for first bind
                                    ; or we can bind anonymously (if that is supported by your directory).
                                    ; In any case, bind_dn and bind_pw must be defined
bind_pw= secret                     ; (version 0.11 - software express)
base_dn = cn=admin,dc=example,dc=org  ; # (OpenLDAP) (version 0.11 - software express)
}}}

 6. If you are installing this plugin first time, you can copy description.tmpl to your/trac/environment/templates to utilize some default ticket templates.