Problem with MultiLDAP Backend (SOLVED)

Moderator: crythias

Post Reply
IXLabs
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS Version?: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Problem with MultiLDAP Backend (SOLVED)

Post by IXLabs »

Hi people.

Im facing a very strange problem with the user backend.
I have a multi-customer backend, with at the moment 3 connections to 3 differents Domains.
The problem is, if the last domain is test3 and the others test1 and test2, if i try to log as customer who belongs to another domain, the OTRS only look to get the auth at the last Domain, test3. But not the others.
The strange thing is, if i log as technician and click on clients, if i dont have the metod $self->{CustomerUserX} = {......}, OTRS dont show me the whole clients.

Thanks!
Last edited by IXLabs on 03 Apr 2013, 18:10, edited 1 time in total.

crythias
Moderator
Posts: 10121
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Problem with MultiLDAP Backend

Post by crythias »

Did you increment the index for the Keys for CustomerUser and CustomerAuth?

CustomerUser1;
CustomerUser2;
CustomerUser3;

CustomerAuth1;
...
(Note that the index needs to be at the END of each field)
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
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

IXLabs
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS Version?: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Problem with MultiLDAP Backend

Post by IXLabs »

Hi !

do you mean here, for each one (every one in bold)

Code: Select all

                [b]$Self->{'Customer::AuthModule'}[/b] = 'Kernel::System::CustomerAuth::LDAP';
                [b]$Self->{'Customer::AuthModule[/b]::LDAP::Host'} = $Hostymedia;
               [b] $Self->{'Customer::AuthModule[/b]::LDAP::BaseDN'} = $BaseDNymedia;
                [b]$Self->{'Customer::AuthModule[/b]::LDAP::UID'} = 'mail';
                [b]$Self->{'Customer::AuthModule[/b]::LDAP::GroupDN'} = $CGroupDNymedia;
                [b]$Self->{'Customer::AuthModule[/b]::LDAP::AccessAttr'} = 'member';
                [b]$Self->{'Customer::AuthModule[/b]::LDAP::UserAttr'} = 'DN';
               [b] $Self->{'Customer::AuthModule[/b]::LDAP::SearchUserDN'} = $SearchUserDNymedia;
               [b] $Self->{'Customer::AuthModule[/b]::LDAP::SearchUserPw'} = $SearchUserPWymedia;
               [b] $Self->{'Customer::AuthModule[/b]::LDAP::Params'} = {
                    port => 389,
                    timeout => 120,
                    async => 0,
                    version => 3
                };
And here:

Code: Select all

$Self->{CustomerUser1} = {
                        Name => 'Ymedia',
                        Module => 'Kernel::System::CustomerUser::LDAP',
                        Params => {
                        SourceCharset => 'utf-8',
                        DestCharset => 'utf-8',

                        Host => $Hostymedia,
                        BaseDN => $BaseDNymedia,
                        SSCOPE => 'sub',
                        UserDN => $SearchUserDNymedia,
                        UserPw => $SearchUserPWymedia,
                        AlwaysFilter => '(objectclass=user)',
                        },
                        CustomerKey => 'mail',
                        CustomerID => 'mail',
                        CustomerUserSearchListLimit => 2000,
                        CustomerUserListFields => ['givenname', 'sn', 'mail'],
                        CustomerUserSearchFields => ['givenname', 'sn', 'mail'],
                        CustomerUserPostMasterSearchFields => ['mail'],
                        CustomerUserNameFields => ['givenname', 'sn'],
                        CacheTTL => 0,

crythias
Moderator
Posts: 10121
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Problem with MultiLDAP Backend

Post by crythias »

crythias wrote:(Note that the index needs to be at the END of each field)
$Self->{'Customer::AuthModule::LDAP::SearchUserPw1'}
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
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

IXLabs
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS Version?: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Problem with MultiLDAP Backend

Post by IXLabs »

Like This?

Code: Select all


            $Self->{'Customer::AuthModule1'} = 'Kernel::System::CustomerAuth::LDAP';
            $Self->{'Customer::AuthModule::LDAP::Host1'} = $Hostdune;
            $Self->{'Customer::AuthModule::LDAP::BaseDN1'} = $BaseDNdune;
            $Self->{'Customer::AuthModule::LDAP::UID1'} = 'mail';
            #$Self->{'Customer::AuthModule::LDAP::UID1'} = 'mail';

            $Self->{'Customer::AuthModule::LDAP::GroupDN1'} = $CGroupDNdune;
            $Self->{'Customer::AuthModule::LDAP::AccessAttr1'} = 'member';
            $Self->{'Customer::AuthModule::LDAP::UserAttr1'} = 'DN';

            $Self->{'Customer::AuthModule::LDAP::SearchUserDN1'} = $SearchUserDNdune;
            $Self->{'Customer::AuthModule::LDAP::SearchUserPw1'} = $SearchUserPWdune;

            $Self->{'Customer::AuthModule::LDAP::Params1'} = {
                port => 389,
                timeout => 120,
                async => 0,
                version => 3,
            };

crythias
Moderator
Posts: 10121
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Problem with MultiLDAP Backend

Post by crythias »

yes
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
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

IXLabs
OTRS newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
OTRS Version?: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Problem with MultiLDAP Backend

Post by IXLabs »

Thanks, it works!

:)

Post Reply