View Issue Details

IDProjectCategoryView StatusLast Update
0005428SOGoWeb Mailpublic2022-02-23 12:47
Reportersogouser5646 Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version5.2.0 
Summary0005428: Webmail redirecty me every few minutes back to SSO.
Description

I get redirected bakc to the SSO every few minutes, which will log me in automatically -> SoGo again. But it interrupts the WorkFlow.

TagsNo tags attached.

Activities

Christian Mack

Christian Mack

2021-11-16 08:06

developer   ~0015617

Which SSO do you use?

What have you set for "Settings" --> "General" --> "General" --> "Refresh View"?

sogouser5646

sogouser5646

2021-11-16 08:57

reporter   ~0015618

I use SAML
It's set to "Every Minute" as I don't like to miss out on emails..

the worst thing is that when you're somehwere in the past or future, especially in the calendar, you get back to the mail.

Christian Mack

Christian Mack

2021-11-16 09:17

developer   ~0015619

How long lasts your SAML Token?

Do you at least stay where you are when setting "Settings" --> "General" --> "General" --> "Default Module" to "Last Used"?

sogouser5646

sogouser5646

2021-11-16 10:35

reporter   ~0015620

I'm not sure about the token duration, we have a "Session duration" which lasts till the user closes the browser.

This works ""Settings" --> "General" --> "General" --> "Default Module" to "Last Used"?"

sogouser5646

sogouser5646

2021-11-16 11:27

reporter   ~0015621

we have a "Session valid not on or after" which "tells" the app that it should be logged in for 8400minutes rn

sogouser5646

sogouser5646

2021-12-16 09:07

reporter   ~0015692

I updated SoGo to v5.3 and the problem is a bit worse now. when I first log-in (also after every reload - login (issue)) it takes about 15 seconds and then reloads to login again) sometimes it needs 4 "logins" (without interaction) just to load the inbox like this.

is there something I can do for debugging / logging to help fix the problem?

webtech

webtech

2021-12-17 10:35

reporter   ~0015699

Have you looked at SOGoCacheCleanupInterval?

sogouser5646

sogouser5646

2021-12-17 11:46

reporter   ~0015700

I changed this value from "900" to "10" and restarted sogo but it's not happening more often. it stays the same.

Christian Mack

Christian Mack

2021-12-20 15:23

developer   ~0015702

Do you run /usr/sbin/sogo-tool expire-sessions XXXin your cron job under /etc/cron.d/sogo?
If yes, which value are you using for the expiration time XXX

sogouser5646

sogouser5646

2021-12-20 16:07

reporter   ~0015703

yes, I use "60"

Christian Mack

Christian Mack

2021-12-20 16:15

developer   ~0015704

So an inactive session is removed after an hour.
Therefore this too isn't the problem.

Christian Mack

Christian Mack

2021-12-20 16:18

developer   ~0015705

Do you have SOGoXSRFValidationEnabled = NO; in your sogo.conf?

sogouser5646

sogouser5646

2021-12-20 16:31

reporter   ~0015706

I don't have "SOGoXSRFValidationEnabled" in my sogo.conf

Christian Mack

Christian Mack

2021-12-20 16:34

developer   ~0015707

This setting is mandatory for SAML usage.
Please add it.

sogouser5646

sogouser5646

2021-12-20 22:10

reporter   ~0015708

I added the settings and restarted sogo but it doesn't fix it. (I actually don't see a difference).

sogouser5646

sogouser5646

2022-01-05 08:22

reporter   ~0015724

any other idea?
is there a place where I can get logs from the behaviour?

sogouser5646

sogouser5646

2022-01-18 03:45

reporter   ~0015776

sadly I cannot get a support-contract rn.. also because I'm not yet ready to sfart my OpenSource business.. But I would pay 200$ fixing this., and yes.. I know it's value is higher but that what I could pay rn..

sogouser5646

sogouser5646

2022-01-29 13:25

reporter   ~0015834

I think this is fixed! it didn't happen anymore today on my 5.5.0!
love you :)

sogouser5646

sogouser5646

2022-01-29 13:26

reporter   ~0015835

there's no way to close this issue on my own, right?

sogouser5646

sogouser5646

2022-01-31 08:56

reporter   ~0015837

weird.. now it's happening again.

sogouser5646

sogouser5646

2022-01-31 09:55

reporter   ~0015838

but it's better than before. It happens less often and the claendar keeps the right week open.
But when I compose a fresh email and it happens it will still discharge it.

sogouser5646

sogouser5646

2022-01-31 12:00

reporter   ~0015839

yeah.. I need to correct that too.. " the calendar keeps the right week open " not really.. it goes to inbox as before

sogouser5646

sogouser5646

2022-02-18 14:49

reporter   ~0015884

any way to speed this up? :)

heupink

heupink

2022-02-19 10:34

reporter   ~0015885

I guess you could try purchase a support contract.

sogouser5646

sogouser5646

2022-02-21 08:55

reporter   ~0015891

I finally really logged SAML client side.
which always resulted in a reload exactly after 4 minutes.

when I search the users-maillist I find multiple entries like this one, describing the same issue:
https://marc.info/?l=sogo-users&m=159320330828903&w=2

they always say that adjustements of the Entry "SOGoCacheCleanupInterval" in sogo.conf will fix it.
That's not the case anymore as I tried with much higher amounts (currently 43200).

there's also no entry with "240" == 4 minutes. inside sogo.conf

webtech

webtech

2022-02-21 12:27

reporter   ~0015892

If the cache is getting wiped before SOGoCacheCleanupInterval has expired, maybe you need to look at your memcached instance to see what's happening there?

sogouser5646

sogouser5646

2022-02-22 09:02

reporter   ~0015897

Last edited: 2022-02-22 12:59

what I see on my sogo-instance is this:

<0x0x55e528ee0c80[SOGoWebAuthenticator]> Expired session received, redirecting to login page.
<0x0x55e528f6c880[SOGoWebAuthenticator]> tried wrong password for user '/verylongstring'! -> is there a way to find out wht user is meant exactly? base64 doesn't seem to be it.

I try to get logs from memcached..

heupink

heupink

2022-02-22 10:09

reporter   ~0015898

Could the "very long string" be the SAML assertion given as password?
See here: https://github.com/ck-ws/pam-script-saml/

sogouser5646

sogouser5646

2022-02-22 10:58

reporter   ~0015899

yes, I think so.

francis

francis

2022-02-22 13:01

administrator   ~0015901

Are your servers synchronized with the same time/ntp server?

sogouser5646

sogouser5646

2022-02-22 16:15

reporter   ~0015905

yes, they also show exactly the same time.

sogouser5646

sogouser5646

2022-02-22 17:51

reporter   ~0015906

maybe it's just my /etc/pam.d/common-auth
it looks like this (removed the comments):
auth [success=1 default=ignore] pam_unix.so nullok
auth requisite pam_deny.so
auth required pam_permit.so
auth required pam_script.so grace=43200

sogouser5646

sogouser5646

2022-02-22 17:53

reporter   ~0015907

maybe it's just my /etc/pam.d/common-auth it looks like this (removed the comments):

auth [success=1 default=ignore] pam_unix.so nullok
auth requisite pam_deny.so
auth required pam_permit.so
auth required pam_script.so grace=43200
sogouser5646

sogouser5646

2022-02-23 08:46

reporter   ~0015908

maybe someone has a working example for his "/etc/pam.d/" -config?

sogouser5646

sogouser5646

2022-02-23 10:16

reporter   ~0015909

update:
It has to be in sogo..
IO forgot that I just circumvented dovecot-auth when I setup SAML by whitelisting SoGos internal IP.. so I don't need to configure pam for dovecot.

sogouser5646

sogouser5646

2022-02-23 11:51

reporter   ~0015911

alright.. mistery resolved.. not an issue with sogo. But an issue with my user-synch.. this issue can be closed.
I thank you all very much for the great support, I think I learned some things.

but what I also tested now is lowering the cache.. and it doesn't change anything.. so "SOGoCacheCleanupInterval" can stay on a lower value (tested with 200), it wouldn't log me out.

Issue History

Date Modified Username Field Change
2021-11-12 11:42 sogouser5646 New Issue
2021-11-16 08:06 Christian Mack Note Added: 0015617
2021-11-16 08:57 sogouser5646 Note Added: 0015618
2021-11-16 09:17 Christian Mack Note Added: 0015619
2021-11-16 10:35 sogouser5646 Note Added: 0015620
2021-11-16 11:27 sogouser5646 Note Added: 0015621
2021-12-16 09:07 sogouser5646 Note Added: 0015692
2021-12-17 10:35 webtech Note Added: 0015699
2021-12-17 11:46 sogouser5646 Note Added: 0015700
2021-12-20 15:23 Christian Mack Note Added: 0015702
2021-12-20 16:07 sogouser5646 Note Added: 0015703
2021-12-20 16:15 Christian Mack Note Added: 0015704
2021-12-20 16:18 Christian Mack Note Added: 0015705
2021-12-20 16:31 sogouser5646 Note Added: 0015706
2021-12-20 16:34 Christian Mack Note Added: 0015707
2021-12-20 22:10 sogouser5646 Note Added: 0015708
2022-01-05 08:22 sogouser5646 Note Added: 0015724
2022-01-18 03:45 sogouser5646 Note Added: 0015776
2022-01-29 13:25 sogouser5646 Note Added: 0015834
2022-01-29 13:26 sogouser5646 Note Added: 0015835
2022-01-31 08:56 sogouser5646 Note Added: 0015837
2022-01-31 09:55 sogouser5646 Note Added: 0015838
2022-01-31 12:00 sogouser5646 Note Added: 0015839
2022-02-18 14:49 sogouser5646 Note Added: 0015884
2022-02-19 10:34 heupink Note Added: 0015885
2022-02-21 08:55 sogouser5646 Note Added: 0015891
2022-02-21 12:27 webtech Note Added: 0015892
2022-02-22 09:02 sogouser5646 Note Added: 0015897
2022-02-22 10:09 heupink Note Added: 0015898
2022-02-22 10:58 sogouser5646 Note Added: 0015899
2022-02-22 12:59 francis Note Edited: 0015897
2022-02-22 13:01 francis Note Added: 0015901
2022-02-22 16:15 sogouser5646 Note Added: 0015905
2022-02-22 17:51 sogouser5646 Note Added: 0015906
2022-02-22 17:53 sogouser5646 Note Added: 0015907
2022-02-23 08:46 sogouser5646 Note Added: 0015908
2022-02-23 10:16 sogouser5646 Note Added: 0015909
2022-02-23 11:51 sogouser5646 Note Added: 0015911
2022-02-23 12:47 francis Status new => closed
2022-02-23 12:47 francis Resolution open => no change required