Customer login slow for LDAP user/gmail setup

Moderator: crythias

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

Customer login slow for LDAP user/gmail setup

Post by VedranOP » 19 May 2018, 20:21

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
OTRS wizard
Posts: 186
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.10

Re: Customer login slow for LDAP user/gmail setup

Post by fcasal » 19 May 2018, 21:09

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

Post Reply