Customer login slow for LDAP user/gmail setup

Moderator: crythias

Post Reply
VedranOP
Znuny newbie
Posts: 24
Joined: 25 Apr 2018, 10:40
Znuny Version: Otrs 6
Real Name: Vedran
Company: ACI d.d.

Customer login slow for LDAP user/gmail setup

Post by VedranOP »

Dear All,

I am testing OTRS for my company.
My version is : OTRS 6 Patch Level 7
Server OS: Ubuntu 16.04 Server
Everything works fine except Customer login for LDAP users. It takes around 6/7 sec to login. Is that normal?

My Config.pm LDAP part:

Code: Select all

#                                     Customerdata                                          #
#-------------------------------------------------------------------------------------------#
   $Self->{CustomerUser1} = {
    Name => 'LDAP',
    Module => 'Kernel::System::CustomerUser::LDAP',
    Params => {
      Host => 'xxx.xxx.local',
      BaseDN => 'DC=xxx,DC=local',
      SSCOPE => 'sub',
      UserDN => 'xxx',
      UserPw => 'xxx',
	  AlwaysFilter =>  '(&)',
    },
    CustomerKey => 'sAMAccountName',
    CustomerID => 'mail',
    CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserPostMasterSearchFields => ['mail'],
    CustomerUserNameFields => ['givenname', 'sn'],
    Map => [		
		#['UserSalutation', 'Title', 'title', '1', '0', 'var'], 
['UserFirstname', 'Firstname', 'givenname', '1', '1', 'var'], 
['UserLastname', 'Lastname', 'sn', '1', '1', 'var'], 
['UserLogin', 'Login', 'sAMAccountName', '1', '1', 'var'], 
['UserEmail', 'Email', 'mail', '1', '1', 'var'], 
['UserCustomerID', 'CustomerID', 'mail', '0', '1', 'var'], 
#['UserPhone', 'Phone', 'telephonenumber', '1', '0', 'var'], 
#['UserAddress', 'Address', 'postaladdress', '1', '0', 'var'], 
#['UserComment', 'Comment', 'description', '1', '0', 'var'], 

    ],
  };
This is my mail setup: http://wiki.otterhub.org/index.php?titl ... with_Gmail

Seems when I change SMPTS to sendmail as host module it is much faster, but then email does not work. Please help :)
Thank you.
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Customer login slow for LDAP user/gmail setup

Post by fcasal »

Check the logs, the apache,and the system and the communication logs in the otrs admin menu.
Post Reply