Agent Login via Active Directory

Moderator: crythias

Locked
supertuxi
Znuny newbie
Posts: 4
Joined: 18 Jun 2020, 08:10
Znuny Version: 6.0.23
Real Name: Sascha

Agent Login via Active Directory

Post by supertuxi »

Hello, everyone,

I have installed the OTRS Community Edition and so far it runs without problems.

Now I would like to register the agents with Active Directory data.

I have the AD Connect running so far. When I try to register the agent now I get the following error:

Code: Select all

" Authentication successful, but no entry for the user was found in the database. Please contact your administrator.
I have the following lines in my Config

Code: Select all

$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'LEVDC.xxxxx.xxx';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'DC=xxxxx,DC=xxx';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'OTRS-LDAP@xxxxx.xxx';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'xxxxxxx';
$Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthSyncModule::LDAP::UserAttr'} = 'DN';

$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
and then get the error

Code: Select all

Global symbol "$Self" requires explicit package name (did you forget to declare "my $Self"?) at /opt/otrs/Kernel/Config.pm
Can anyone help me?

Lg
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Agent Login via Active Directory

Post by skullz »

Do check https://doc.otrs.com/doc/manual/admin/6 ... ckend-ldap

Your ldap config should have :

1. AuthModule
2. AuthSyncModule
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
supertuxi
Znuny newbie
Posts: 4
Joined: 18 Jun 2020, 08:10
Znuny Version: 6.0.23
Real Name: Sascha

Re: Agent Login via Active Directory

Post by supertuxi »

Customer Login via Active Directory is running
supertuxi
Znuny newbie
Posts: 4
Joined: 18 Jun 2020, 08:10
Znuny Version: 6.0.23
Real Name: Sascha

Re: Agent Login via Active Directory

Post by supertuxi »

Global symbol "$Self" requires explicit package name (did you forget to declare "my $Self"?) at /opt/otrs/Kernel/Config.pm
Locked