Stucking with LDAP connection

Moderator: crythias

Post Reply
bendorf
Znuny newbie
Posts: 3
Joined: 03 Jan 2018, 13:18
Znuny Version: 6.0.3

Stucking with LDAP connection

Post by bendorf »

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
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Stucking with LDAP connection

Post by root »

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
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