[gelöst]Backend2

Hilfe zu Znuny Problemen aller Art
Locked
Rene68
Znuny newbie
Posts: 76
Joined: 09 Jun 2010, 14:37
Znuny Version: OTRS 6

[gelöst]Backend2

Post by Rene68 »

Hallo,

ich benötige dringend eure Hilfe,

Ich versuche gerade ein zweites Backend anzubinden, mein System ist OTRS 3.0.0 mysql zweites Backend ist MSSQL.
ODBC ist eingerichtet und getestet.
meine Config.pm ist angepasst

Code: Select all

$Self->{"Database::Type"} = "mssql";
$Self->{CustomerUser} = {
Name => 'vpn',
Module => 'Kernel::System::CustomerUser::DB',
Params => {
DSN => 'DBI:ODBC:CENTRON,
User => 'bbo',
Password => '1',
Table => 'vpn',
},
customer uniq id
CustomerKey => 'UserID',
CustomerID => 'Account_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,
ReadOnly => 1,
Map => [
[ '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','UserID',1, 1, 'var', '', 0 ],
[ 'UserPassword','Password','Password',0, 0, 'var', '', 0 ],
[ 'UserEmail','Email','EMail',1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'AccountID', 0, 1, 'var', '', 0 ],
],
Selections => {
UserSalutation => {
'Mr.' => 'Mr.',
'Mrs.' => 'Mrs.',
},
},
};
bekomme aber folgende Fehlermeldung im OTRS LOg

Unknown database type! Set option Database::Type in Kernel/Config.pm to (mysql|postgresql|oracle|db2|mssql).

hat einer Idee wodran es liegen kann.
Last edited by Rene68 on 07 Dec 2015, 12:49, edited 1 time in total.
OTRS :5
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Backend2

Post by Wolfgangf »

Ich denke, du wirst noch einen DSN brauchen; etwas wie:

$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};"

nur eben für Deine MsSql
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Backend2

Post by jojo »

der Datenbanktyp gehört in die Params Sektion
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Rene68
Znuny newbie
Posts: 76
Joined: 09 Jun 2010, 14:37
Znuny Version: OTRS 6

Re: Backend2

Post by Rene68 »

Hallo Danke schon mal.
@jojo
wie sollte der Eintrag unter Params aussehen?
Kannst du mir da ein Beispiel geben?
OTRS :5
Locked