View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002279 | SOGo | Backend General | public | 2013-03-29 19:53 | 2013-04-09 19:05 |
Reporter | bofhus | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.0.4b | ||||
Target Version | 2.0.5 | Fixed in Version | 2.0.5 | ||
Summary | 0002279: Session lost after SOGoCacheCleanupInterval | ||||
Description | Hi :) This is NOT "missing OCSSessionsFolderURL" issue. OCSSessionsFolderURL is set and working - session entry appears in MySQL database. But every time after inactivity longer then SOGoCacheCleanupInterval SOGo redirect me to the login page. I tried to debug it myself. First I added debug logs in SOGoSession.m: In the log appears full session record from MySQL. Then I added debug logs in SOGoWebAuthenticator.m: NSLog(@"BJ-DEBUG2 %@",value); The same lines appears in the log for memcached and MySQL checks: This first log line appears only for MySQL check, of course. Could you help me and give some advices, where to search? Boguslaw Juza | ||||
Tags | No tags attached. | ||||
2013-03-30 03:38
|
debug1 (1,120 bytes)
<32 get session:KEbT8bxYNsidTvEv7oJ60w== >32 END <32 set session:KEbT8bxYNsidTvEv7oJ60w== 0 10 216 >32 STORED <32 get session:KEbT8bxYNsidTvEv7oJ60w== >32 sending key session:KEbT8bxYNsidTvEv7oJ60w== >32 END <32 get bogdan@bingo.mydomain.com.pl+attributes >32 END <32 set bogdan@bingo.mydomain.com.pl+attributes 0 10 56 >32 STORED <32 get u00001-bingo+attributes >32 END <32 set u00001-bingo+attributes 0 10 264 >32 STORED <32 set bogdan@bingo.mydomain.com.pl+attributes 0 10 264 >32 STORED <32 set u00001-bingo@bingo.mydomain.com.pl+attributes 0 10 264 >32 STORED <32 get session:KEbT8bxYNsidTvEv7oJ60w== >32 sending key session:KEbT8bxYNsidTvEv7oJ60w== >32 END <32 get session:KEbT8bxYNsidTvEv7oJ60w== >32 sending key session:KEbT8bxYNsidTvEv7oJ60w== >32 END <32 set bogdan@bingo.mydomain.com.pl+attributes 0 10 320 >32 STORED <32 get bogdan@bingo.mydomain.com.pl@bingo.mydomain.com.pl+attributes >32 END <32 set bogdan@bingo.mydomain.com.pl@bingo.mydomain.com.pl+attributes 0 10 4 >32 STORED <32 get anonymous+defaults >32 END <32 get u00001-bingo+attributes >32 sending key u00001-bingo+attributes >32 END |
I started memcached in debug mode and I logged dump attached above. It was catched after iddle > SOGoCacheCleanupInterval |
|
LDAP user record: dn: cn=u00001,o=bingo,dc=mydomain,dc=local From SOGo config file: CNFieldName = displayName; |
|
The SOGoEnableDomainBasedUID flag is set to NO in my config file. If I change it to YES, session works correctly. But SOGo adds domain name to UID and to e-mail, so it creates bogdan@bingo.mydomain.com.pl@bingo.mydomain.com.pl. I have unique uids in all domains and I do not want to use domain-based UIDs. <31 set bogdan@bingo.mydomain.com.pl@bingo.mydomain.com.pl+attributes 0 10 4
|
|
I reproduced the issue here. Here's the simplest config to reproduce the bug: <pre> Sample user ldap entry:
It seems to happen only if bindfields contains (mail). |
|
This should be fixed in the next nightly build: https://github.com/inverse-inc/sogo/commit/eec8c07d4f061a2006bd7ec9967a2b1c92e7618b Note that the data returned by the UIDFieldName attribute (uid in the example above) MUST still be unique across the entire SOGo installation. So, a setup like this will NOT work: dn: uid=jdoe,ou=coyote,dc=example,dc=com Even if the complete DN is different, since both users shares the same 'uid' value, sogo will consider this as being the same user (they will end up using the same database tables behind the scenes...) |
|
This patch fixes this issue and session is now preserved after longer idle time. Thanks! :) I have UIDs created by scheme CN-OU, so they are unique across the entire SOGo. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-29 19:53 | bofhus | New Issue | |
2013-03-30 03:38 | bofhus | File Added: debug1 | |
2013-03-30 03:41 | bofhus | Note Added: 0005456 | |
2013-03-30 03:43 | bofhus | Note Edited: 0005456 | |
2013-03-30 03:50 | bofhus | Note Added: 0005458 | |
2013-04-02 15:40 | bofhus | Note Added: 0005469 | |
2013-04-03 14:45 |
|
Note Added: 0005481 | |
2013-04-09 17:48 |
|
Note Added: 0005501 | |
2013-04-09 17:48 |
|
Status | new => feedback |
2013-04-09 18:59 | bofhus | Note Added: 0005502 | |
2013-04-09 19:05 | ludovic | Target Version | => 2.0.5 |
2013-04-09 19:05 | ludovic | Status | feedback => closed |
2013-04-09 19:05 | ludovic | Resolution | open => fixed |
2013-04-09 19:05 | ludovic | Fixed in Version | => 2.0.5 |