Hier ist sie:
# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2005 Martin Edenhofer <[EMAIL PROTECTED]>
# --
# $Id: Config.pm.dist,v 1.16 2005/05/27 18:12:15 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
# Note:
#
# -->> OTRS does have a lot of config settings. For more settings
# (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
# LDAP, PostMaster, Session, Preferences, ...) see
# Kernel/Config/Defaults.pm and copy your wanted lines into "this"
# config file. This file will not be changed on update!
#
# --
package Kernel::Config;
# --
sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# Start of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'xxxxxxxxx';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} =
"DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
# (The database DSN for PostgrSQL ==> more: "man DBD::Pg")
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a tcpip connection
# $Self->{DatabaseDSN} =
"DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self->{Home} = '/usr/share/otrs';
# **************************************************** #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# **************************************************** #
# $Self->{SessionUseCookie} = 0;
# $Self->{'CheckMXRecord'} = 1;
# --------------------------------------------------- #
# #
# Start of config options!!! #
# CustomerUser stuff #
# #
# --------------------------------------------------- #
# CustomerUser
# (customer user database backend and settings)
$Self->{CustomerUser} = {
Name => 'Database Backend',
Module => 'Kernel::System::CustomerUser::DB',
Params => {
# if you want to use an external database, add the
# required settings
# DSN => 'DBI:odbc:yourdsn',
# DSN => 'DBI:mysql:database=customerdb;host=customerdbhost',
# User => '',
# Password => '',
Table => 'customer_user',
},
# customer uniq id
CustomerKey => 'login',
# customer #
CustomerID => 'customer_id',
CustomerValid => 'valid_id',
CustomerUserListFields => ['first_name', 'last_name', 'email'],
# CustomerUserListFields => ['login', 'first_name', 'last_name',
'customer_id', 'email'],
CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['salutation', 'first_name', 'last_name'],
CustomerUserEmailUniqCheck => 1,
# # show now own tickets in customer panel, CompanyTickets
# CustomerUserExcludePrimaryCustomerID => 0,
# # generate auto logins
# AutoLoginCreation => 0,
# AutoLoginCreationPrefix => 'auto',
# # admin can change customer preferences
# AdminSetPreferences => 1,
# # just a read only source
# ReadOnly => 1,
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required,
storage-type, http-link, readonly
[ 'UserSalutation', 'Salutation', 'salutation', 1, 0, 'var',
'', 0 ],
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var',
'', 0 ],
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var',
'', 0 ],
[ 'UserLogin', 'Username', 'login', 1, 1, 'var',
'', 0 ],
[ 'UserPassword', 'Password', 'pw', 0, 1, 'var',
'', 0 ],
[ 'UserEmail', 'Email', 'email', 0, 1, 'var',
'', 0 ],
# [ 'UserEmail', 'Email', 'email', 1, 1, 'var',
'$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}',
0 ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var',
'', 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0,
'var', '', 0 ],
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var',
'', 0 ],
[ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int',
'', 0 ],
],
# default selections
Selections => {
UserSalutation => {
'Mr.' => 'Mr.',
'Mrs.' => 'Mrs.',
},
},
};
# CustomerUser
# (customer user ldap backend and settings)
# $Self->{CustomerUser} = {
# Name => 'LDAP Backend',
# Module => 'Kernel::System::CustomerUser::LDAP',
# Params => {
# # ldap host
# Host => 'bay.csuhayward.edu',
# # ldap base dn
# BaseDN => 'ou=seas,o=csuh',
# # search scope (one|sub)
# SSCOPE => 'sub',
# # The following is valid but would only be necessary if the
# # anonymous user does NOT have permission to read from the LDAP
tree
# UserDN => '',
# UserPw => '',
# # in case you want to add always one filter to each ldap query,
use
# # this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter
=> '(objectclass=user)'
# AlwaysFilter => '',
# # if your frontend is e. g. iso-8859-1 and the charset of your
# # ldap server is utf-8, use this options (if not, ignore it)
# SourceCharset => 'utf-8',
# DestCharset => 'iso-8859-1',
# # Net::LDAP new params (if needed - for more info see perldoc
Net::LDAP)
# Params => {
# port => 389,
# timeout => 120,
# async => 0,
# version => 3,
# },
# },
# # customer uniq id
# CustomerKey => 'uid',
# # customer #
# CustomerID => 'mail',
# CustomerUserListFields => ['cn', 'mail'],
# CustomerUserSearchFields => ['uid', 'cn', 'mail'],
# CustomerUserSearchPrefix => '',
# CustomerUserSearchSuffix => '*',
# CustomerUserSearchListLimit => 250,
# CustomerUserPostMasterSearchFields => ['mail'],
# CustomerUserNameFields => ['givenname', 'sn'],
# # show now own tickets in customer panel, CompanyTickets
# CustomerUserExcludePrimaryCustomerID => 0,
# # add a ldap filter for valid users (expert setting)
## CustomerUserValidFilter => '(!(description=gesperrt))',
# # admin can't change customer preferences
# AdminSetPreferences => 0,
# Map => [
# # note: Login, Email and CustomerID needed!
# # var, frontend, storage, shown (1=always,2=lite), required,
storage-type, http-link, readonly
# [ 'UserSalutation', 'Title', 'title', 1, 0,
'var', '', 0 ],
# [ 'UserFirstname', 'Firstname', 'givenname', 1, 1,
'var', '', 0 ],
# [ 'UserLastname', 'Lastname', 'sn', 1, 1,
'var', '', 0 ],
# [ 'UserLogin', 'Username', 'uid', 1, 1,
'var', '', 0 ],
# [ 'UserEmail', 'Email', 'mail', 1, 1,
'var', '', 0 ],
# [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1,
'var', '', 0 ],
## [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1,
0, 'var', '', 0 ],
# [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0,
'var', '', 0 ],
# [ 'UserAddress', 'Address', 'postaladdress', 1, 0,
'var', '', 0 ],
# [ 'UserComment', 'Comment', 'description', 1, 0,
'var', '', 0 ],
# ],
# };
# **************************************************** #
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$
$Self->{'SystemID'} = 10;
$Self->{'SecureMode'} = 1;
$Self->{'Organization'} = 'Companity';
$Self->{'LogModule::LogFile'} = '/tmp/otrs.log';
$Self->{'LogModule'} = 'Kernel::System::Log::SysLog';
$Self->{'FQDN'} = 'support.companity.com';
$Self->{'DefaultLanguage'} = 'de';
$Self->{'DefaultCharset'} = 'iso-8859-1';
$Self->{'AdminEmail'} = '[EMAIL PROTECTED]';
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# End of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}
# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
use strict;
use vars qw(@ISA $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
$VERSION = '$Revision: 1.16 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# -----------------------------------------------------#
1;
From: Christian Schoepplein <[EMAIL PROTECTED]>
Reply-To: "User questions and discussions about OTRS.org in German"
<[email protected]>
To: "User questions and discussions about OTRS.org in German"
<[email protected]>
Subject: Re: [otrs-de] OTRS 2.0.1 Feld Telefonnummer und Adresse bei
Kundenanlage einfügen
Date: Tue, 16 Aug 2005 14:13:41 +0200
Hi Andreas,
zeig mir bitte deine gesamte Config.pm (ohne DB-Passwort). Ansonsten
kann ich nur vermuten...
Ciao,
Christian
On Tue, Aug 16, 2005 at 12:06:46PM +0000, Andreas Wilkens wrote:
>Hallo Christian,
>
>Danke für die Info. Ich habe die Tabelle um ein Feld "phone" ergänzt und
>die Sektion "CustomerUser Stuff" aus der Defaults.pm in die Config.pm
>kopiert. Ich bekomme jetzt eine Fehlermeldung:
>
>Can't locate object method "new" via package "Kernel::Config" at
>/usr/share/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfaceAgent.pm
line
>75.
>
>Hast Du einen Tip was ich falsch gemacht habe ?
>
>Danke
>Andreas
>
>
>
>>From: Christian Schoepplein <[EMAIL PROTECTED]>
>>Reply-To: "User questions and discussions about OTRS.org in German"
>><[email protected]>
>>To: "User questions and discussions about OTRS.org in German"
>><[email protected]>
>>Subject: Re: [otrs-de] OTRS 2.0.1 Feld Telefonnummer und Adresse bei
>>Kundenanlage einfügen
>>Date: Tue, 16 Aug 2005 11:44:51 +0200
>>
>>Hallo Andreas,
>>
>>On Sun, Aug 14, 2005 at 05:17:31PM +0000, Andreas Wilkens wrote:
>>>ich benötige einen Tipp wie ich bei der Anlage eines Kunden (Agent legt
>>>Kunde an) zusätzliche Felder für :
>>>Strasse, PLZ, Ort, Telefon
>>>
>>Die zusätzlichen Felder für die Kundeninformationen müsstest du in der
>>customer_user Tabelle hinzufügen. Anschließend trägst du sie in deiner
>>Konfiguration im Mapping für das Customer-Backend mit ein. Dazu
>>überträgst du alle Einstellungen dazu aus der Defaults.pm in deine
>>Config.pm und erweiterst sie um deine Änderungen. Such in der
>>defaults.pm mal nach "CustomerUser Stuff", darunter findest du die für
>>dich wichtigen Abschnitte.
>>
>>>sowie im Ticket ein optionales Feld "Rückrufnummer" anlegen kann.
>>
>>Wie genau meinst du das, was stellst du dir da vor?
>>
>>Ciao,
>>Christian
>>
>>--
>>((otrs)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
>> http://www.otrs.de/ :: Manage your communication!
>>
>
>
>><< signature.asc >>
>
>
>
>
>>_______________________________________________
>>OTRS Mailingliste: otrs-de - Webpage: http://otrs.org/
>>Archiv: http://lists.otrs.org/pipermail/otrs-de/
>>Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
>>Support oder Consulting fuer Ihr OTRS System?
>>=> http://www.otrs.de/
>
>
>_______________________________________________
>OTRS Mailingliste: otrs-de - Webpage: http://otrs.org/
>Archiv: http://lists.otrs.org/pipermail/otrs-de/
>Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
>Support oder Consulting fuer Ihr OTRS System?
>=> http://www.otrs.de/
--
((otrs)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
http://www.otrs.de/ :: Manage your communication!
<< signature.asc >>
_______________________________________________
OTRS Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.de/
_______________________________________________
OTRS Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.de/