LDAP - sync agents with rw and other permissions to groups

Moderator: crythias

Locked
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

LDAP - sync agents with rw and other permissions to groups

Post by Giulio Soleni »

Hi I used LDAP authentication for both customers and agents,
As per documentation I used the following piece of code to sync agents with rw permission to the 'users' group:

Code: Select all

# AuthSyncModule::LDAP::UserSyncInitialGroups
# (sync following group with rw permission after initial create of first agent
# login)
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
    'users',
];
Is there a way (I don't know the syntax...) to sync agents with other permissions (I mean not just full rw) to groups?

I'm using OTRS 3.0.6 on Linux CentOS 5.5
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.
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: LDAP - sync agents with rw and other permissions to grou

Post by Giulio Soleni »

Still trying to get to a solution...
I'm looking for UserSyncGroupsDefinition saying that all agents belonging to my LDAP group 'CN=OTRS_Agents,OU=Liste e Gruppi,DC=iks,DC=local' should have specific permissions.
I commented the previous "UserSyncInitialGroups" and this is now my code (that still does not work as expected...)

Code: Select all

# AuthSyncModule::LDAP::UserSyncGroupsDefinition
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
# groups to otrs groups, define the following.)
 $Self->{'AuthSyncModule::LDAP::UserSyncGroupsDefinition'} = {
 # ldap group
 'CN=OTRS_Agents,OU=Liste e Gruppi,DC=iks,DC=local' => {
 # otrs group
 'users' => {
 # permission
 rw => 0,
 ro => 1,
 },

 'faq' => {
 rw => 1,
 ro => 1,
 },

 'stats' => {
 rw => 1,
 ro => 1,
 },
 
 },
 };


may you help me, please... perhaps someone who has already used UserSyncGroupsDefinition with success.

Thank you,
Giulio
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.
Locked