Die Standard Config.pl sieht so aus:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2005 Martin Edenhofer
<martin+code@otrs.org>
# --
# $Id: Config.pm.dist,v 1.16 2005/05/27 18:12:15
martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For
details, see
# the enclosed file COPYING for license information
(GPL). If you
# did not receive this file, see
http://www.gnu.org/licenses/gpl.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'} = 'root';
# 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 PostgrSQL ==> 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:/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:/OTRS/otrs/var/log/otrs.log';
# $DIBI$
$Self->{'SystemID'} = 10;
$Self->{'SecureMode'} = 1;
$Self->{'Organization'} = '';
$Self->{'FQDN'} = 'msm1233';
$Self->{'DefaultLanguage'} = 'de';
$Self->{'DefaultCharset'} = 'iso-8859-1';
$Self->{'AdminEmail'} =
'thomas.bayer@magnet-schultz.de';
#
---------------------------------------------------- #
#
---------------------------------------------------- #
# #
# End of your own config
options!!! #
# #
#
---------------------------------------------------- #
#
---------------------------------------------------- #
}
# ----------------------------------------------------
#
# 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.16 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# -----------------------------------------------------#
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In der Anleitung unter 9.2.2 LDAP sehe ich folgendes
Beispiel:
# CustomerUser
# (customer user ldap backend and settings)
$Self->{CustomerUser} = {
Name => 'LDAP Datenquelle',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'bay.csuhayward.edu',
# ldap base dn
BaseDN => 'ou=seas,o=csuh',
# search scope (one|sub)
SSCOPE => 'sub',
# # The following is valid but would only be necessary if the
# # anonymous user does NOT have permission to read from the LDAP tree
UserDN => '',
UserPw => '',
# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
AlwaysFilter => '',
# if your frontend is e. g. iso-8859-1 and the charset of your
# ldap server is utf-8, use this options (if not, ignore it)
# SourceCharset => 'utf-8',
# DestCharset => 'iso-8859-1',
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
Params => {
port => 389,
timeout => 120,
async => 0,
version => 3,
},
},
# customer uniq id
CustomerKey => 'uid',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['uid', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# show now own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# add a ldap filter for valid users (expert setting)
# CustomerUserValidFilter => '(!(description=gesperrt))',
# admin can't change customer preferences
AdminSetPreferences => 0,
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
[ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'uid', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
wooooooo soll ich das denn hinpacken? Das bisherige in der
config.pl löschen und komplett ersetzen??
Wäre klasse wenn mir einer eine fertige config.pl schicken
könnte ich steig sonst nicht durch ):
Danke!
MAGNET-SCHULTZ stellt aus:
AUTOMATICA MÜNCHEN vom 16.- 19. Mai 2006: Halle B1 Stand 424
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.clearswift.com
**********************************************************************