Alright, sorry for the first confusion. I've only snipped some part of config from config.pm. Here is the full config ... While customer part works, the agent auth does not work - can't even login as root anymore...
Also made 2 comments on 2 variables, on which I'm not sure what to change there.
Code: Select all
#we want to use LDAP for Auth
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'dc02.domain.local';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=domain,dc=local';
$Self->{'AuthModule::LDAP::UID'} = 'otrs';
#The username and password of the user you setup to access LDAP information in AD
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=Users,OU=Company,DC=domain,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'password';
#We want our Customer/users to Auth using LDAP
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'dc02.domain.local';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=domain,DC=local';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'otrs';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=Users,OU=Company,DC=domain,DC=local';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'dc02.domain.local',
BaseDN => 'DC=domain,DC=local',
SSCOPE => 'sub',
UserDN => 'CN=otrs,OU=Users,OU=Company,DC=domain,DC=local',
UserPw => 'password',
},
CustomerKey => 'sAMAccountName',
CustomerID => 'userPrincipalName',
CustomerUserListFields => ['displayName', 'userPrincipalName'],
CustomerUserSearchFields => ['displayName', 'userPrincipalName'],
CustomerUserPostMasterSearchFields => userPrincipalName,
CustomerUserNameFields => ['givenName', 'sn'],
#the following must map to valid fields in your AD (givenname,sn,sAMAccountName,...)
Map => [
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
[ 'UserEmail', 'Email', 'userPrincipalName', 1, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'userPrincipalName', 0, 1, 'var' ],
],
};
#OK now lets have our agents use LDAP
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=SA,OU=Groups,OU=Company,DC=domain,DC=local';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member'; - do i need to change this to something?
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN'; - do i need to change this to something?
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=SA,OU=Groups,OU=Company,DC=domain,DC=local';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
# UserSyncLDAPMap
# (map if agent should create/synced from LDAP to DB after login must match your AD)
$Self->{UserSyncLDAPMap} = {
# DB -> LDAP
Firstname => 'givenName',
Lastname => 'sn',
Email => 'userPrincipalName',
};
# UserSyncLDAPGroups
# (If "LDAP" was selected for AuthModule, you can specify
# initial user groups for first login.)
$Self->{UserSyncLDAPGroups} = [
'users',
];