Closed AndreeaChi closed 2 years ago
I have done some new tests on a fresh 13.4.5 Jetty+HSQL, using Chrome 95 version.
First test - starting from AD 1.11.1 and upgrading it to 1.13:
Second test - the same 13.4.5 Jetty, this time continuing with an upgrade to 1.13.1:
Logs showing the restart action, I have upgraded the app the LDAP authentication failed: logs.txt
I have also reproduced the issue locally on XWiki 13.9 with an upgrade for Active Directory app from 1.11.1 to 1.13.1: Here is the error from the logs:
2021-11-18 19:13:29,545 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG x.c.l.XWikiLDAPAuthServiceImpl - The provided user is null. We don't try to authenticate, it probably means the user is in non logged mode.
2021-11-18 19:13:29,547 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG o.x.c.l.XWikiLDAPConfig - remoteUserParser: null
2021-11-18 19:13:29,568 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG o.x.c.l.XWikiLDAPConfig - ldap_group_classes: [groupofnames, posixgroup, apple-group, groupofuniquenames, dynamicgroup, groupwisedistributionlist, group, dynamicgroupaux]
2021-11-18 19:13:29,580 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG o.x.c.l.XWikiLDAPConfig - ldap_group_memberfields: [uniquemember, memberuid, member]
2021-11-18 19:13:29,583 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG x.c.l.XWikiLDAPAuthServiceImpl - LDAP authentication failed: LDAP not activ
2021-11-18 19:13:29,583 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG x.c.l.XWikiLDAPAuthServiceImpl - Trying authentication against XWiki DB
2021-11-18 19:13:29,584 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG x.c.l.XWikiLDAPAuthServiceImpl - LDAP authentication failed for user [TestUser]
2021-11-18 19:13:29,584 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN nticationFailureLoggerListener - Authentication failure with login [TestUser]
2021-11-18 19:13:29,587 [qtp1307904972-19 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG x.c.l.XWikiLDAPAuthServiceImpl - XWikiUser: null
A server restart fixed the issue.
This issue duplicates https://github.com/xwikisas/application-activedirectory/issues/47. It is affected by the same improvement https://jira.xwiki.org/browse/XWIKI-16909, has the same fix in https://jira.xwiki.org/browse/XWIKI-19107 (in XWiki 13.10) and the same workaround works in XWiki 13.2 to XWiki 13.9: restarting the server after upgrade.
On a local XWiki 13.4.5 Jetty+HSQL, Windows 10 I did the following:
I tried uninstalling the upgraded AD 1.13.1 app and then to reinstall it directly at version 1.13.1, but there are some leftovers that continue to interfere, the authentication with an AD user is still not possible.
On a second 13.4.5 local Jetty+HSQL, Windows: