~ubuntu-branches/ubuntu/natty/otrs2/natty-updates

« back to all changes in this revision

Viewing changes to Kernel/Config/Defaults.pm

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2007-04-14 17:58:55 UTC
  • mto: (20.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: package-import@ubuntu.com-20070414175855-9ne0w01yu1q44ch0
Tags: upstream-2.1.7
ImportĀ upstreamĀ versionĀ 2.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# --
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/
4
4
# --
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 $
6
6
# --
7
7
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
8
8
# the enclosed file COPYING for license information (GPL). If you
23
23
use strict;
24
24
 
25
25
use vars qw(@ISA $VERSION);
26
 
$VERSION = '$Revision: 1.222 $';
 
26
$VERSION = '$Revision: 1.251.2.1 $';
27
27
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
28
28
 
29
 
# --
30
29
sub LoadDefaults {
31
30
    my $Self = shift;
32
31
 
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>;";
94
93
 
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>;";
97
96
 
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';
126
 
    # default langauge
127
 
    # (the default frontend langauge) [default: en]
 
125
    # default language
 
126
    # (the default frontend language) [default: en]
128
127
    $Self->{DefaultLanguage} = 'en';
129
 
    # used langauges
 
128
    # used languages
130
129
    # (short name = long name and file)
131
130
    $Self->{DefaultUsedLanguages} = {
132
131
#            bb => 'Bavarian',
133
132
            en => 'English',
134
133
            de => 'Deutsch',
135
134
            nl => 'Nederlands',
 
135
            fa => 'Persian',
136
136
            fr => 'Fran&ccedil;ais',
137
137
            bg => 'Bulgarian',
138
138
            fi => 'Suomi',
 
139
            el => 'Greek',
139
140
            es => 'Espa&ntilde;ol',
140
141
            pt_BR => 'Portugu&ecirc;s Brasileiro',
141
142
            pt => 'Portugu&ecirc;s',
142
143
            it => 'Italiano',
 
144
            sk_SK => 'Slovak',
143
145
            ru => 'Russian',
144
146
            cz => 'Czech',
145
147
            pl => 'Polski',
146
148
            nb_NO => 'Norsk bokm&aring;l',
147
149
            sv => 'Svenska',
148
150
            hu => 'Hungarian',
149
 
            zh_CN => 'Traditional Chinese',
 
151
            zh_CN => 'Simplified Chinese',
150
152
#            th => 'Thai',
151
 
#            da => 'Dansk',
 
153
            da => 'Dansk',
152
154
#            ro => 'Romanian',
153
155
#            hr => 'Croatian',
154
 
#            sk => 'Slovak',
155
156
#            sl => 'Slovenian',
156
157
#            tr => 'tr',
157
158
#            jp => 'jp',
167
168
#        'host2\.example\.com' => 'SomeTheme1',
168
169
#    };
169
170
 
 
171
    # Frontend::ImagePath
 
172
    # (Define URL of images)
 
173
    $Self->{'Frontend::ImagePath'} = '/otrs-web/images/Standard/';
 
174
 
170
175
    # DefaultViewNewLine
171
176
    # (insert new line in text messages after max x chars and
172
177
    # the next word)
278
283
    # This is the auth. module againt the otrs db
279
284
    $Self->{'AuthModule'} = 'Kernel::System::Auth::DB';
280
285
 
 
286
    # password crypt type (crypt|md5)
 
287
#    $Self->{'AuthModule::DB::CryptType'} = 'crypt';
 
288
 
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';
310
318
 
 
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
 
323
    # is not in use.
 
324
#    $Self->{'AuthModule::LDAP::UserLowerCase'} = 0;
 
325
 
311
326
    # Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
312
327
#    $Self->{'AuthModule::LDAP::Params'} = {
313
328
#        port => 389,
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\\';
323
341
    # Note:
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} = [
346
364
#        'users',
347
365
#    ];
 
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'} = {
 
370
#        # ldap group
 
371
#        'cn=agent,o=otrs' => {
 
372
#            # otrs group
 
373
#            'admin' => {
 
374
#                # permission
 
375
#                rw => 1,
 
376
#                ro => 1,
 
377
#            },
 
378
#            'faq' => {
 
379
#                rw => 0,
 
380
#                ro => 1,
 
381
#            },
 
382
#        },
 
383
#        'cn=agent2,o=otrs' => {
 
384
#            'users' => {
 
385
#                rw => 1,
 
386
#                ro => 1,
 
387
#            },
 
388
#        }
 
389
#    };
 
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'} = {
 
394
#        # ldap group
 
395
#        'cn=agent,o=otrs' => {
 
396
#            # otrs role
 
397
#            'role1' => 1,
 
398
#            'role2' => 0,
 
399
#        },
 
400
#        'cn=agent2,o=otrs' => {
 
401
#            'role3' => 1,
 
402
#        }
 
403
#    };
 
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'} = {
 
408
#        # ldap attribute
 
409
#        'LDAPAttribute' => {
 
410
#            # ldap attribute value
 
411
#            'LDAPAttributeValue1' => {
 
412
#                # otrs group
 
413
#                'admin' => {
 
414
#                    # permission
 
415
#                    rw => 1,
 
416
#                    ro => 1,
 
417
#                },
 
418
#                'faq' => {
 
419
#                    rw => 0,
 
420
#                    ro => 1,
 
421
#                },
 
422
#            },
 
423
#        },
 
424
#        'LDAPAttribute2' => {
 
425
#            'LDAPAttributeValue' => {
 
426
#                'users' => {
 
427
#                    rw => 1,
 
428
#                    ro => 1,
 
429
#                },
 
430
#            },
 
431
#         }
 
432
#    };
 
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'} = {
 
437
#        # ldap attribute
 
438
#        'LDAPAttribute' => {
 
439
#            # ldap attribute value
 
440
#            'LDAPAttributeValue1' => {
 
441
#                # otrs role
 
442
#                'role1' => 1,
 
443
#                'role2' => 1,
 
444
#            },
 
445
#        },
 
446
#        'LDAPAttribute2' => {
 
447
#            'LDAPAttributeValue1' => {
 
448
#                'role3' => 1,
 
449
#            },
 
450
#        },
 
451
#    };
348
452
 
349
453
    # UserTable
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
377
481
    # news)
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';
520
624
        },
521
625
        12 => {
522
626
            24 => 'Christmas',
523
 
            25 => 'First Christmas Day',
524
 
            26 => 'Second Christmas Day',
 
627
            25 => 'Christmas Day',
 
628
            26 => 'Boxing Day',
525
629
            31 => 'Silvester',
526
630
        },
527
631
    };
635
739
 
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/',
640
 
    };
 
744
#    };
641
745
 
642
746
    # Package::Timeout
643
747
    # (http/ftp timeout to get packages)
644
 
    $Self->{'Package::Timeout'} = 12;
 
748
    $Self->{'Package::Timeout'} = 15;
645
749
 
646
750
    # Package::Proxy
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;
774
878
    #                                                     #
775
879
    # --------------------------------------------------- #
776
880
 
777
 
    # --
778
881
    # notification sender
779
 
    # --
780
882
    $Self->{NotificationSenderName} = 'OTRS Notification Master';
781
883
    $Self->{NotificationSenderEmail} = 'otrs@<OTRS_CONFIG_FQDN>';
782
884
 
783
 
    # --
784
885
    # notification email for new password
785
 
    # --
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
853
953
    # news)
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';
953
1053
#        version => 3,
954
1054
#    };
955
1055
 
956
 
 
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\\';
961
1063
    # Note:
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,
1088
1191
#        Map => [
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',
1177
1280
        Prio => 11000,
1178
1281
        Activ => 1,
1197
1300
    $Self->{'Frontend::CommonParam'} = {
1198
1301
        # param => default value
1199
1302
#        SomeParam => 'DefaultValue',
 
1303
        Action => 'AdminInit',
1200
1304
    };
1201
1305
    # --------------------------------------------------- #
1202
1306
    # default core objects and params in customer frontend
1280
1384
        NavBarName      => '',
1281
1385
        Title           => 'Calendar',
1282
1386
    };
1283
 
    # stats
1284
 
    $Self->{'Frontend::Module'}->{'SystemStats'} = {
1285
 
        GroupRo => ['stats'],
1286
 
        Description => 'Stats',
1287
 
        Title => 'Stats',
1288
 
        NavBarName => 'Ticket',
1289
 
        NavBar => [
1290
 
          {
1291
 
            Description => 'Stats-Area',
1292
 
            Name => 'Stats',
1293
 
            Image => 'stats.png',
1294
 
            Link => 'Action=SystemStats',
1295
 
            NavBar => 'Ticket',
1296
 
            Prio => 400,
1297
 
            AccessKey => 't',
1298
 
          },
1299
 
        ],
1300
 
    };
 
1387
 
1301
1388
    # admin interface
1302
1389
    $Self->{'Frontend::Module'}->{'Admin'} = {
1303
1390
        Group => ['admin'],
1321
1408
            Module => 'Kernel::Output::HTML::NavBarModuleAdmin',
1322
1409
        },
1323
1410
    };
 
1411
    $Self->{'Frontend::Module'}->{'AdminInit'} = {
 
1412
        Group => ['admin'],
 
1413
        Description => 'Admin',
 
1414
        Title => 'Init',
 
1415
    };
1324
1416
    $Self->{'Frontend::Module'}->{'AdminUser'} = {
1325
1417
        Group => ['admin'],
1326
1418
        Description => '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',
1439
 
            Name => 'SMIME',
 
1531
            Name => 'S/MIME',
1440
1532
            Block => 'Block3',
1441
1533
            Prio => 500,
1442
1534
        },
1528
1620
    $Self->{'Frontend::Module'}->{'AdminSelectBox'} = {
1529
1621
        Group => ['admin'],
1530
1622
        Description => 'Admin',
1531
 
        Title => 'Select box',
 
1623
        Title => 'SQL Box',
1532
1624
        NavBarName => 'Admin',
1533
1625
        NavBarModule => {
1534
1626
            Module => 'Kernel::Output::HTML::NavBarModuleAdmin',
1535
 
            Name => 'Select Box',
 
1627
            Name => 'SQL Box',
1536
1628
            Block => 'Block4',
1537
1629
            Prio => 700,
1538
1630
        },
1596
1688
 
1597
1689
    # --------------------------------------------------- #
1598
1690
}
1599
 
# --
 
1691
 
1600
1692
sub Get {
1601
1693
    my $Self = shift;
1602
1694
    my $What = shift;
1610
1702
    }
1611
1703
    return $Self->{$What};
1612
1704
}
1613
 
# --
 
1705
 
1614
1706
sub Set {
1615
1707
    my $Self = shift;
1616
1708
    my %Param = @_;
1626
1718
    $Self->{$Param{Key}} = $Param{Value};
1627
1719
    return 1;
1628
1720
}
1629
 
# --
 
1721
 
1630
1722
sub new {
1631
1723
    my $Type = shift;
1632
1724
    my %Param = @_;
1702
1794
            }
1703
1795
        }
1704
1796
        else {
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";
 
1798
            die;
1706
1799
        }
1707
1800
    }
 
1801
    else {
 
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";
 
1803
        die;
 
1804
    }
1708
1805
    # load config (again)
1709
1806
    $Self->Load();
1710
1807
 
1740
1837
 
1741
1838
=head1 VERSION
1742
1839
 
1743
 
$Revision: 1.222 $ $Date: 2005/10/31 14:07:29 $
 
1840
$Revision: 1.251.2.1 $ $Date: 2007/03/04 23:06:13 $
1744
1841
 
1745
1842
=cut