I've found the source of the problem. We use custom com.openexchange.authentication.imap and I've had to add a mapping to login2context table. Now it works.
Thank for your help.
Best regards,
Rafal.
Announcement
Collapse
No announcement yet.
Problem with communication apache frontend(AJP1,3)->groupware Context id=-1 not found
Collapse
X
-
A quick look at this setup:
You try to login as user@example.com but that does not match any existing email address and does not seem to be connected to the context name.
I would think you need to login differently:
"5 NULL Test User test@example.com
Your login name should be the "Name" value which is NULL here for whatever reason I do not know.
Leave a comment:
-
Originally posted by Wolfgang Rosenauer View PostSeems like the configuration cannot map @example.com to a valid context id?
First of all "listcontext" would be interesting and if that is correct, you should check your login and imap/imapauth properties.
cid fid fname enabled qmax qused name lmappings
1 3 1_ctx_store true 1024 0 1 defaultcontext
Id Name Displayname Email
2 contextadmin Context Admin admin@example.com
5 NULL Test User test@example.com
imapauth.properties
IMAP_SERVER=localhost
IMAP_PORT=143
IMAP_USE_SECURE=false
IMAP_TIMEOUT=5000
IMAP_CONNECTIONTIMEOUT=5000
USE_FULL_LOGIN_INFO=true
USE_MULTIPLE=true
com.openexchange.authentication.imap.imapAuthEnc=U TF-8
imap.properties:
com.openexchange.imap.imapSort=imap
com.openexchange.imap.imapSearch=imap
com.openexchange.imap.imapFastFetch=true
com.openexchange.imap.imapSupportsACL=auto
com.openexchange.imap.imapTimeout=50000
com.openexchange.imap.imapConnectionTimeout=20000
com.openexchange.imap.imapTemporaryDown=10000
com.openexchange.imap.imapAuthEnc=UTF-8
com.openexchange.imap.maxIMAPConnectionIdleTime=60 000
com.openexchange.imap.User2ACLImpl=auto
com.openexchange.imap.blockSize=1000
com.openexchange.imap.spamHandler=SpamAssassin
com.openexchange.imap.propagateClientIPAddress=fal se
com.openexchange.imap.propagateHostNames=
com.openexchange.imap.maxNumConnections=0
com.openexchange.imap.maxNumExternalConnections=im ap.gmail.com:2,imap.googlemail.com:2
com.openexchange.imap.enableTls=false
com.openexchange.imap.notifyRecent=false
com.openexchange.imap.notifyFrequencySeconds=300
com.openexchange.imap.notifyFullNames=INBOX
login.properties:
com.openexchange.ajax.login.http-auth.autologin=false
com.openexchange.ajax.login.http-auth.client=com.openexchange.ox.gui.dhtml
com.openexchange.ajax.login.http-auth.version=HTTP Auth
!com.openexchange.ajax.login.errorPageTemplate=
com.openexchange.ajax.login.insecure=false
com.openexchange.ajax.login.redirect.changeIPAllow ed=true
ox db:
mysql> select * from user\G;
*************************** 1. row ***************************
cid: 1
id: 2
imapServer: imap://localhost:143
imapLogin: NULL
mail: admin@example.com
mailDomain: NULL
mailEnabled: 1
preferredLanguage: en_US
shadowLastChange: -1
smtpServer: smtp://localhost:25
timeZone: Europe/Berlin
userPassword: 0DskJgnAQD6WsyyuPYfVAMf41hE=
contactId: 1
passwordMech: {SHA}
uidNumber: 65534
gidNumber: 65534
homeDirectory: /home/contextadmin
loginShell: /bin/bash
*************************** 2. row ***************************
cid: 1
id: 5
imapServer: imap://mail.example.pl:143
imapLogin: test@example.com
mail: test@example.com
mailDomain: NULL
mailEnabled: 1
preferredLanguage: pl_PL
shadowLastChange: -1
smtpServer: smtp://mail.example.pl:25
timeZone: Europe/Warsaw
userPassword: 0DskJgnAQD6WsyyuPYfVAMf41hE=
contactId: 4
passwordMech: {SHA}
uidNumber: 65534
gidNumber: 65534
homeDirectory: /home/NULL
loginShell: /bin/bash
2 rows in set (0.00 sec)
Do You need more info?
Best regards,
Rafal.
Leave a comment:
-
Seems like the configuration cannot map @example.com to a valid context id?
First of all "listcontext" would be interesting and if that is correct, you should check your login and imap/imapauth properties.
Leave a comment:
-
Problem with communication apache frontend(AJP1,3)->groupware Context id=-1 not found
Hi All.
I have an OX server made of one apache front server, one application server (admin,groupware) and one database server (ox databases).
Currently I have a problem with proper logging through GUI.
When I log through it I get in ox-groupware.log:
Mar 1 18:02:10 127.0.0.1 2012-03-01 18:02:10,816 open-xchange-groupware ERROR [com.openexchange.authentication.imap.impl.IMAPAuth entication][OX-Logger]: com.openexchange.log.internal.LoggerTask,call Logged at: com.openexchange.authentication.imap.impl.IMAPAuth entication.handleLoginInfo(IMAPAuthentication.java :250) Context id=-1 not found com.openexchange.ajp13.remoteAddress=X.X.X.X com.openexchange.ajp13.remotePort=40826
Mar 1 18:02:10 127.0.0.1 2012-03-01 18:02:10,817 open-xchange-groupware INFO [com.openexchange.login.internal.LoginPerformer][OX-Logger]: com.openexchange.log.internal.LoggerTask,call Logged at: com.openexchange.ajax.Login.doLogin(Login.java:860 ) Login:user@example.com IP:Y.Y.Y.Y AuthID:84e3530d-fd81-4ab2-9ad3-9fdc62300000 Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/10.10 Chromium/15.0.874.121 Chrome/15.0.874.121 Safari/535.2 Client:com.openexchange.ox.gui.dhtml(6.20.0 Rev36) Interface:HTTP_JSON Failed.
From groupware server there is no traffic to my imap server when I try to login (I've checked with tcpdump).
Could anyone help?
Leave a comment: