Hi crythias,
yes I have seen that link and I checked for that solution... but it doesn't seem to work.
This is the Agent authentication part of my Config.pm adapted to my environment:
Code: Select all
$Self->{'AuthModule1'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host1'} = 'x-dc1.iks.local';
$Self->{'AuthModule::LDAP::BaseDN1'} = 'DC=iks,DC=local';
$Self->{'AuthModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::GroupDN1'} = 'CN=OTRS_Agents,OU=Liste e Gruppi,DC=iks,DC=local';
$Self->{'AuthModule::LDAP::AccessAttr1'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr1'} = 'DN';
$Self->{'AuthModule::LDAP::SearchUserDN1'} = 'CN=x-ldap,OU=Utenze di Servizio,DC=iks,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw1'} = 'xxxxxx';
# in case you want to normalize each login name to lowercase
$Self->{'AuthModule::LDAP::UserLowerCase1'} = 0;
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthModule::LDAP::Params1'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
$Self->{'AuthModule::LDAP::Die1'} = 1;
# Sync data from MS ActiveDirectory to OTRS DB
$Self->{'AuthSyncModule1'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host1'} = 'x-dc1.iks.local';
$Self->{'AuthSyncModule::LDAP::BaseDN1'} = 'DC=iks,DC=local';
$Self->{'AuthSyncModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN1'} = 'CN=x-ldap,OU=Utenze di Servizio,DC=iks,DC=local';
$Self->{'AuthSyncModule::LDAP::SearchUserPw1'} = 'xxxxxx';
$Self->{'AuthSyncModule::LDAP::UserSyncMap1'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncRolesDefinition1'} = {
# ldap group
'CN=OTRS_Agents,OU=Liste e Gruppi,DC=iks,DC=local' => {
# otrs role
'IKS_Interni_role' => 1,
}
};
The otrs role I defined is 'IKS_Interni_role' and the LDAP group is OTRS_Agents, guessing it should be the same I defined to "segregate" the AD users in $Self->{'AuthModule::LDAP::GroupDN1'}
Do you see any mistake?
thank you
Giulio
Edit: ... a typo in my original post, 'AuthSyncModule::LDAP::UserSyncRolesDefinition' instead of 'AuthSyncModule::LDAP::UserSyncRolesDefinition
1' ... nevertheless the issue still persists...
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.