vorerst: Natürlich habe ich das Forum inkl. der Suche schon durchgelesen, hat mir denke ich auch schon einen guten Teil gebracht, leider funktioniert es immer noch nicht ganz bzw. habe ich noch ein paar Fragen, sollte für euch ne schnelle Sache sein denke ich
So, ich poste mal eben kurz mein configfile:
Code: Select all
# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2009 xxx, 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!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
#LDAP Konfiguration
# ---------------------------------------------------- #
# Agentauthentifizierung #
# ---------------------------------------------------- #
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'dc=DC1';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=MeineFirma,dc=local';
$Self->{'AuthModule::LDAP::UID'} = '1337Imba_OTRS';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS_Admin,OU=Admin,OU=Benutzer,DC=MeineFirma,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'asdf1234';
#--> activate LDAP
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'DC1';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=MeineFirma,dc=local';
$Self->{'AuthModule::LDAP::UID'} = '1337Imba_OTRS';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS_Admin,OU=Admin,OU=Benutzer,DC=MeineFirma,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'asdf1234';
#$Self->{'AuthModule::LDAP::AlwaysFilter'} = '(&(objectclass=user)(mail=*))';
$Self->{'AuthModule::LDAP::Charset'} = 'utf-8';
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# UserSyncLDAPGroups
# (If "LDAP" was selected for AuthModule, you can specify initial
# user groups for first login.)
#--> activate LDAP
$Self->{UserSyncLDAPGroups} = ['user','Benutzer',];
# ===================================================
# LDAP Customer User Authentication [WF]
# ===================================================
$Self->{CustomerUser1} = {
Name => 'Active Directory',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'de1.MeineFirma.local',
BaseDN => 'dc=MeineFirme,dc=local',
SSCOPE => 'sub',
UserDN => 'CCN=OTRS_Admin,OU=Admin,OU=Benutzer,DC=MeineFrma,DC=local'',
UserPw => 'asdf1234',
AlwaysFilter => '(&(objectclass=user)(mail=*))',
DestCharset => 'utf-8',
SourceCharset => 'utf-8',
Params => {
port => 3268,
timeout => 10,
async => 0,
version => 3,
},
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
CustomerUserExcludePrimaryCustomerID => 0,
AdminSetPreferences => 0,
Map => [
#[ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1,'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1,'var', '', 0 ],
[ 'UserLogin', 'Username', '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 ],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0,'var', '', 0 ],
],
};
$Self->{'SendmailModule'} = 'Kernel::System::Email::SMTP';
$Self->{'SendmailModule::Host'} = 'ex01.MeineFirma.local';
$Self->{'SendmailModule::Port'} = 'MeinPort';
#$Self->{'SendmailModule::AuthUser'} = '';
#$Self->{'SendmailModule::AuthPassword'} = '';
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'blabla';
# Database
# (The database name.)
$Self->{'Database'} = 'blabla';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'blabla';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'blabla';
# 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~2/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~2/OTRS/OTRS/var/log/otrs.log';
$Self->{SpellChecker} = '0';
# $DIBI$
$Self->{'SystemID'} = '01';
$Self->{'SecureMode'} = 1;
$Self->{'Organization'} = 'Meine Firma';
$Self->{'LogModule'} = 'Kernel::System::Log::File';
$Self->{'FQDN'} = 'MeinServer';
$Self->{'DefaultLanguage'} = 'de';
$Self->{'AdminEmail'} = 'blabla';
$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);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.21 $)[1];
# -----------------------------------------------------#
1;
So, diese config hab ich hier aus dem Forum von dem Thread ein oder zwei unter mir - laut dem user der sie gepostet hat funktioniert sie perfekt.
Nun hab ich aber ein paar Fragen und zwar:
1. Die schonmal schwerwiegendste Frage, vielleicht liegts ja schon daran - Ich bin mir nicht sicher ob ich alle Felder richtig mit meinen Daten "befüllt" hab. Ich meine die ganzen Felder wie z.B. "CN", "mail", "SAMAccountname" ect. WENN ich dort etwas reingeschrieben habe, stimmt es auch - die Frage jetzt ist nur, ob ich irgendwo wo jetzt noch sowas wie "SAMAccountname" oder sowas drinsteht, dass dann tatsächlich auch da reinschreiben muss. Hört sich vielleicht etwas komisch jetzt an, ich hoffe ihr versteht mich. Ich habe die config Datei oben 1:1 von meim System runterkopiert und nur Firmenname und PW geändert, wenn eben jetzt in einem Feld wo normal eine "Information" rein gehört noch die Bezeichnung dieser Information drinsteht bitte melden, dann muss ich das noch eintragen und wie gesagt, vllt. liegts ja auch schon daran.
2. Im "Template"configfile steht "UserDN => 'CCN=OTRS_Admin,OU=Admin,OU=Benutzer,DC=MeineFrma,DC=local''," - sollte das "CCN" nicht nur "CN" heißen?
3. Dieser Teil "$Self->{UserSyncLDAPGroups} = ['user','Benutzer',];" sind die OUs in denen er die user synchronisieren soll oder? Wenn ja, sucht er auch rekursiv oder muss ich alles einzeln angeben?
Das wars glaub ich schon - vorerst mal
Ich hoffe wirklich es kann mir jemand helfen
Grüße
Gerds
P.S. Hier natürlich noch der Errorlog!
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] Premature end of script headers: index.pl
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] String found where operator expected at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/../../Kernel/Config.pm line 81, near "UserPw => '"\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] (Might be a runaway multi-line '' string starting on line 80)\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] \t(Missing semicolon on previous line?)\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] Bad name after MEINPASSWORT' at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/../../Kernel/Config.pm line 81.\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] Compilation failed in require at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/../../Kernel/System/Web/InterfaceAgent.pm line 21.\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] BEGIN failed--compilation aborted at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/../../Kernel/System/Web/InterfaceAgent.pm line 21.\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] Compilation failed in require at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/index.pl line 42.\r
[Thu Jul 15 16:08:13 2010] [error] [client 10.39.12.39] BEGIN failed--compilation aborted at C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/index.pl line 42.\r