#--> activate LDAP
$Self->{'AuthModule'} =
'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} =
'aohdc03.asamer.holding.ah';
$Self->{'AuthModule::LDAP::BaseDN'} =
'DC=asamer,DC=holding,DC=ah';
$Self->{'AuthModule::LDAP::UID'} =
'sAMAccountName';
$Self->{'AuthModule::LDAP::AccessAttr'} =
'member';
$Self->{'AuthModule::LDAP::SearchUserDN'} =
'CN=otrs,OU=ServicesAccounts,DC=asamer,DC=holding,DC=ah';
$Self->{'AuthModule::LDAP::SearchUserPw'}
= <a valid password>
$Self->{'AuthModule::LDAP::AlwaysFilter'} =
'(objectclass=user)'; # <--
$Self->{'AuthModule::LDAP::Charset'} =
'utf-8';
$Self->{'AuthModule::LDAP::Params'} =
{
port => 3268,
timeout => 10, #--> activate LDAP
120,
async => 0,
version => 3,
};
# Sync
$Self->{'AuthSyncModule'} =
'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} =
'aohdc03.asamer.holding.ah';
$Self->{'AuthSyncModule::LDAP::BaseDN'} =
'DC=asamer,DC=holding,DC=ah';
$Self->{'AuthSyncModule::LDAP::UID'} =
'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} =
'CN=otrs,OU=ServicesAccounts,DC=asamer,DC=holding,DC=ah';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} =
'sup4port@asa1';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} =
{
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
Username => 'sAMAccountName',
};
Self->{'AuthModule::LDAP::Die'} =
0;
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
UserFirstname =>
'givenName',
UserLastname =>
'sn',
UserEmail =>
'mail',
};
$Self->{UserSyncLDAPGroups} =
['user',];
$Self->{CustomerUser1} = {
Name => 'Active Directory
<holding.ah>',
Module =>
'Kernel::System::CustomerUser::LDAP',
Params => {
Host =>
'aohdc03.asamer.holding.ah',
BaseDN => 'DC=holding,DC=ah',
SSCOPE => 'sub',
UserDN =>
'CN=otrs,OU=ServicesAccounts,DC=asamer,DC=holding,DC=ah',
UserPw => 'a
valid password',
AlwaysFilter =>
'(objectclass=user)',
DestCharset => 'iso-8859-1',
SourceCharset => 'utf-8',
Params => {
port => 3268,
timeout => 10,
async => 0,
version => 3,
},
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['cn',
'mail'],
CustomerUserSearchFields => ['sAMAccountName',
'cn', 'mail'],
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields =>
['mail'],
CustomerUserNameFields => ['givenname',
'sn'],
CustomerUserExcludePrimaryCustomerID =>
0,
AdminSetPreferences => 0,
Map => [
#[ 'UserSalutation', 'Title', 'title', 1, 0, 'var',
'', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1,
1,'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1,'var', '',
0 ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1,
1,'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1,'var', '', 0
],
[ 'UserCustomerID', 'CustomerID', 'mail', 0,
1,'var', '', 0 ],
[ 'UserPhone', 'Phone', 'phone', 1, 0,'var', '', 0
],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0,'var', '',
0 ],
# [ 'UserAddress', 'Address', 'postaladdress', 1,
0,'var', '', 0 ],
# [ 'UserComment', 'Comment', 'description', 1,
0,'var', '', 0 ],
],
};
## AuthModule 1 is
against DB
$Self->{'Customer::AuthModule2'} =
'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host2'} =
'aohdc03.asamer.holding.ah';
$Self->{'Customer::AuthModule::LDAP::BaseDN2'} =
'DC=holding,DC=ah';
$Self->{'Customer::AuthModule::LDAP::UID2'} =
'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN2'} =
'CN=otrs,OU=ServicesAccounts,DC=asamer,DC=holding,DC=ah';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw2'} = <a valid password>';
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter2'} =
'(objectclass=user)';
$Self->{'Customer::AuthModule::LDAP::Params2'} =
{
port => 3268,
timeout => 10,
async => 0,
version => 3,
};