I am able to see customer users, search for them, add them to
tickets and even send e-mails to them but they can’t login through the customer.pl
script. My settings are shown below.
My config.pm
.
.
.
#Enable LDAP authentication for Customers a.k.a non-IT employees
$Self->{'Customer::AuthModule'} =
'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} =
'server.domain.org';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} =
'ou=users,dc=domain,dc=org';
$Self->{'Customer::AuthModule::LDAP::UID'} =
'sAMAccountName';
#CustomerUser
#(customer user database backend and settings)
$Self->{CustomerUser} = {
Module =>
'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'server.domain.org',
BaseDN =>
'OU=staff,DC=domain,DC=org',
SSCOPE => 'sub',
UserDN =>'domain\otrsagent',
UserPw => 'secret',
},
# customer unique id
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName',
'mail'],
CustomerUserSearchFields =>
['sAMAccountName','givenname','sn' ],
CustomerUserSearchPrefix => '*',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields =>
['mail', 'givenname', 'sn'],
CustomerUserNameFields => ['cn', 'sn'],
Map => [
# var,frontend,storage,shown,required,storage-type, http-link,
readonly
[ 'UserFirstname', 'Firstname',
'givenname', 1, 1, 'var', '',0 ],
[ 'UserLastname', 'Lastname', 'sn',
1, 1, 'var', '',0],
[ 'UserLogin', 'Login',
'sAMAccountName', 1, 1, 'var', '',0],
[ 'UserEmail', 'Email', 'mail', 1,
1, 'var', '',0],
[ 'UserCustomerID', 'CustomerID',
'mail', 0, 1, 'var', '',0],
[ 'UserPhone', 'Phone',
'telephonenumber', 1, 0, 'var', '',0],
],
};
.
.
.
sync-ldap2db
.
.
.
my $UidLDAP = 'domain\otrstest';
my $UidDB = 'otrs';
my %Map = (
# db => ldap
email =>
'mail',
customer_id => 'mail',
first_name => 'givenname',
last_name => 'sn',
pw => 'test',
);
my $LDAPHost = 'server.domain.org';
my %LDAPParams = ();
my $LDAPBaseDN = 'ou=staff,dc=rcskids,dc=org';
my $LDAPBindDN = 'domain\otrstest';
my $LDAPBindPW = 'secret';
my $LDAPScope = 'sub';
my $LDAPCharset = 'utf-8';
#my $LDAPFilter = '';
my $LDAPFilter = '(ObjectClass=*)';
my $DBCharset = 'iso-8859-1';
my $DBTable = 'customer_user';
.
.
.
Thanks,
Ryan