sincronizacion con ldap. fallo con clientes

Post Reply
juanmattica
Znuny newbie
Posts: 8
Joined: 16 Jul 2013, 15:09
Znuny Version: 3.2.8

sincronizacion con ldap. fallo con clientes

Post by juanmattica »

estimados estoy teniendo un problema con la sincronizacion con ldap.

el fallo que estoy teniendo es cuando voy a administracion/clientes me muestra los clientes en blanco sin ninguna informacion. pero muestra una lista.
es decir si intento hacer una busqueda de un nombre me da un resultado de varias filas, pero en blanco.

a continucacion les adjunto mi config.pm. si me pueden dar una mano seria excelente. muchas gracias



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

# 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} = '/opt/otrs';

# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #
# $Self->{SessionUseCookie} = 0;
# $Self->{CheckMXRecord} = 0;

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


$Self->{'LogModule'} = 'Kernel::System::Log::File';

$Self->{'LogModule::LogFile'} = '/opt/otrs/var/log/otrs.log';
# $DIBI$

########### INTEGRACION LDAP ##################
# This is an example configuration for using an MS AD backend
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '10.0.1.36:389';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=promedon,dc=org';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
# Bind credentials to log into AD
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,DC=promedon,DC=org';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'promedon';
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

# Check if the user is allowed to auth in a posixGroup
# (e. g. user needs to be in a group OTRS_Agents to use otrs)
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=otrs_allow_A,DC=promedon,DC=org';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';


# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = '10.0.1.36:389';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=promedon,dc=org';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs,DC=promedon,DC=org';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'promedon';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'name',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
];

# Autenticacion Multple: Segundo Nivel
$Self->{'AuthModule2'} = 'Kernel::System::Auth::DB';
$Self->{'AuthModule::DB::CryptType2'} = 'crypt';


$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '10.0.1.36:389';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} ='dc=promedon,dc=org';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} ='CN=otrs,DC=promedon,DC=org';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'promedon';
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

#Configuracion del Cliente con el LDAP (customers)

#CustomerUser
#(customer user database backend and settings)
$Self->{CustomerUser} = {
Name => 'AD',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '10.0.1.36:389',
BaseDN => 'dc=promedon,dc=org',
SSCOPE => 'sub',
UserDN =>'CN=otrs,DC=promedon,DC=org',
UserPw => 'promedon',
#SourceCharset => 'iso-8859-1',
#DestCharset => 'utf-8',
},
# customer unique id
CustomerKey => 'cn',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 500,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
[ 'UserSalutation', 'Salutation', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'login', 1, 0, 'var', '', 0 ],
[ 'UserPassword', 'Password', 'pw', 1, 0, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'email', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 1, 0, 'var', '', 0 ],
[ 'Telefono', 'Telefono', 'phone', 1, 0, 'var', '', 0 ],
[ 'Fax', 'Fax', 'fax', 1, 0, 'var', '', 0 ],
[ 'Movil', 'Movil', 'mobile', 1, 0, 'var', '', 0 ],
[ 'Calle', 'Calle', 'street', 1, 0, 'var', '', 0 ],
[ 'CP', 'CP', 'zip', 1, 0, 'var', '', 0 ],
[ 'Ciudad', 'Ciudad', 'city', 1, 0, 'var', '', 0 ],
[ 'Pais', 'Pais', 'country', 1, 0, 'var', '', 0 ],
[ 'Empresa', 'Empresa', 'empresa', 1, 0, 'var', '', 0 ],
[ 'Departamento', 'Departamento','departamento', 1, 0, 'var', '', 0 ],
[ 'Ubicacion', 'Ubicacion', 'ubicacion', 1, 0, 'var', '', 0 ],
[ 'ValidID', 'Valid', 'valid_id', 1, 1, 'int', '', 0 ],
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var', '', 0 ],
],
};
# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #



# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$

# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# 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;
Post Reply