We have OTRS 3.1.7 in domain environment, and i would like to add all domain user as customers.
If i create new group (otrs_ldap), add user in that group, everything works fine
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=otrs_ldap,OU=Groups,DC=company,DC=com';
Bu instead i want if user is in Domain, he would authenticate as customer by default, instead of adding user in aditional group, so CN=Domain Users should work?
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=Domain Users,OU=Users,DC=company,DC=com';
But it doesn't. There is nothing /var/log/messages (there was errors before ). Maybe there is some catch about Domain Users ?
full config
Code: Select all
# Enable LDAP Authentication Sync for Agent #
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://10.2.4.4:389';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=company,dc=com';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::UserAttr'} = 'DN';
$Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=Admin,CN=Users,DC=company,DC=com';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'superpass';
# Enable Agent Mapping from LDAP to DB #
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# Enable Customer Authentication
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'lokys.company.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=company,dc=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=Domain Users,OU=Users,DC=company,DC=com';
#$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=otrs_ldap,OU=Groups,DC=company,DC=com';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
#$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=Admin,CN=Users,DC=company,DC=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'superpass';
#$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '';
$Self->{CustomerUser} = {
Name => 'LMH Users',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'lokys.company.com',
BaseDN => 'dc=company,dc=com',
SSCOPE => 'sub',
UserDN => 'CN=Admin,CN=Users,DC=company,DC=com',
UserPw => 'superpass',
AlwaysFilter => '',
Params => {
port => 389,
timeout => 120,
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', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};