Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slow login/authentication page #2190

Closed
elkekou opened this issue Apr 6, 2018 · 6 comments
Closed

slow login/authentication page #2190

elkekou opened this issue Apr 6, 2018 · 6 comments

Comments

@elkekou
Copy link

elkekou commented Apr 6, 2018

Steps to reproduce

  1. Enter valid credential of user (ldap) and wait long time to login
  2. Enter valid credential of super admin and never work

Expected behaviour

Login quickly like in previous version 2.1.27.10

Actual behaviour

Since upgrade to 2.1.27.11, login sometimes really long sometimes does not work.

Checked my ldap log, and teampass seems to waiting very long time (near a minute) before sending auth request to ldap.
In setting interface (ldap tab) when i make ldap test response is immediate.
So problem seems to be before teampass try authentication function.

Server configuration

Operating system: Centos 7.4

Web server: httpd 2.4.6-67

Database: mariadb

PHP version: php7.0.27-1.ius.centos7

Teampass version: Latest pre-relase (2018/0/06) 2.1.27.11

Teampass configuration file:

Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file /includes/config/tp.config.php.

Client configuration

Browser: firefox / chromium

Operating system: cnetos 7

Logs

Web server error log

nothing except this strange line (which does not seems to be linked to problem ) :
PHP Notice: Undefined index: pwComplexity in /var/www/html/teampass/index.php on line 881

@nilsteampassnet
Copy link
Owner

Did you enable feature to warn admin by email on login?
Is the setup of email successfull?

@elkekou
Copy link
Author

elkekou commented Apr 6, 2018

Only "email user when user password is changed" was enabled, but i disabled it and no change.

The mail setup is working (tested with teampass feature "send yourself ...").
really does not understand what happen.

edit 1 i tried to disable ldap auth, but it's still very long to authenticate.

edit 2: i saw (in code) teampass seems to getting internet resources? is it true? Because my teampass have not anymore internet access

edit 3 : i found where is the problem my pc which access to teamppass have no internet connection and the request to "ipapi.co" take long time before timeout. If i set ipapi.co in /etc/hosts to localhost all work.
So can i deactivate this function without kill teampass?

@elkekou elkekou changed the title Really slow login page slow login/authentication page Apr 6, 2018
@asmiah
Copy link

asmiah commented Nov 13, 2018

Hi,

We are using v2.1.27.16

We are experiencing delays in login too - the issue is with both the ldap users as well as the local admin user.

We have this hosted on a CentOS 7 server all up to date and patched.

Running on HTTPD

Any ideas?

Thanks

@nilsteampassnet
Copy link
Owner

Can you please use the developer tools from your browser to identify what are the network queries that are too longs?

@elkekou
Copy link
Author

elkekou commented Nov 15, 2018 via email

@nilsteampassnet
Copy link
Owner

Yes this issue was fixed in 2.1.27.27.

Please upgrade the latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants