Closed teleharry closed 6 years ago
I have informed the support of churchtools
Just found it by myself. Somehow it returns since CT 3.27 systemd: Starting ctldap-test Service... node: ChurchTools-LDAP-Wrapper listening @ XXX node: Error while retrieving users: Session expired node: Error while retrieving groups: Session expired node: Unhandled rejection Session expired
So removing the "!" in ctldap.js on line 96 to: if (result.message === "Session expired" && !triedLogin) { does the trick.
Seems to work again.
Version 3.27.7 mentions to fix it, but dooesnt:
Feb 27 22:23:32 server-buero node: Admin bind DN: cn=root,ou=users,o=churchtools
Feb 27 22:23:32 server-buero node: Authentication success
Feb 27 22:23:32 server-buero node: SEARCH base object: o=churchtools scope: sub
Feb 27 22:23:32 server-buero node: Filter: (objectclass=*)
Feb 27 22:23:32 server-buero node: Unhandled rejection StatusCodeError: 401 - {"status":"error","message":"Session expired!"}
Feb 27 22:23:32 server-buero node: at new StatusCodeError (/data/ctldap/ctldap-test/node_modules/request-promise-core/lib/errors.js:32:15)
Feb 27 22:23:32 server-buero node: at Request.plumbing.callback (/data/ctldap/ctldap-test/node_modules/request-promise-core/lib/plumbing.js:104:33)
Feb 27 22:23:32 server-buero node: at Request.RP$callback [as _callback] (/data/ctldap/ctldap-test/node_modules/request-promise-core/lib/plumbing.js:46:31)
Feb 27 22:23:32 server-buero node: at Request.self.callback (/data/ctldap/ctldap-test/node_modules/request/request.js:186:22)
Feb 27 22:23:32 server-buero node: at emitTwo (events.js:106:13)
Feb 27 22:23:32 server-buero node: at Request.emit (events.js:191:7)
Feb 27 22:23:32 server-buero node: at Request.
just used the pull (Fix login to churchtools #8) request, which works with version 3.27.7:
3.27.8 fixed it, without these workarounds
It seems, no entries are available since upgrading to Churchtools version 3.27 Perhaps, some changes with Slim-Framework: https://www.slimframework.com as stated in CT Changelogs