Created
March 24, 2015 06:53
-
-
Save anonymous/c1c0c3bd08ffd6be0c49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Any configuration directives you include here will override | |
# RT's default configuration file, RT_Config.pm | |
# | |
# To include a directive here, just copy the equivalent statement | |
# from RT_Config.pm and change the value. We've included a single | |
# sample value below. | |
# | |
# This file is actually a perl module, so you can include valid | |
# perl code, as well. | |
# | |
# The converse is also true, if this file isn't valid perl, you're | |
# going to run into trouble. To check your SiteConfig file, use | |
# this comamnd: | |
# | |
# perl -c /etc/rt3/RT_SiteConfig.pm | |
Set( $rtname, 'example.com'); | |
Set( $Organization , "example.com"); | |
# Look into the zoneinfo database for valid values (/usr/share/zoneinfo/) | |
Set( $Timezone , 'US/Eastern'); | |
# Set( $RTAddressRegexp, '(^rt3.*\@example\.com$)' ); | |
Set( $WebBaseURL , "http://rt.example.com"); | |
Set( $WebPath , "/rt3"); | |
Set($DatabasePassword, 'passw0rd'); | |
Set($ExternalAuthPriority, [ 'My_MySQL' ]); | |
Set($ExternalInfoPriority, [ 'My_MySQL' ]); | |
Set($ExternalSettings, { # AN EXAMPLE DB SERVICE | |
'My_MySQL' => { ## GENERIC SECTION | |
# The type of service (db/ldap/cookie) | |
'type' => 'db', | |
# The server hosting the service | |
'server' => 'localhost', | |
## SERVICE-SPECIFIC SECTION | |
# The database name | |
'database' => 'rt3', | |
# The database table | |
'table' => 'Users', | |
# The user to connect to the database as | |
'user' => 'rt_user', | |
# The password to use to connect with | |
'pass' => 'passw0rd', | |
# The port to use to connect with (e.g. 3306) | |
'port' => '3306', | |
# The name of the Perl DBI driver to use (e.g. mysql) | |
'dbi_driver' => 'mysql', | |
# The field in the table that holds usernames | |
'u_field' => 'Name', | |
# The field in the table that holds passwords | |
'p_field' => 'Password', | |
# The Perl package & subroutine used to encrypt passwords | |
# e.g. if the passwords are stored using the MySQL v3.23 "PASSWORD" | |
# function, then you will need Crypt::MySQL::password, but for the | |
# MySQL4+ password function you will need Crypt::MySQL::password41 | |
# Alternatively, you could use Digest::MD5::md5_hex or any other | |
# encryption subroutine you can load in your perl installation | |
'p_enc_pkg' => 'Crypt::MySQL', | |
'p_enc_sub' => 'password', | |
# If your p_enc_sub takes a salt as a second parameter, | |
# uncomment this line to add your salt | |
#'p_salt' => 'SALT', | |
# | |
# The field and values in the table that determines if a user should | |
# be disabled. For example, if the field is 'user_status' and the values | |
# are ['0','1','2','disabled'] then the user will be disabled if their | |
# user_status is set to '0','1','2' or the string 'disabled'. | |
# Otherwise, they will be considered enabled. | |
#'d_field' => 'disabled', | |
#'d_values' => ['0'], | |
## RT ATTRIBUTE MATCHING SECTION | |
# The list of RT attributes that uniquely identify a user | |
'attr_match_list' => [ 'Gecos', | |
'Name' | |
], | |
# The mapping of RT attributes on to field names | |
'attr_map' => { 'Name' => 'Name', | |
'EmailAddress' => 'EmailAddress', | |
'ExternalAuthId' => 'ExternalAuthId', | |
'Gecos' => 'Gecos' | |
} | |
}, | |
}, | |
); | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment