Hello OTRS fans,

I'm trying to set up two backends for our customers: internal DB and LDAP
Until now, I only had LDAP and it worked fine.
To enable internal DB, I added in Config.pm:

$Self->{'AuthModule2'} = 'Kernel::System::Auth::DB';
$Self->{'AuthModule::DB::CryptType2'} = 'crypt';

This allowed me to create users in the Agent interface, but I can't connect on 
the customer interface with the user created.

I also added the following, like described in the doc 
http://doc.otrs.org/2.2/en/html/x1570.html#multiple-customer-backends:

# 1. Customer user backend: DB
    # (customer user database backend and settings)
    $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=$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.',
            },
        },
    };


Of course, LDAP config was renamed:

    #CustomerUser
    #(customer user LDAP backend and settings)
    $Self->{CustomerUser2} = {
      Module => 'Kernel::System::CustomerUser::LDAP',
      Params => {
[...]

If someone here has such a working config, can you send it to me so that I can 
learn how it works and adapt it to my needs ?

Thanks and regards,

Régis
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/

Reply via email to