Stucking with LDAP connection

Moderator: crythias

bendorf
OTRS newbie
Posts: 3
Joined: 03 Jan 2018, 13:18
OTRS Version?: 6.0.3

Stucking with LDAP connection

Postby bendorf » 18 Jan 2018, 15:14

Hey guys,

I'm trying to connect to my active directory.
I need it only for the customer data.
Tickets are exclusively created via email.
If a ticket comes in via mail there is no customer information.

What I did yet:
System configuration -> Core -> Auth -> Customers
Customer::AuthModule = LDAP
Customer::AuthModule::LDAP::AccessAttr = member
Customer::AuthModule::LDAP::BaseDN = dc=intranet,dc=company,dc=com (here as example, I've added my real companyname)
Customer::AuthModule::LDAP::Host = dc1.intranet.company.com
Customer::AuthModule::LDAP::SearchUserDN = helpdesk@intranet.company.com
Customer::AuthModule::LDAP::SearchUserPw = password
Customer::AuthModule::LDAP::UID = sAMAccountName

I've read about to add customer data to config.pm and added this:

Code: Select all

#--------------------------------------------------------------------------------------------
#                                     customer data                                           #
#--------------------------------------------------------------------------------------------
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'dc1.intranet.company.com',
BaseDN => 'dc=Intranet,dc=company,dc=com',
SSCOPE => 'sub',
UserDN => 'helpdesk@intranet.company.com',
UserPw => 'password',
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type
[ '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' ],
[ 'UserComment', 'Comment', 'facsimileTelephoneNumber', 1, 1, 'var' ],
#       [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
#       [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
],
};
#--------------------------------------------------------------------------------------------


I cant find a logfile to see whats going wrong.
Hoping you can help me solving this problem.


Best regards,
Ben

root
Moderator
Posts: 1079
Joined: 18 Dec 2007, 12:23
OTRS Version?: 4/5/6
Real Name: Roy Kaldung
Company: Znuny Inc.
Contact:

Re: Stucking with LDAP connection

Postby root » 18 Jan 2018, 17:07

Hi,

Code: Select all

CustomerUserPostMasterSearchFields => ['mail'],


This is the field (could also be a list of fields) where OTRS is searching for the email address when an email is processed. Is this field used in your LDAP server?

- 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 “Help”

Who is online

Users browsing this forum: No registered users and 6 guests