Setting up a SAML authentication for Agents

Moderator: crythias

Post Reply
cankor
Znuny newbie
Posts: 1
Joined: 06 Dec 2021, 22:08
Znuny Version: 6.2
Real Name: Caner
Company: Devoteam

Setting up a SAML authentication for Agents

Post by cankor »

Hi guys,

I'm new to Znuny and SAML and am deploying an instance of the version 6.0.38. I would configure my host Znuny as Service Provider in order to link it with a SAML 2.0 Identity Provider.

I followed Maxime Appolonia's guide on https://github.com/restena-ma/otrs-saml2sp but this one doesn't process to the auto-provisionning of the accounts, it means that the users have to be created in the OTRS database. At this point I have few questions:
  1. How to add a callback to a function who creates a new agent if this one is not yet recognized by the database ?
  • How to manage the SAML attributes to have a match between the Identity Provider and the Service Provider ?
  • Can I add my own attributes by editing the source code ?
For this last point, the answer is partially in /Kernel/System/Auth/SAML2SP.pm in line 68 of Maxime's guide :

Code: Select all

 $Self->{SSOUserIdAttribute} = $ConfigObject->Get( 'AuthModule::SAML2SP::SSOUserIdAttribute' . $Param{Count} ) || die "Need AuthModule::SAML2SP::SSOUserIdAttribute{Count} in Kernel/Config.pm";
Thanks a lot for your answer

CanKor
Host: Znuny 6.0.38
Database: MySQL
OS: RHEL 7.9 (Maïpo)
Post Reply