Add secondary AD DS for ldap query

Moderator: crythias

Locked
levante27
Znuny newbie
Posts: 5
Joined: 13 Jun 2013, 17:41
Znuny Version: 3.2.7
Real Name: Andrea Viola

Add secondary AD DS for ldap query

Post by levante27 »

Hi all.
We configure the /opt/otrs/Kernel/Config.pm file for use a windows 2012 DC ldap service (and it works fine!!).
We need to add a secondary DC, how we can do this?
Our configuration is:

# This is an example configuration for using an MS AD backend
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'dc01.domain.dom';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=domain,dc=dom';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';

# Check if the user is allowed to auth in a posixGroup
# (e. g. user needs to be in a group OTRS_Agents to use otrs)
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=OTRS_Users,CN=Users,DC=domain,DC=dom';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';

# Bind credentials to log into AD
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=user,OU=Services,OU=Users,DC=domain,DC=dom';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'password';

# in case you want to add always one filter to each ldap query, use
# this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '';

# in case you want to add a suffix to each login name, then
# you can use this option. e. g. user just want to use user but
# in your ldap directory exists user@domain.
$Self->{'AuthModule::LDAP::UserSuffix'} = '';

# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

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

Re: Add secondary AD DS for ldap query

Post by crythias »

read about multiple backends in the docs.

For every key in the additional backend, an consistent index (number) must be appended.
$Self->{'AuthModule1'}
$Self->{'AuthModule::LDAP::Host1'}

etc.
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
Locked