Wahrscheinlich bin ich echt zu blöd, aber ich bekomme es nicht hin. Mein System ein Debian Lenny mit PSQL.
LDAP anbindung funktioniert in allen Modulen zu 100%. Woran ich scheitere ist eine zusätzliche Datenbank für Customer einzubinden. Daten sollen in der gleichen Datenbank wie das System liegen. Apache startet nicht, wenn ich folgendes Eintrage:
Code: Select all
$Self->{CustomerUser1} = {
Name => 'Datenbank Quelle',
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'],
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=$Da
ta{"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.',
},
},
};
Code: Select all
[Fri Jul 03 15:01:28 2009] [error] Can't modify constant item in scalar assignment at /usr/share/otrs/Kernel/Config.pm line 181, near "'customer_id',"\nBEGIN not safe after errors--compilation aborted at /usr/share/otrs//Kernel/Config.pm line 301.\nCompilation failed in require at /usr/share/otrs/scripts/apache2-perl-startup.pl line 32.\nBEGIN failed--compilation aborted at /usr/share/otrs/scripts/apache2-perl-startup.pl line 32.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Jul 03 15:01:28 2009] [error] Can't load Perl file: /usr/share/otrs/scripts/apache2-perl-startup.pl for server ssp-esch-ticket.vesta.lan:0, exiting...
Gruß
Christian