# -- # Kernel/Config.pm - Config file for OTRS kernel # Copyright (C) 2001-2009 OTRS AG, http://otrs.org/ # -- # $Id: Config.pm.dist,v 1.21 2009/02/16 12:01:43 tr 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/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};"; # (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};"; # ---------------------------------------------------- # # fs root directory # ---------------------------------------------------- # $Self->{Home} = 'C:/PROGRA~1/OTRS/OTRS'; # ---------------------------------------------------- # # insert your own config settings "here" # # config settings taken from Kernel/Config/Defaults.pm # # ---------------------------------------------------- # # $Self->{SessionUseCookie} = 0; # $Self->{'CheckMXRecord'} = 1; # ---------------------------------------------------- # # ---------------------------------------------------- # # data inserted by installer # # ---------------------------------------------------- # $Self->{LogModule} = 'Kernel::System::Log::File'; $Self->{'LogModule::LogFile'} = 'C:/PROGRA~1/OTRS/OTRS/var/log/otrs.log'; $Self->{SpellChecker} = '0'; # $DIBI$ $Self->{'SystemID'} = 10; $Self->{'SecureMode'} = 0; $Self->{'Organization'} = 'Rebekah Childrens Services'; $Self->{'LogModule'} = 'Kernel::System::Log::File'; $Self->{'FQDN'} = 'helpdesk.rcskids.org'; $Self->{'DefaultLanguage'} = 'en'; $Self->{'AdminEmail'} = 'otrstest@rcskids.org'; $Self->{'DefaultCharset'} = 'utf-8'; ###################################################################### #--------------------------------my stuff----------------------------# ###################################################################### #Enable LDAP authentication for Customers / Users $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} = 'dc-gilroy-2.rcskids.org'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=users,dc=rcskids,dc=org'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName'; #CustomerUser #(customer user database backend and settings) $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => 'dc-gilroy-2.rcskids.org', BaseDN => 'OU=staff,DC=rcskids,DC=org', SSCOPE => 'sub', UserDN =>'rcskids\otrsagent', UserPw => 'password', }, # customer unique id CustomerKey => 'sAMAccountName', CustomerID => 'mail', CustomerUserListFields => ['sAMAccountName', 'mail'], CustomerUserSearchFields => ['sAMAccountName','givenname','sn' ], CustomerUserSearchPrefix => '*', CustomerUserSearchSuffix => '*', CustomerUserSearchListLimit => 250, CustomerUserPostMasterSearchFields => ['mail', 'givenname', 'sn'], CustomerUserNameFields => ['cn', 'sn'], Map => [ # var,frontend,storage,shown,required,storage-type, http-link, readonly [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '',0 ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '',0], [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var', '',0], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '',0], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '',0], #[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '',0], ], }; # SendmailModule $Self->{"SendmailModule"} = 'Kernel::System::Email::SMTP'; $Self->{"SendmailModule::Host"} = 'neo.rcskids.org'; $Self->{"SendmailModule::AuthUser"} = 'otrstest@rcskids.org'; $Self->{"SendmailModule::AuthPassword"} = 'password'; # ---------------------------------------------------- # # ---------------------------------------------------- # # # # End of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- # } # ---------------------------------------------------- # # needed system stuff (don't edit this) # # ---------------------------------------------------- # use strict; use warnings; use vars qw(@ISA $VERSION); use Kernel::Config::Defaults; push (@ISA, 'Kernel::Config::Defaults'); use vars qw(@ISA $VERSION); $VERSION = qw($Revision: 1.21 $)[1]; # -----------------------------------------------------# 1;