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

Syspass 1.2.0.11 LDAP 2 times to login #189

Closed
bitking opened this issue Jan 4, 2016 · 12 comments
Closed

Syspass 1.2.0.11 LDAP 2 times to login #189

bitking opened this issue Jan 4, 2016 · 12 comments
Assignees
Milestone

Comments

@bitking
Copy link

bitking commented Jan 4, 2016

Hi There,

Sorry to post another issue but now and then i am logging in using LDAP with my usernumber and password but the first time i do this i get no error nothing and the page refreshes with the login box when my password is 100% ok then i login again and i get to my passwords.

How can we troubleshoot this?

I only got this in the log:

2809 2016-01-04 17:10:16 Log in myusernumber 10.200.200.183 (LDAP)
Login Server: xxxxxxx:3268
User: myusernumber
Profile: Admin
Group: Network
2808 2016-01-04 17:10:07 Log in myusernumber 10.200.200.183 (LDAP)
Login Server: xxxxx:3268
User: myusernumber
Profile: Admin
Group: Network
2807 2016-01-04 17:10:07 Logout session 10.200.200.183 User:
Inactive time: 5.5 min.
Total time: 5.5 min.
2806 2016-01-04 17:04:35 Logout session 10.200.200.183 User: myusernumber
Inactive time: 0.3 min.
Total time: 2.03 min.

@nuxsmin nuxsmin added this to the 1.2 milestone Jan 5, 2016
@nuxsmin nuxsmin self-assigned this Jan 5, 2016
nuxsmin added a commit that referenced this issue Jan 5, 2016
* [FIX] Fixes #186. Thanks to @wagnst
* [FIX] Related #189. Login not done for the fisrt time randomly.
@nuxsmin
Copy link
Owner

nuxsmin commented Jan 5, 2016

Hi, can you try it out the latest commit?

@bitking
Copy link
Author

bitking commented Jan 5, 2016

Thanks, what is the best way to update? I am already in production with this so i am a little carefull now :)

@nuxsmin
Copy link
Owner

nuxsmin commented Jan 5, 2016

If you don't want to update your production environment, you can download and unpack in a new directory and then copy the config.php file to the newly created structure.

The new instance will connect to the same database, but no changes will be performed because this build doesn't implements any database related stuff, only PHP session management.

Another solution would be to create a new installation from scratch using a different database.

@bitking
Copy link
Author

bitking commented Jan 5, 2016

Yes, but i noticed you only changed the MainC.class.php in syspass//web.

Cant i just override the current file with your new one?

@nuxsmin
Copy link
Owner

nuxsmin commented Jan 5, 2016

Sure, but there are 6 files in the latest commit....

8e86d75

@bitking
Copy link
Author

bitking commented Jan 6, 2016

Problem is fixed now, thanks again.

@bitking bitking closed this as completed Jan 6, 2016
@bitking bitking reopened this Jan 6, 2016
@bitking
Copy link
Author

bitking commented Jan 6, 2016

I send the url of the private gist with the debug data.

@nuxsmin
Copy link
Owner

nuxsmin commented Jan 6, 2016

Ok, let me find out what could be happening. The debug data can be useful, but I think it isn't a LDAP related issue, because it would throw an error, and it doesn't.

It can be a PHP session issue. Can you tell me if before the failed login attempt you did a logout or was a session timeout?

@bitking
Copy link
Author

bitking commented Jan 7, 2016

Everytime i did a logout.

@wagnst
Copy link

wagnst commented Feb 8, 2016

LDAP login is working perfectly with my setup. Maybe I can help you somehow to configure your setup correctly?

@bitking
Copy link
Author

bitking commented Feb 11, 2016

Thanks a lot the problem is resolved now, logged in and out for 20 times and haven't experienced the problem anymore.

@bitking bitking closed this as completed Feb 11, 2016
@nuxsmin
Copy link
Owner

nuxsmin commented Feb 11, 2016

Great, thanks for the feedback!

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

No branches or pull requests

3 participants