Hallo,# --
ich bekomme folgende Fehlermeldung :
Jun 30 11:25:18 ubuntu-nagios OTRS-CGI-10[15590]: [Notice][Kernel::System::Auth::LDAP::Auth] User: wankerue (CN=Wanke, Rüdiger,OU=DaKS,OU=Muenster,DC=alexianer,DC=dc) authentication ok (REMOTE_ADDR: 10.12.9.58).
Jun 30 11:25:18 ubuntu-nagios OTRS-CGI-10[15590]: [Error][Kernel::System::Auth::LDAP::Auth][Line:401]: Old config setting detected, please use the new one from Kernel/Config/Defaults.pm (User* has been added!).
Jun 30 11:25:19 ubuntu-nagios last message repeated 2 times
Jun 30 11:25:19 ubuntu-nagios OTRS-CGI-10[15590]: [Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'wankerue'!!!
Jun 30 11:25:19 ubuntu-nagios OTRS-CGI-10[15590]: [Error][Kernel::System::User::UserAdd][Line:252]: Need UserFirstname!
Jun 30 11:25:20 ubuntu-nagios OTRS-CGI-10[15590]: [Error][Kernel::System::Auth::LDAP::Auth][Line:476]: Can't create user 'wankerue' (CN=Wanke, Rüdiger,OU=DaKS,OU=Muenster,DC=alexianer,DC=dc) in RDBMS!
Die Anmeldung der Kunden läuft einwandfrei :
Jun 30 11:31:44 ubuntu-nagios OTRS-CGI-10[15587]: [Notice][Kernel::System::CustomerAuth::LDAP::Auth] CustomerUser: testa.aac (CN=testa.aac,OU=Aachen,DC=alexianer,DC=dc) authentification ok (REMOTE_ADDR: 10.12.9.58).
Nur werden die Kundendaten nicht in MySQL abgespeichert.
Ich verwende folgende Config.pm :
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.20 2008/03/07 16:50:44 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-2.0.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'} = 'xxxxxxx';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
# ---------------------------------------------------- #
# 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->{'SystemID'} = 10;
$Self->{'SecureMode'} = 1;
$Self->{'Organization'} = '';
$Self->{'LogModule::LogFile'} = '/tmp/otrs.log';
$Self->{'LogModule'} = 'Kernel::System::Log::SysLog';
$Self->{'FQDN'} = 'ubuntu-nagios.alexianer.dc';
$Self->{'DefaultLanguage'} = 'de';
$Self->{'AdminEmail'} = 'r.wanke@alexianer.de';
$Self->{'DefaultCharset'} = 'utf-8';
# This is the auth. module againt the otrs db
$Self->{'AuthModule'} = 'Kernel::System::Auth::DB';
$Self->{'AuthModule::DB::Table'} = 'customer_user';
$Self->{'AuthModule::DB::Key'} = 'login';
$Self->{'AuthModule::DB::Password'} = 'pw';
#Enable LDAP authentication for Agents
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '10.12.4.10';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=alexianer,dc=dc';
$Self->{'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->{'AuthModule::LDAP::SearchUserDN'} = 'cn=otrs,ou=DaKS,ou=Muenster,DC=alexianer,dc=dc';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxxxxxxxx';
#OK now lets have our agents use LDAP
$Self->{'AuthModule::LDAP::GroupDN'} = 'DC=alexianer,DC=dc';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
# UserSyncLDAPMap
# (map if agent should create/synced from LDAP to DB after login)
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# UserSyncLDAPGroups
# (If "LDAP" was selected="selected" for AuthModule, you can specify
# initial user groups for first login.)
$Self->{UserSyncLDAPGroups} = [
'users',
];
# UserTable
$Self->{DatabaseUserTable} = 'users';
$Self->{DatabaseUserTableUserID} = 'id';
$Self->{DatabaseUserTableUserPW} = 'pw';
$Self->{DatabaseUserTableUser} = 'login';
#We want our Customer/users to Auth using LDAP
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '10.12.4.10';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=alexianer,DC=dc';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=DaKS,OU=Muenster,DC=alexianer,DC=dc';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'xxxxxxxxx';
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '10.12.4.10',
BaseDN => 'DC=alexianer,DC=dc',
SSCOPE => 'sub',
UserDN => 'CN=otrs,OU=DaKS,OU=Muenster,DC=alexianer,DC=dc',
UserPw => 'otrs',
},
CustomerKey => 'sAMAccountName',
CustomerID => 'userPrincipalName',
CustomerUserListFields => ['displayName', 'userPrincipalName'],
CustomerUserSearchFields => ['displayName', 'userPrincipalName'],
CustomerUserPostMasterSearchFields => userPrincipalName,
CustomerUserNameFields => ['givenName', 'sn'],
#the following must map to valid fields in your AD (givenname,sn,sAMAccountName,...)
Map => [
[ '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', 'userPrincipalName', 0, 1, 'var' ],
],
};
#OK now lets have our agents use LDAP
$Self->{'AuthModule::LDAP::GroupDN'} = 'DC=alexianer,DC=dc';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'DC=alexianer,DC=dc';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
# UserSyncLDAPMap
# (map if agent should create/synced from LDAP to DB after login must match your AD)
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
Firstname => 'givenName',
Lastname => 'sn',
Email => 'userPrincipalName',
};
# UserSyncLDAPGroups
# (If "LDAP" was selected for AuthModule, you can specify
# initial user groups for first login.)
$Self->{UserSyncLDAPGroups} = [
'users',
];
# <snip>
##################### End of Config.pm ####################
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# 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.20 $)[1];
# -----------------------------------------------------#
1;
Wer kann helfen ?
Gruß
Rüdiger