mensaje de error con LDAP

Locked
jd_munoz
Znuny newbie
Posts: 97
Joined: 09 Nov 2011, 20:38
Znuny Version: version 3.1
Location: Cuenca-Ecuador

mensaje de error con LDAP

Post by jd_munoz »

Buenas tardes

acabe de configurar la autenticación con LDAP

tengo el siguiente mensaje de error cuando quiero ingresar al sistema desde una estación:
ejem: http://172.16.1.68/otrs/index.pl

*****************************************************************************************************************************
Software error:

Can't locate object method "new" via package "Net::LDAP" at /opt/otrs//Kernel/System/Auth/LDAP.pm line 166.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.
*****************************************************************************************************************************************************

La configuración que tengo en el config.pm es:
/////////////////////////////////////////////////////////////////////////////////////////////////////////
# This is an example configuration for an LDAP auth. backend.
# (take care that Net::LDAP is installed!)
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '172.16.1.194';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=ucuenca,dc=local';
$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 SEARCH,cn=Users,dc=ucuenca,dc=local';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'Srvdo7002';


# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

# --------------------------------------------------- #
# authentication sync settings #
# (enable agent data sync. after succsessful #
# authentication) #
# --------------------------------------------------- #
# This is an example configuration for an LDAP auth sync. backend.
# (take care that Net::LDAP is installed!)
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = '172.16.1.194';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=ucuenca,dc=local';
$Self->{'AuthSyncModule::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->{'AuthSyncModule::LDAP::SearchUserDN'} = 'cn=OTRS SEARCH,cn=Users,dc=ucuenca,dc=local';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'Srvdo7002';


# AuthSyncModule::LDAP::UserSyncMap
# (map if agent should create/synced from LDAP to DB after successful login)
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};

# In case you need to use OTRS in iso-charset, you can define this
# by using this option (converts utf-8 data from LDAP to iso).
# $Self->{'AuthSyncModule::LDAP::Charset'} = 'iso-8859-1';

# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
# $Self->{'AuthSyncModule::LDAP::Params'} = {
# port => 389,
# timeout => 120,
# async => 0,
# version => 3,
# };
/////////////////////////////////////////////////////////////////////////////////////////////////////////

estoy inicialmente haciendo una prueba con el active diretory y los parametros anteriores son de AD, una vez que funcione la autenticación va a ser con un servidor LINUX y LDAP

NOTA: los pasos para configurar los segui desde un video que indica como hacer, la idea es lograr que tanto agentes y usuarios se autentiquen con LDAP, pero inicialmente estoy haciendo la prueba con los usuarios

Ahora no se que mas me este faltando y porque me sale ese error.

Espero que alguien me ayude

gracias de ante mano.
Locked