how to connect otrs 5 with LDAP

Moderator: crythias

carlosmagno
OTRS newbie
Posts: 10
Joined: 06 Sep 2016, 15:57
OTRS Version?: 5.0.23
Real Name: Carlos Pernia

how to connect otrs 5 with LDAP

Postby carlosmagno » 15 Nov 2017, 21:47

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
Moderator
Posts: 986
Joined: 18 Dec 2007, 12:23
OTRS Version?: 4/5/6
Real Name: Roy Kaldung
Company: Znuny Inc.
Contact:

Re: how to connect otrs 5 with LDAP

Postby root » 16 Nov 2017, 16:42

Hi,

Please check your AlwaysFilter

- Roy
OTRS 4/5/6 CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

You need professional services? Check out http://znuny.com/


Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests