package Kernel::Config; #package Kernel::System::Auth::LDAP # -- sub Load { my $Self = shift; # ---------------------------------------------------- # # ---------------------------------------------------- # # # # Start of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- # # ---------------------------------------------------- # # system data # # ---------------------------------------------------- # # SecureMode # (Enable this so you can't use the installer.pl) $Self->{SecureMode} = 1; # SystemID # (The identify of the system. Each ticket number and # each http session id starts with this number) $Self->{SystemID} = 10; # TicketHook # (To set the Ticket identifier. Some people want to # set this to e. g. 'Call#', 'MyTicket#' or 'TN'.) $Self->{TicketHook} = 'TO-Ticket#'; # FQDN # (Full qualified domain name of your system.) $Self->{FQDN} = 'xxx.xxx.de'; # AdminEmail # (Email of the system admin.) $Self->{AdminEmail} = 'xxx@xxx.de'; # Organization # (If this is anything other than '', then the email will have an # Organization X-Header) $Self->{Organization} = 'xxx'; # ---------------------------------------------------- # # database settings # # ---------------------------------------------------- # # DatabaseHost # (The database host.) $Self->{DatabaseHost} = 'localhost'; # Database # (The database name.) $Self->{Database} = 'otrs'; # DatabaseUser # (The database user.) $Self->{DatabaseUser} = '?????'; # DatabasePw # (The password of database user. You also can use bin/CryptPassword.pl # for crypted passwords.) $Self->{DatabasePw} = 'xxxxxxxx'; # DatabaseDSN # (The database DSN for MySQL ==> more: "man DBD::mysql") $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};"; # (The database DSN for PostgrSQL ==> more: "man DBD::Pg") # $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};"; # ---------------------------------------------------- # # 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} = 1; # **************************************************** # # ---------------------------------------------------- # # data inserted by installer # # ---------------------------------------------------- # #$DIBI$ $Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement'; $Self->{LogModule::LogFile} = '/tmp/otrs.log'; $Self->{LogModule} = 'Kernel::System::Log::SysLog'; $Self->{DefaultLanguage} = 'de'; $Self->{DefaultCharset} = 'iso-8859-15'; # Activate CustomerGroupUser #$Self->{CustomerGroupSupport} = 1; # ---------------------------------------------------- # # ---------------------------------------------------- # # # # End of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- # # ---------------------------------------------------- # # Control who's let in # # ---------------------------------------------------- # # Agent Access $Self->{'AuthModule::LDAP::GroupDN'} = 'cn=otrsAllowAgent, ou=posixGroups, ou=travelocity, dc=intern, dc=travelocity, dc=de '; $Self->{'AuthModule::LDAP::AccessAttr'} = 'member'; # $Self->{'AuthModule::LDAP::AccessAttr'} = 'sAMAccountName'; $Self->{'AuthModule::LDAP::UserAttr'} = 'DN'; # $Self->{'AuthModule::LDAP::UserAttr'} = 'UID'; # Customer Access $Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'cn=otrsAllowCustomer, ou=posixGroups, ou=travelocity, dc=intern, dc=trave locity, dc=de'; $Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member'; # $Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'sAMAccountName'; $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN'; # $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID'; # ---------------------------------------------------- # # Enable LDAP Authentication 11.1,11.2,11.3 # # ---------------------------------------------------- # $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP'; $Self->{'AuthModule::LDAP::Host'} = 'xxx.intern.travelocity.de'; $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=intern,dc=travelocity,dc=de'; $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName'; # Search User $Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=otrs,cn=Users,dc=intern,dc=travelocity,dc=de'; $Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxx'; # ---------------------------------------------------- # # Enable LDAP Authentication for Customer 11.4 # # ---------------------------------------------------- # $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} = 'xxx.intern.travelocity.de'; # $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=xxx,ou=xxx,ou=travelocity,dc=intern,dc=travelocity,dc=de'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=travelocity,dc=intern,dc=travelocity,dc=de'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName'; $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=xxx,cn=Users,dc=intern,dc=travelocity,dc=de'; $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'xxx'; # ---------------------------------------------------- # # Enable LDAP CustomerUser Einstellungen 11.5 # # ---------------------------------------------------- # $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => 'xxx.intern.travelocity.de', # BaseDN => 'ou=benutzer,ou=edv,ou=travelocity,dc=intern,dc=travelocity,dc=de', BaseDN=> 'ou=travelocity,dc=intern,dc=travelocity,dc=de', SSCOPE => 'sub', UserDN => 'cn=xxx,cn=Users,dc=intern,dc=travelocity,dc=de', UserPw => 'xxx', }, CustomerKey => 'sAMAccountName', CustomerID => 'mail', CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], Map => [ # show now own tickets in customer panel, CompanyTickets CustomerUserExcludePrimaryCustomerID => 1, # # add a ldap filter for valid users (expert setting) # CustomerUserValidFilter => '(!(description=gesperrt))', # # admin can't change customer preferences # AdminSetPreferences => 1, # 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', 'mail', 0,1, 'var'], [ 'UserCustomerID2', 'CustomerID2', 'physicalDeliveryOfficeName', 0,1, 'var'], [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ], # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], ], }; } # Spell Checker #$self->{SpellChecker} = "; $self->{SpellChecker} = '/usr/sbin/ispell'; $self->{SpellCheckerDictDefault} = 'german'; # ---------------------------------------------------- # # needed system stuff (don't edit this) # # ---------------------------------------------------- # use strict; use vars qw(@ISA $VERSION); use Kernel::Config::Defaults; push (@ISA, 'Kernel::Config::Defaults'); $VERSION = '$Revision: 1.13 $'; $VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/; # -----------------------------------------------------# 1;