Agent LDAP auth from different groups (CNs)

Moderator: crythias

Locked
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Agent LDAP auth from different groups (CNs)

Post by Jarod »

Hi everybody,

I am currently working on the LDAP auth module of OTRS4.
We have created a group (cn) called "otrs_allow". In this group, all agents (member attribute) are "directly" in this group.
I use the following for auth:

Code: Select all

$Self->{'AuthModule::LDAP::GroupDN'} = 'cn=otrs_allow,ou=Security,ou=.Groups,ou=Users,dc=mno,dc=abc,dc=xy';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
Login works. So far, so good.

Some days ago my admin told me that he is redesigning the LDAP/X.500-server.
He wants the "otrs-allow" group to be removed.
Now all of our users inside the company are grouped together in ONE group.
Permissions are created via OUs.
My problem ist, that user from ou e.g. "OP" and ou "PU" should be allowed to log in on OTRS.

Is it possible to define more than one CN (or the complete DN) for agents to auth?

Best regards

Patrick
Viele Grüße

Jarod
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Agent LDAP auth from different groups (CNs)

Post by crythias »

Use the filter.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Re: Agent LDAP auth from different groups (CNs)

Post by Jarod »

Hi,

thanks for your reply.
But I don#t understand the way the filter works. :(
Viele Grüße

Jarod
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Agent LDAP auth from different groups (CNs)

Post by crythias »

Please start here and let us know if you have a specific example that you've tried that is causing issues.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Re: Agent LDAP auth from different groups (CNs)

Post by Jarod »

OK, I'll check it tomorrow and will give feedback.
Thank you so far for your help.
Viele Grüße

Jarod
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Re: Agent LDAP auth from different groups (CNs)

Post by Jarod »

Hi,

it works now.

I had to use the "memberOf" attribute to filter.
Took some time to understand our AD design, but it's working. :)

Thanks for your support and the "filter-hint".
Viele Grüße

Jarod
Locked