Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # --
- # Kernel/Config.pm - Config file for OTRS kernel
- # Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
- # --
- # $Id: Config.pm.dist,v 1.23 2010/01/13 22:25:00 martin Exp $
- # --
- # This software comes with ABSOLUTELY NO WARRANTY. For details, see
- # the enclosed file COPYING for license information (AGPL). If you
- # did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
- # --
- # Note:
- #
- # -->> OTRS does have a lot of config settings. For more settings
- # (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
- # LDAP, PostMaster, Session, Preferences, ...) see
- # Kernel/Config/Defaults.pm and copy your wanted lines into "this"
- # config file. This file will not be changed on update!
- #
- # --
- package Kernel::Config;
- sub Load {
- my $Self = shift;
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- # #
- # Start of your own config options!!! #
- # #
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- # database settings #
- # ---------------------------------------------------- #
- # DatabaseHost
- # (The database host.)
- $Self->{'DatabaseHost'} = 'localhost';
- # Database
- # (The database name.)
- $Self->{'Database'} = 'otrs';
- # DatabaseUser
- # (The database user.)
- $Self->{'DatabaseUser'} = 'otrs';
- # DatabasePw
- # (The password of database user. You also can use bin/otrs.CryptPassword.pl
- # for crypted passwords.)
- $Self->{'DatabasePw'} = 'hot';
- # DatabaseDSN
- # (The database DSN for MySQL ==> more: "man DBD::mysql")
- $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
- $Self->{'Ticket::Responsible'} = '1';
- # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
- # if you want to use a local socket connection
- # $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
- # if you want to use a tcpip connection
- # $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
- #------------------------------------------------------------------------
- #Enable LDAP authentication for Customers / Users
- $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
- $Self->{'Customer::AuthModule::LDAP::Host'} = '192.28.2.20';
- $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'OU=Kunder,DC=test,DC=local';
- $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
- #The following is valid but would only be necessary if the
- #anonymous user do NOT have permission to read from the LDAP tree
- $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,CN=Users,DC=test,DC=local';
- $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'Kebab';
- #CustomerUser
- #(customer user database backend and settings)
- $Self->{CustomerUser} = {
- Module => 'Kernel::System::CustomerUser::LDAP',
- Params => {
- host => '192.28.2.20',
- BaseDN => 'OU=Users,OU=Kunder,DC=test,DC=local',
- SSCOPE => 'sub',
- UserDN =>'CN=otrs,CN=Users,DC=test,DC=local',
- UserPw => 'Kebab',
- },
- # customer unique id
- CustomerKey => 'sAMAccountName',
- # customer #
- CustomerID => 'company',
- CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
- CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
- CustomerUserSearchPrefix => '',
- CustomerUserSearchSuffix => '*',
- CustomerUserSearchListLimit => 250,
- CustomerUserPostMasterSearchFields => ['mail'],
- CustomerUserNameFields => ['givenname', 'sn'],
- Map => [
- # note: Login, Email and CustomerID needed!
- # var, frontend, storage, shown, required, storage-type
- #[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],
- [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
- [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
- [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
- [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
- [ 'UserCustomerID', 'CustomerID', 'company', 0, 1, 'var' ],
- [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
- #[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
- #[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
- ],
- };
- #Add the following lines when only users are allowed to login if they reside in the spicified security group
- #Remove these lines if you want to provide login to all users specified in the User Base DN
- #example: $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=BaseOU, dc=example, dc=com';
- # $Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=otrs_ldap_allow_C,OU=Groups,OU=BaseOU,DC=example,DC=com';
- #$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
- #$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN'
- # ---------------------------------------------------- #
- # fs root directory
- # ---------------------------------------------------- #
- $Self->{Home} = '/opt/otrs';
- # ---------------------------------------------------- #
- # insert your own config settings "here" #
- # config settings taken from Kernel/Config/Defaults.pm #
- # ---------------------------------------------------- #
- # $Self->{SessionUseCookie} = 0;
- # $Self->{CheckMXRecord} = 0;
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- # data inserted by installer #
- # ---------------------------------------------------- #
- # $DIBI$
- $Self->{'DefaultCharset'} = 'utf-8';
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- # #
- # End of your own config options!!! #
- # #
- # ---------------------------------------------------- #
- # ---------------------------------------------------- #
- }
- # ---------------------------------------------------- #
- # needed system stuff (don't edit this) #
- # ---------------------------------------------------- #
- use strict;
- use warnings;
- use vars qw(@ISA $VERSION);
- $VERSION = qw($Revision: 1.23 $)[1];
- use Kernel::Config::Defaults;
- push (@ISA, 'Kernel::Config::Defaults');
- # -----------------------------------------------------#
- 1;
Advertisement
Add Comment
Please, Sign In to add comment