at the moment we are trying to connect an OTRS 5 installation (on a Fedora 22 system) with a Microsoft LDAP server.
We have edited the Config.pm file with the following content:
LDAP Connection Company
Code: Select all
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '1.1.1.1';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=company,dc=tld';
$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'} ='ou:Users,cn=user,dc=company,dc=tld';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';
Code: Select all
$Self->{CustomerUser} = {
Name => 'LDAP Connection Company',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '1.1.1.1',
BaseDN => 'DC=company,dc=tld',
SSCOPE => 'base',
UserDN => 'ou=Users,cn=user,dc=company,dc=tld',
UserPw => 'password',
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'],
],
};
Code: Select all
Nov 17 12:22:31 hostname OTRS-CGI-06[1251]: [Error][Kernel::System::CustomerUser::LDAP::_Connect][Line:197]: First bind failed! 80090308: LdapErr: DSID-0C0903D9, comment: AcceptSecurityContext error, data 52e, v2580
Nov 17 12:22:31 hostname OTRS-CGI-06[1251]: [Error][Kernel::System::CustomerUser::LDAP::CustomerSearch][Line:386]: Can't contact LDAP server
Where is the problem of our configuration? Thanks for your help.