Hallo,

ich habe ein Problem beim Einbinden unserer eigenen Kundendatenbank in
OTRS. Ich erhalte immer den Fehler
"Got no MainObject! at /opt/otrs//Kernel/System/DB.pm line 84."
wenn ich folgende Ergänzungen in der Config.pm mache:

--- snip ---
    $Self->{CustomerUser1} = {
        Name => 'Kunden',
        Module => 'Kernel::System::CustomerUser::DB',
        Params => {
            DSN => 'DBI:mysql:database=cdb;host=localhost',
            User => 'otrs',
            Password => 'lsjgf45nf44ef443rffde4',
            Table => 'account',
        },
        # customer uniq id
        CustomerKey => 'id',
        # customer #
        CustomerID => 'id',
        CustomerValid => 'state',
        CustomerUserListFields => ['firstname', 'surname', 'email'],
        CustomerUserSearchFields => ['id', 'surname', 'id'],
        CustomerUserSearchPrefix => '',
        CustomerUserSearchSuffix => '*',
        CustomerUserSearchListLimit => 250,
        CustomerUserPostMasterSearchFields => ['email'],
        CustomerUserNameFields => ['title','firstname','surname'],
        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 => 0,
        # 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', 'title',       1, 0,
'var', '', 1 ],
            [ 'UserFirstname',  'Firstname',  'firstname',   1, 1,
'var', '', 1 ],
            [ 'UserLastname',   'Lastname',   'surname',     1, 1,
'var', '', 1 ],
            [ 'UserLogin',      'Username',   'id',          1, 1,
'var', '', 1 ],
            [ 'UserPassword',   'Password',   'pass',        0, 1,
'var', '', 1 ],
            [ 'UserEmail',      'Email',      'email',       0, 1,
'var', '', 1 ],
            [ 'UserCustomerID', 'CustomerID', 'id',          0, 1,
'var', '', 1 ],
            [ 'UserComment',     'Comment',   'info',        1, 0,
'var', '', 1 ],
            [ 'ValidID',         'Valid',     'state',       0, 1,
'int', '', 1 ],
        ],
        # default selections
        Selections => {
            UserSalutation => {
                'Mr.' => 'Herr',
                'Mrs.' => 'Frau',
            },
        },
    };
--- snap ---

Wenn ich diese Zeilen auskommentiere funktioniert wieder alles prima.
Offensichtlich ist da irgend ein Fehler drin. Vielleicht kann mir jemand
sagen was ich falsch mache. Das wäre echt super.

Viele Grüße
        Bastian Schern
_______________________________________________
OTRS-de 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.com/

Antwort per Email an