2
2
# Kernel/Config/Defaults.pm - Default Config file for OTRS kernel
3
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
3
# Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
5
# $Id: Defaults.pm,v 1.222 2005/10/31 14:07:29 martin Exp $
5
# $Id: Defaults.pm,v 1.251.2.1 2007/03/04 23:06:13 martin Exp $
7
7
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
8
8
# the enclosed file COPYING for license information (GPL). If you
92
91
# (The database DSN for MySQL ==> more: "man DBD::mysql")
93
92
$Self->{DatabaseDSN} = "DBI:mysql:database=<OTRS_CONFIG_Database>;host=<OTRS_CONFIG_DatabaseHost>;";
95
# (The database DSN for PostgrSQL ==> more: "man DBD::Pg")
94
# (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
96
95
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=<OTRS_CONFIG_Database>;host=<OTRS_CONFIG_DatabaseHost>;";
98
97
# (The database DSN for DBI:ODBC ==> more: "man DBD::ODBC")
123
122
# [default: iso-8859-1]
124
123
$Self->{DefaultCharset} = 'iso-8859-1';
125
124
# $Self->{DefaultCharset} = 'utf-8';
127
# (the default frontend langauge) [default: en]
126
# (the default frontend language) [default: en]
128
127
$Self->{DefaultLanguage} = 'en';
130
129
# (short name = long name and file)
131
130
$Self->{DefaultUsedLanguages} = {
132
131
# bb => 'Bavarian',
135
134
nl => 'Nederlands',
136
136
fr => 'Français',
137
137
bg => 'Bulgarian',
139
140
es => 'Español',
140
141
pt_BR => 'Português Brasileiro',
141
142
pt => 'Português',
142
143
it => 'Italiano',
146
148
nb_NO => 'Norsk bokmål',
148
150
hu => 'Hungarian',
149
zh_CN => 'Traditional Chinese',
151
zh_CN => 'Simplified Chinese',
152
154
# ro => 'Romanian',
153
155
# hr => 'Croatian',
155
156
# sl => 'Slovenian',
278
283
# This is the auth. module againt the otrs db
279
284
$Self->{'AuthModule'} = 'Kernel::System::Auth::DB';
286
# password crypt type (crypt|md5)
287
# $Self->{'AuthModule::DB::CryptType'} = 'crypt';
281
289
# This is an example configuration for an LDAP auth. backend.
282
290
# (take care that Net::LDAP is installed!)
283
291
# $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
308
316
# in your ldap directory exists user@domain.
309
317
# $Self->{'AuthModule::LDAP::UserSuffix'} = '@domain.com';
319
# In case you want to convert all given usernames to lower letters you
320
# should activate this option. It might be helpfull if databases are
321
# in use that do not distinguish selects for upper and lower case letters
322
# (Oracle, postgresql). User might be synched twice, if this option
324
# $Self->{'AuthModule::LDAP::UserLowerCase'} = 0;
311
326
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
312
327
# $Self->{'AuthModule::LDAP::Params'} = {
320
335
# auth. backend. Use it if you want to have a singe login through
321
336
# apache http-basic-auth
322
337
# $Self->{'AuthModule'} = 'Kernel::System::Auth::HTTPBasicAuth';
338
# In case there is a leading domain in the REMOTE_USER, you can
339
# replace it by the next config option.
340
# $Self->{'AuthModule::HTTPBasicAuth::Replace'} = 'example_domain\\';
324
342
# If you use this module, you should use as fallback the following
325
343
# config settings if user isn't login through apache ($ENV{REMOTE_USER})
345
363
# $Self->{UserSyncLDAPGroups} = [
366
# UserSyncLDAPGroupsDefination
367
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
368
# groups to otrs groups, define the following.)
369
# $Self->{'UserSyncLDAPGroupsDefination'} = {
371
# 'cn=agent,o=otrs' => {
383
# 'cn=agent2,o=otrs' => {
390
# UserSyncLDAPRolesDefination
391
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
392
# groups to otrs roles, define the following.)
393
# $Self->{'UserSyncLDAPRolesDefination'} = {
395
# 'cn=agent,o=otrs' => {
400
# 'cn=agent2,o=otrs' => {
404
# UserSyncLDAPAttibuteGroupsDefination
405
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
406
# attributes to otrs groups, define the following.)
407
# $Self->{'UserSyncLDAPAttibuteGroupsDefination'} = {
409
# 'LDAPAttribute' => {
410
# # ldap attribute value
411
# 'LDAPAttributeValue1' => {
424
# 'LDAPAttribute2' => {
425
# 'LDAPAttributeValue' => {
433
# UserSyncLDAPAttibuteRolesDefination
434
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
435
# attributes to otrs roles, define the following.)
436
# $Self->{'UserSyncLDAPAttibuteRolesDefination'} = {
438
# 'LDAPAttribute' => {
439
# # ldap attribute value
440
# 'LDAPAttributeValue1' => {
446
# 'LDAPAttribute2' => {
447
# 'LDAPAttributeValue1' => {
350
454
$Self->{DatabaseUserTable} = 'system_user';
375
479
# this module will be used. This interface use useful to check
376
480
# some user options or to redirect not accept new application
378
# $Self->{PreApplicationModule} = 'Kernel::Modules::AgentInfo';
482
# $Self->{PreApplicationModule}->{AgentInfo} = 'Kernel::Modules::AgentInfo';
379
483
# Kernel::Modules::AgentInfo check key, if this user preferences key
380
484
# is true, then the message is already accepted
381
485
# $Self->{InfoKey} = 'wpt22';
636
740
# Package::RepositoryList
637
741
# (repository list)
638
$Self->{'Package::RepositoryList'} = {
742
# $Self->{'Package::RepositoryList'} = {
639
743
# 'ftp://ftp.example.com/pub/otrs/misc/packages/' => '[Example] ftp://ftp.example.com/',
642
746
# Package::Timeout
643
747
# (http/ftp timeout to get packages)
644
$Self->{'Package::Timeout'} = 12;
748
$Self->{'Package::Timeout'} = 15;
647
751
# (fetch packages via proxy)
652
756
# --------------------------------------------------- #
653
757
$Self->{'PGP'} = 0;
654
758
$Self->{'PGP::Bin'} = '/usr/bin/gpg';
655
$Self->{'PGP::Options'} = '--homedir /var/lib/wwwrun/.gnupg/ --batch --no-tty --yes';
759
$Self->{'PGP::Options'} = '--homedir /opt/otrs/.gnupg/ --batch --no-tty --yes';
656
760
# $Self->{'PGP::Options'} = '--batch --no-tty --yes';
657
761
# $Self->{'PGP::Key::Password'}->{'D2DF79FA'} = 1234;
658
762
# $Self->{'PGP::Key::Password'}->{'488A0B8F'} = 1234;
775
879
# --------------------------------------------------- #
778
881
# notification sender
780
882
$Self->{NotificationSenderName} = 'OTRS Notification Master';
781
883
$Self->{NotificationSenderEmail} = 'otrs@<OTRS_CONFIG_FQDN>';
784
885
# notification email for new password
786
886
$Self->{NotificationSubjectLostPassword} = 'New OTRS Password!';
787
887
$Self->{NotificationBodyLostPassword} = "
788
888
Hi <OTRS_USERFIRSTNAME>,
851
951
# this module will be used. This interface use useful to check
852
952
# some user options or to redirect not accept new application
854
# $Self->{CustomerPanelPreApplicationModule} = 'Kernel::Modules::CustomerAccept';
954
# $Self->{CustomerPanelPreApplicationModule}->{CustomerAccept} = 'Kernel::Modules::CustomerAccept';
855
955
# Kernel::Modules::CustomerAccept check key, if this user preferences key
856
956
# is true, then the message is already accepted
857
957
# $Self->{'CustomerPanel::InfoKey'} = 'CustomerAccept1';
957
1056
# This is an example configuration for an apache ($ENV{REMOTE_USER})
958
1057
# auth. backend. Use it if you want to have a singe login through
959
1058
# apache http-basic-auth
960
1059
# $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
1060
# In case there is a leading domain in the REMOTE_USER, you can
1061
# replace it by the next config option.
1062
# $Self->{'Customer::AuthModule::HTTPBasicAuth::Replace'} = 'example_domain\\';
962
1064
# If you use this module, you should use as fallback the following
963
1065
# config settings if user isn't login through apache ($ENV{REMOTE_USER})
997
1099
CustomerValid => 'valid_id',
998
1100
CustomerUserListFields => ['first_name', 'last_name', 'email'],
999
1101
# CustomerUserListFields => ['login', 'first_name', 'last_name', 'customer_id', 'email'],
1000
CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
1102
CustomerUserSearchFields => ['login', 'first_name', 'last_name', 'customer_id'],
1001
1103
CustomerUserSearchPrefix => '',
1002
1104
CustomerUserSearchSuffix => '*',
1003
1105
CustomerUserSearchListLimit => 250,
1008
1110
# CustomerUserExcludePrimaryCustomerID => 0,
1009
1111
# # generate auto logins
1010
1112
# AutoLoginCreation => 0,
1113
# # generate auto login prefix
1011
1114
# AutoLoginCreationPrefix => 'auto',
1012
1115
# # admin can change customer preferences
1013
1116
# AdminSetPreferences => 1,
1020
1123
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', '', 0 ],
1021
1124
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', '', 0 ],
1022
1125
[ 'UserLogin', 'Username', 'login', 1, 1, 'var', '', 0 ],
1023
[ 'UserPassword', 'Password', 'pw', 0, 1, 'var', '', 0 ],
1126
[ 'UserPassword', 'Password', 'pw', 0, 0, 'var', '', 0 ],
1024
1127
[ 'UserEmail', 'Email', 'email', 0, 1, 'var', '', 0 ],
1025
1128
# [ 'UserEmail', 'Email', 'email', 1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}', 0 ],
1026
1129
[ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var', '', 0 ],
1082
1185
# # show now own tickets in customer panel, CompanyTickets
1083
1186
# CustomerUserExcludePrimaryCustomerID => 0,
1084
1187
# # add a ldap filter for valid users (expert setting)
1085
## CustomerUserValidFilter => '(!(description=gesperrt))',
1188
# # CustomerUserValidFilter => '(!(description=gesperrt))',
1086
1189
# # admin can't change customer preferences
1087
1190
# AdminSetPreferences => 0,
1094
1197
# [ 'UserLogin', 'Username', 'uid', 1, 1, 'var', '', 0 ],
1095
1198
# [ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
1096
1199
# [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
1097
## [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
1200
# # [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
1098
1201
# [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
1099
1202
# [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
1100
1203
# [ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
1171
1274
$Self->{CustomerPreferencesGroups}->{SMIME} = {
1172
1275
Module => 'Kernel::Output::HTML::PreferencesSMIME',
1173
1276
Colum => 'Other Options',
1174
Label => 'SMIME Certificate',
1175
Desc => 'SMIME Certificate Upload',
1277
Label => 'S/MIME Certificate',
1278
Desc => 'S/MIME Certificate Upload',
1176
1279
PrefKey => 'UserSMIMEKey',
1197
1300
$Self->{'Frontend::CommonParam'} = {
1198
1301
# param => default value
1199
1302
# SomeParam => 'DefaultValue',
1303
Action => 'AdminInit',
1201
1305
# --------------------------------------------------- #
1202
1306
# default core objects and params in customer frontend
1280
1384
NavBarName => '',
1281
1385
Title => 'Calendar',
1284
$Self->{'Frontend::Module'}->{'SystemStats'} = {
1285
GroupRo => ['stats'],
1286
Description => 'Stats',
1288
NavBarName => 'Ticket',
1291
Description => 'Stats-Area',
1293
Image => 'stats.png',
1294
Link => 'Action=SystemStats',
1301
1388
# admin interface
1302
1389
$Self->{'Frontend::Module'}->{'Admin'} = {
1303
1390
Group => ['admin'],
1432
1524
$Self->{'Frontend::Module'}->{'AdminSMIME'} = {
1433
1525
Group => ['admin'],
1434
1526
Description => 'Admin',
1435
Title => 'SMIME Management',
1527
Title => 'S/MIME Management',
1436
1528
NavBarName => 'Admin',
1437
1529
NavBarModule => {
1438
1530
Module => 'Kernel::Output::HTML::NavBarModuleAdmin',
1440
1532
Block => 'Block3',
1705
print STDERR "ERROR: Can't read $Self->{Home}/RELEASE: $!";
1797
print STDERR "ERROR: Can't read $Self->{Home}/RELEASE: $! This file is needed by central system parts of OTRS, the system will not work without this file.\n";
1802
print STDERR "ERROR: $Self->{Home}/RELEASE does not exist! This file is needed by central system parts of OTRS, the system will not work without this file.\n";
1708
1805
# load config (again)