LDAP not working for Customer Login only

Moderator: crythias

Locked
hangas
Znuny newbie
Posts: 3
Joined: 22 Oct 2011, 21:37
Znuny Version: 3.0.10

LDAP not working for Customer Login only

Post by hangas »

Hi,

I have this peculiar error using LDAP backends.

I have LDAP correctly configured for Agent Logins and CustomerUsers.
Agents can login with LDAP accounts and Customers show up correctly on the Customer Tab, drop down show "LDAP Backend".

Now I was trying to enable customer login via customer.pl, using the same backend. Configuration is the same as for agents, only different group.
No DB backend is enabled for Customers or Agents, but when trying to login otrs.log shows:

Code: Select all

[Notice][Kernel::System::CustomerAuth::DB::Auth] CustomerUser: No auth record in 'customer_user' for 'xxxxxxx' (REMOTE_ADDR: x.x.x.x)
to rule out LDAP filter problems, I'm now using exactly the same LDAP config for both agents and customers, no filters. Still working for agents and customer listing, but still not possible to login on customer.pl.

But why does the log say "[Kernel::System::CustomerAuth::DB::Auth]" if DB is not even enabled?

Code: Select all

#    $Self->{'Customer::AuthModule'}  = 'Kernel::System::CustomerAuth::DB';

Is commented out

and

Code: Select all

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
is enabled.


Can't really understand this. Any tips?

Thanks!
--
OTRS Helpdesk 3.0.10
hangas
Znuny newbie
Posts: 3
Joined: 22 Oct 2011, 21:37
Znuny Version: 3.0.10

Re: LDAP not working for Customer Login only

Post by hangas »

I got this sorted out.

Looks like there is a config file that overrides Default.pm in Files/ZZZAuto.pm
I just commented out the lines that deleted LDAP setting and redefined DB settings.
--
OTRS Helpdesk 3.0.10
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP not working for Customer Login only

Post by crythias »

ZZZAuto will be overwritten by SysConfig, just FYI
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
hangas
Znuny newbie
Posts: 3
Joined: 22 Oct 2011, 21:37
Znuny Version: 3.0.10

Re: LDAP not working for Customer Login only

Post by hangas »

Yes, I realized that after a bit more reading. I also managed to define the setup I want from SysConfig.
Thanks!
--
OTRS Helpdesk 3.0.10
Locked