Guest User

Untitled

a guest
Jun 21st, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.75 KB | None | 0 0
  1.     # This is the auth. module againt the otrs db
  2.     $Self->{'Customer::AuthModule1'} = 'Kernel::System::CustomerAuth1::DB';
  3.     $Self->{'Customer::AuthModule:DB::Table'} = 'customer_user';
  4.     $Self->{'Customer::AuthModule:DB::CustomerKey'} = 'login';
  5.     $Self->{'Customer::AuthModule:DB::CustomerPassword'} = 'pw';
  6. #    $Self->{'Customer::AuthModule:DB::DSN'} = "DBI:mysql:database=customerdb;host=customerdbhost";
  7. #    $Self->{'Customer::AuthModule:DB::User'} = "some_user";
  8. #    $Self->{'Customer::AuthModule:DB::Password'} = "some_password";
  9.  
  10.     # customer Auth                                        #
  11.     # ---------------------------------------------------- #
  12.     # 1. Customer user backend: DB
  13.     # (customer database backend and settings)
  14.     $Self->{CustomerUser1} = {
  15.        Name => 'Kundendatenbank',
  16.        Module => 'Kernel::System::CustomerUser:DB',
  17.        Params => {
  18.            # if you want to use an external database, add the
  19.            # required settings
  20.            # DSN => 'DBI:odbc:yourdsn',
  21.            # DSN => 'DBI:mysql:database=customerdb;host=customerdbhost',
  22.          # User => '',
  23.          # Password => '',i
  24.        Table => 'customer_user',
  25.     },
  26.     # customer unique id
  27.     CustomerKey => 'login',
  28.     # customer #
  29.     CustomerID => 'customer_id',
  30.     CustomerValid => 'valid_id',
  31.     CustomerUserListFields => ['first_name', 'last_name', 'email'],
  32.     CustomerUserSearchFields => ['login', 'last_name', 'customer_id'],
  33.     CustomerUserSearchPrefix => '',
  34.     CustomerUserSearchSuffix => '*',
  35.     CustomerUserSearchListLimit => 250,
  36.     CustomerUserPostMasterSearchFields => ['email'],
  37.     CustomerUserNameFields => ['title','first_name','last_name'],
  38.     CustomerUserEmailUniqCheck => 1,
  39.     # show not own tickets in customer panel, CompanyTickets
  40.     CustomerUserExcludePrimaryCustomerID => 0,
  41. #    # generate auto logins
  42.     AutoLoginCreation => 0,
  43. #    AutoLoginCreationPrefix => 'auto',
  44.      # admin can change customer preferences
  45.     AdminSetPreferences => 1,
  46. #    # cache time to live in sec. - cache any database queries
  47.     CacheTTL => 0,
  48. #    # just a read only source
  49.     ReadOnly => 1,
  50.     Map => [
  51.         # note: Login, Email and CustomerID needed!
  52.         # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
  53.         [ 'UserTitle',      'Title',      'title',        1, 0, 'var', '', 0 ],
  54.         [ 'UserFirstname',  'Firstname',  'first_name',   1, 1, 'var', '', 0 ],
  55.         [ 'UserLastname',   'Lastname',   'last_name',    1, 1, 'var', '', 0 ],
  56.         [ 'UserLogin',      'Username',   'login',        1, 1, 'var', '', 0 ],
  57.         [ 'UserPassword',   'Password',   'pw',           0, 0, 'var', '', 0 ],
  58.         [ 'UserEmail',      'Email',      'email',        1, 1, 'var', '', 0 ],
  59.         [ 'UserCustomerID', 'CustomerID', 'customer_id',  0, 1, 'var', '', 0 ],
  60.         [ 'UserPhone',      'Phone',      'phone',        1, 0, 'var', '', 0 ],
  61.         [ 'UserFax',        'Fax',        'fax',          1, 0, 'var', '', 0 ],
  62.         [ 'UserMobile',     'Mobile',     'mobile',       1, 0, 'var', '', 0 ],
  63.         [ 'UserStreet',     'Street',     'street',       1, 0, 'var', '', 0 ],
  64.         [ 'UserZip',        'Zip',        'zip',          1, 0, 'var', '', 0 ],
  65.         [ 'UserCity',       'City',       'city',         1, 0, 'var', '', 0 ],
  66.         [ 'UserCountry',    'Country',    'country',      1, 0, 'var', '', 0 ],
  67.         [ 'UserComment',    'Comment',    'comments',     1, 0, 'var', '', 0 ],
  68.         [ 'ValidID',        'Valid',      'valid_id',     0, 1, 'int', '', 0 ],
  69.     ],
  70.     # default selections
  71.     Selections => {
  72.         UserTitle => {
  73.             'Mr.' => 'Mr.',
  74.             'Mrs.' => 'Mrs.',
  75.         },
  76.     },
  77. };
Add Comment
Please, Sign In to add comment