OTRS doesn't see customers

Moderator: crythias

Post Reply
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

OTRS doesn't see customers

Post by firebolt »

Hi!

I have a problem with ldap authentication of customers. I configured system so that agents and customers can log in with their ldap accounts. But the are not all of our customers appears in Customers menu item. I can see only 2 departments of 26.

Here is my config:

Code: Select all

  #АХД
    $Self->{CustomerUser1} = {
     Name => 'АХД',
     Module => 'Kernel::System::CustomerUser::LDAP',
     Params => {
      Host => 'svrmain.company.local',
      BaseDN => 'OU=Users,DC=company,DC=local',
      SSCOPE => 'sub',
      UserDN => 'cn=admin,ou=Administrators,dc=company,dc=local',
      UserPw => '********',
      SourceCharset => 'utf-8',
      DestCharset => 'utf-8',
How to make system see all of our customers?
OTRS 6.0.20, Debian GNU/Linux 9 stretch
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS doesn't see customers

Post by crythias »

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
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

I've configured system logs and saw next errors:

Code: Select all

[Wed Sep 26 12:52:44 2012][Error][Kernel::System::CustomerUser::LDAP::CustomerSearch][363] Sizelimit exceeded
And what does it means?
OTRS 6.0.20, Debian GNU/Linux 9 stretch
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS doesn't see customers

Post by EXG133 »

That is not an OTRS issue, your LDAP is configured to have a maximum size when it replies. Configure this on your AD/OpenLDAP.
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

EXG133 wrote:That is not an OTRS issue, your LDAP is configured to have a maximum size when it replies. Configure this on your AD/OpenLDAP.
According to this topic it's an OTRS Bug.
OTRS 6.0.20, Debian GNU/Linux 9 stretch
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

OK, now my problem is solved.

I've added

Code: Select all

AlwaysFilter => '(&(objectCategory=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))',
string and

Code: Select all

CustomerUserSearchListLimit => 900,
string to my Config.pm.

This problem is well known)))
OTRS 6.0.20, Debian GNU/Linux 9 stretch
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS doesn't see customers

Post by EXG133 »

That's not a problem, that's just a default setting. I thought you added that already, my bad for assuming. I totally agree more comments would be nice in the default.pm explaining this setting, not everyone is familiar with LDAP (I'm not either :) ).

Just FYI, this sizelimit can be configured on the server and with every LDAP query, but the server limit wins.
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

EXG133 wrote:I totally agree more comments would be nice in the default.pm explaining this setting...
It must be in all OTRS Documentations from oldest system version to highest!!! But it doesn't included in anyone :(

Hey crythias, could you affect to this situation?
OTRS 6.0.20, Debian GNU/Linux 9 stretch
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS doesn't see customers

Post by crythias »

How best may I help you on this? You've encountered and addressed the issues yourself.
Other relevant posts:
viewtopic.php?f=53&t=8173
viewtopic.php?f=62&t=12487
viewtopic.php?f=61&t=15401
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
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS doesn't see customers

Post by EXG133 »

I think he means if you (as mod) can ask OTRS to provide a better manual for this popular setting. Judging on the posts on this forum many would welcome more information in the manual and/or default.pm.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS doesn't see customers

Post by crythias »

I have no clout. I'm just a guy. The issue is server side, and (IMO) is generally a non-issue.
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
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS doesn't see customers

Post by jojo »

You should have some basic understanding of LDAP for working with LDAP. You should also have some basic knowledge of SMTP, POP3 or other protocols. The manual can not cover basic IT knowledge for everything
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS doesn't see customers

Post by EXG133 »

I totally agree with you jojo. But I find this an interesting discussion:

The thing that bugs me a little is that if you copy from default.pm this is the default setting:

# CustomerUserListFields => ['login', 'first_name', 'last_name', 'customer_id', 'email'],
CustomerUserSearchFields => [ 'login', 'first_name', 'last_name', 'customer_id' ],
CustomerUserSearchPrefix => '*',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => [ 'title', 'first_name', 'last_name' ],
CustomerUserEmailUniqCheck => 1,

Why does it have this set to 250? I never limit LDAP searches like this but instead rely on server side soft or hard limits (which I always set higher than 250, I think AD has a limit of 1000?). So at first I didn't read this option and was confused at my results.

EDIT: It might just be bad practice from my side, everything I know about LDAP is self thaught :)
Last edited by EXG133 on 27 Sep 2012, 16:00, edited 1 time in total.
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

jojo wrote:You should have some basic understanding of LDAP for working with LDAP. You should also have some basic knowledge of SMTP, POP3 or other protocols. The manual can not cover basic IT knowledge for everything
No no no! It's a specific parameter of a specific program! When I configure other systems for working with AD LDAP, they give me all users "from the box". But when I configure OTRS, I must specify this

Code: Select all

CustomerUserSearchListLimit => 900
parameter to have a possibility to see all my LDAP users. Otherwise I will see only ~200 users. It must be specified in the OTRS documentation! I think I have a basic understanding of LDAP.
OTRS 6.0.20, Debian GNU/Linux 9 stretch
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS doesn't see customers

Post by jojo »

This Parameter you described is aprotection not to fetch all users in once (as this really makes no sense). If you search for a user you will specify search parameters to get only a few back. Or do you wan't to scroll through some thousand of users on ticket creation?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: OTRS doesn't see customers

Post by firebolt »

jojo wrote:This Parameter you described is aprotection not to fetch all users in once (as this really makes no sense). If you search for a user you will specify search parameters to get only a few back. Or do you wan't to scroll through some thousand of users on ticket creation?
OK. I can't tell you anything at this moment because I really don't have experience in using OTRS. I can't imagine what you are talking about. As I remember customer doesn't need to scroll through thousand of users when he creates a ticket. He just choose a queue which receives his ticket. That parameter helped me to see all my LDAP users. And 'AlwaysFilter' parameter helped me to filter users.
OTRS 6.0.20, Debian GNU/Linux 9 stretch
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS doesn't see customers

Post by crythias »

The point is that there is no reason to see all of your users within OTRS. There is nothing (or practically nothing) that you can do through the GUI as a batch to users. And the things you want to apply to large groups of people would better be handled via changes in Config.pm or command line.
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
Post Reply