agent otrs Panic, user authenticated but no user data can be

Locked
sonnycio
Znuny newbie
Posts: 1
Joined: 11 Jun 2013, 16:11
Znuny Version: 3.2.7

agent otrs Panic, user authenticated but no user data can be

Post by sonnycio »

Buenas tardes,
estoy instalando la version de windows del OTRS v 3.2.7
todo correcto pero a la hora de sicronizar los agentes e intentar loggearme me sale el siguiente error:
agent otrs Panic, user authenticated but no user data can be found in OTRS DB
Os agradeceria una ayudita,
Muchas gracias


mi config.pm
# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2013 xxx, http://otrs.org/
# --
# 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:
#
# -->> Most OTRS configuration should be done via the OTRS web interface
# and the SysConfig. Only for some configuration, such as database
# credentials and customer data source changes, you should edit this
# file. For changes do customer data sources you can copy the definitions
# from Kernel/Config/Defaults.pm and paste them in this file.
# Config.pm will not be overwritten when updating OTRS.
# --

package Kernel::Config;

use strict;
use warnings;
use utf8;

sub Load {
my $Self = shift;

# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #

# The database host
$Self->{'DatabaseHost'} = 'localhost';

# The database name
$Self->{'Database'} = 'otrs';

# The database user
$Self->{'DatabaseUser'} = 'otrs';

# The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords
$Self->{'DatabasePw'} = '*******';

# The database DSN for MySQL ==> more: "perldoc DBD::mysql"
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

# The database DSN for PostgreSQL ==> more: "perldoc DBD::Pg"
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a TCP/IP connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
# if you have PostgresSQL 8.1 or earlier, activate the legacy driver with this line:
# $Self->{DatabasePostgresqlBefore82} = 1;

# The database DSN for Microsoft SQL Server - only supported if OTRS is
# installed on Windows as well
# $Self->{DatabaseDSN} = "DBI:ODBC:driver={SQL Server};Database=$Self->{Database};Server=$Self->{DatabaseHost},1433";

# The database DSN for Oracle ==> more: "perldoc DBD::oracle"
# $ENV{ORACLE_HOME} = '/u01/app/oracle/product/10.2.0/client_1';
# $ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
# $ENV{NLS_LANG} = "american_america.utf8";

# $Self->{DatabaseDSN} = "DBI:Oracle:sid=OTRS;host=$Self->{DatabaseHost};port=1522;";

# ---------------------------------------------------- #
# 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} = 0;

# ---------------------------------------------------- #

# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #

$Self->{'LogModule'} = 'Kernel::System::Log::File';
$Self->{'LogModule::LogFile'} = 'C:/PROGRA~2/OTRS/OTRS/var/log/otrs.log';
# $DIBI$

#we want to use LDAP for Auth
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'server';
$Self->{'AuthModule::LDAP::BaseDN'} = 'DC=zzzzz,DC=yyyyyy';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

#OK now lets have our agents use LDAP
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=otrs_allow_A,OU=OTRS,OU=Grupos,OU=xxxxx,DC=xxxx,DC=yyyyy';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';


#The username and password of the user you setup to access LDAP information in AD
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs_ldap,OU=OTRS,OU=Usuarios,OU=xxxxx,DC=xxxx,DC=yyyyy';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '*******';

# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';

# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'server.xxxxx.yyyyyy';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'DC=xxxx,DC=yyyyy';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs_ldap,OU=OTRS,OU=Usuarios,OU=xxxxx,DC=xxxx,DC=yyyyy';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = '*******';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
UserLogin => 'sAMAccountName',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'Users',
];


# $Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=otrs_allow_C,OU=OTRS,OU=Grupos,OU=xxxxxx,DC=xxxxx,DC=yyyyyy';
# $Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
# $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';





#We want our Customer/users to Auth using LDAP
# $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
# $Self->{'Customer::AuthModule::LDAP::Host'} = 'server.xxxxx.yyyyy';
# $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=xxxxx,DC=yyyyyy';
# $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
# $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=otrs_ldap,OU=OTRS,OU=Usuarios,OU=xxxxx,DC=xxxxx,DC=yyyyyy';
# $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '*******';
# $Self->{CustomerUser} = {
# Module => 'Kernel::System::CustomerUser::LDAP',
# Params => {
# Host => 'server.xxxx.yyyyy',
# BaseDN => 'DC=xxxx,DC=yyyy',
# SSCOPE => 'sub',
# UserDN => 'CN=otrs_ldap,OU=OTRS,OU=Usuarios,OU=xxxx,DC=xxxx,DC=yyyy',
# UserPw => '******',
# },
# 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', 'userPrincipalName', 1, 1, 'var' ],
# [ 'UserCustomerID', 'CustomerID', 'userPrincipalName', 0, 1, 'var' ],
# ],
# };







# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# end of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
use strict;
use warnings;

use vars qw(@ISA);

use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

# -----------------------------------------------------#

1;
Locked