kopano python on cygwin - Logon error
-
Hi,
I have finally succeeded in compiling and installing kopano-core on cygwin. However, when I try to connect to the server, it throws an error that the username or password is incorrect. The compiled version is 8.7.1, source taken from git.
As I use a script, which works on linux, and which stores the username and password, it is very unlikely, that they are wrong:
Python 3.6.8 (default, Feb 14 2019, 22:09:48) [GCC 7.4.0] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import kopano >>> kopano_server = 'http://xxxxx:236/kopano' >>> kopano_user = 'xxxxx' >>> kopano_password = 'xxxxxx' >>> server = kopano.Server(server_socket=kopano_server, auth_user=kopano_user, auth_pass=kopano_password) [error ] HrLogon server "http://xxxxx:236/kopano" user "xxxxx": logon failed Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/kopano/server.py", line 282, in __init__ self.mapisession = OpenECSession(self.auth_user, self.auth_pass, self.server_socket, sslkey_file=self.sslkey_file, sslkey_pass=self.sslkey_pass, flags=flags) File "/usr/lib/python3.6/site-packages/MAPI/Util/__init__.py", line 87, in OpenECSession admin.ConfigureMsgService(uid, 0, 0, profprops) File "/usr/lib/python3.6/site-packages/MAPICore.py", line 1668, in ConfigureMsgService return _MAPICore.IMsgServiceAdmin_ConfigureMsgService(self, lpUID, ulUIParam, ulFlags, cValues) MAPI.Struct.MAPIErrorLogonFailed: MAPI error 80040111 (MAPI_E_LOGON_FAILED) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.6/site-packages/kopano/server.py", line 291, in __init__ raise LogonError('Could not logon to server: username or password incorrect') kopano.errors.LogonError: Could not logon to server: username or password incorrect
Any idea what else might be the problem?
I have debugged it a bit: the username and password are still correct in server.py. In MAPICore, the lpUID seems to be binary. Is that correct? Figured it out by myself: seems to be a UID randomly set to differentiate the requests. Username and password are still validly living in cValues.
Could it be an Python problem? The (working) linux version is compiled with 3.7.3, the cygwin version with 3.6.8.
-
The server says:
Thu Jul 4 15:31:00 2019: [warning] Authentication by plugin failed for user “”: Trying to authenticate failed: not found in LDAP; username =
Something is deleting the username…
gSOAP Problem? I am using gsoap 2.8.84, but directly compiled into libkcsoap (i.e. not linked as library).
-
Recompiled 8.7.3 with vmime 0.9.2k1 - same result.