ldap authentication for multi-group

Moderator: crythias

Locked
huozipan
Znuny newbie
Posts: 15
Joined: 14 Sep 2010, 10:19
Znuny Version: 3.0

ldap authentication for multi-group

Post by huozipan »

Now I meet a question. pls help me.

My otrs users belong to 3 roles . One is administrator, some are just user who can use ticket and the others are itsm-change-agent and builder.

I use LDAP authentication. How to configure it?
I see the example in default.pm, but it only configure 1 group. How to adjust the people who belong to different group??

And I see ClientUser can have multiple authenticate backend. Why agent have not?
any idea can help. Thanks
Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
Znuny Version: CVS HEAD

Re: ldap authentication for multi-group

Post by Mike_B »

Hi huozipan,

You can sync LDAP groups to roles. Just paste in Config.pm and modify to your needs. The roles are synchronized whenever an agent logs on.


Code: Select all

# AuthSyncModule::LDAP::UserSyncRolesDefinition
# (If "LDAP" was selected for AuthModule and you want to sync LDAP
# groups to otrs roles, define the following.)
$Self->{'AuthSyncModule::LDAP::UserSyncRolesDefinition'} = {
    # ldap group
    'cn=agent,o=otrs' => {
        # otrs role
        'role1' => 1,
        'role2' => 0,
    },
    'cn=agent2,o=otrs' => {
        'role3' => 1,
    }
};

hth,

Mike
huntingbears.nl - @michielbeijen on Twitter
huozipan
Znuny newbie
Posts: 15
Joined: 14 Sep 2010, 10:19
Znuny Version: 3.0

Re: ldap authentication for multi-group

Post by huozipan »

thanks Mike_B. I will try it this afternoon.
vpanotr
Znuny newbie
Posts: 4
Joined: 08 Sep 2011, 17:40
Znuny Version: 3.0.10

Re: ldap authentication for multi-group

Post by vpanotr »

i'm still trying this solution
but don't work
did you have an issue

regards ...
Locked