how to connect otrs 5 with LDAP

Moderator: crythias

Post Reply
carlosmagno
Znuny newbie
Posts: 10
Joined: 06 Sep 2016, 15:57
Znuny Version: 5.0.23
Real Name: Carlos Pernia

how to connect otrs 5 with LDAP

Post by carlosmagno »

Hello!

Im try to connect Otrs 5 with LDAP, but is impossible, this message appears: ´'Authentication achieved, but no client data could be found in the client interface. Please, contact administrator'

This is my config:

Code: Select all

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '192.168.0.32';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=ctsnx,dc=com';

$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'sAMAccountName';
#$Self->{'Customer::AuthModule::LDAP::GroupDN'} = ;
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} ='CN=Sistema Otrs,OU=Service Users,dc=ctsnx,dc=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'clave';

#################################

$Self->{CustomerUser} = {
Name => 'LDAP Connection Company',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '192.168.0.32',
BaseDN => 'dc=ctsnx,dc=com',
SSCOPE => 'base',
UserDN => 'CN=Sistema Otrs,OU=Service Users,dc=ctsnx,dc=com',
UserPw => 'clave',
AlwaysFilter =>  '(&)',
},

CustomerKey => 'sAMAccountName',

CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],

Map => [    
#['UserSalutation', 'Title', 'title', '1', '0', 'var'], 
['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', 'mail', '0', '1', 'var'], 
['UserPhone', 'Phone', 'telephonenumber', '1', '0', 'var'], 
#['UserAddress', 'Address', 'postaladdress', '1', '0', 'var'], 
#['UserComment', 'Comment', 'description', '1', '0', 'var'], 
],
};

Please Help Me!!!

Thank you so much
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: how to connect otrs 5 with LDAP

Post by root »

Hi,

Please check your AlwaysFilter

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply