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' ],
],
};
#--------------------------------------------------------------------------------------------
Hoping you can help me solving this problem.
Best regards,
Ben