Direct login takes forever

Hi,

i have the problem (version 14.10.10) that a direct login via form takes forever (but works). Normally our users login via LDAP (Kerberos-Auth via Apache and http-header-Variable with authenticated user) - this works fine.
But for some special tasks (e.g. REST-scripts) we have “local” xwiki-users (with username and password). When I try to login directly on tomcat via form, i enter the details and press login. Then it takes 7 minutes until the login completes. I tries to activate some logs, but don’t know which are the right ones. Can you help me find the source of this problem.
I’ve also created a new user for this (xwirest2) - but still the same issue.

In the logs i have this for now - thats all:

2023-07-10 14:21:08,647 [http-nio-8080-exec-6 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - Password check for user XWiki.xwirest2 successful 
2023-07-10 14:21:08,647 [http-nio-8080-exec-6 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - 0 milliseconds spent validating password. 
2023-07-10 14:21:08,648 [http-nio-8080-exec-6 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] INFO  .x.x.u.i.x.MyFormAuthenticator - User XWiki.xwirest2 has been logged-in 
2023-07-10 14:21:08,648 [http-nio-8080-exec-6 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG UserAuthenticatedEventNotifier - User authenticated for [reference = [xwiki:XWiki.xwirest2]] 
2023-07-10 14:21:08,651 [http-nio-8080-exec-6 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - XWikiAuthServiceImpl.checkAuth(XWikiContext) took 393009 milliseconds to run. 
2023-07-10 14:21:39,363 [http-nio-8080-exec-7 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - Password check for user XWiki.xwirest2 successful 
2023-07-10 14:21:39,363 [http-nio-8080-exec-7 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - 0 milliseconds spent validating password. 
2023-07-10 14:21:39,364 [http-nio-8080-exec-7 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] INFO  .x.x.u.i.x.MyFormAuthenticator - User XWiki.xwirest2 has been logged-in 
2023-07-10 14:21:39,364 [http-nio-8080-exec-7 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG UserAuthenticatedEventNotifier - User authenticated for [reference = [xwiki:XWiki.xwirest2]] 
2023-07-10 14:21:39,364 [http-nio-8080-exec-7 - http://xwiki.frischeis.com:8080/loginsubmit/XWiki/XWikiLogin] DEBUG x.x.u.i.x.XWikiAuthServiceImpl - XWikiAuthServiceImpl.checkAuth(XWikiContext) took 392433 milliseconds to run. 
2023-07-10 14:21:39,399 [http-nio-8080-exec-11 - http://xwiki.frischeis.com:8080/Main/] INFO  x.x.u.i.x.XWikiAuthServiceImpl - User XWiki.xwirest2 is authentified 

Which settings should i check? Which logs are the right one to activate?

Thanks a lot in advance,
Gerd

I’ve unset xwiki.home-configuration for testing and restarted tomcat. Now it seems to be fast again. I don’t know if the reason was the config or the restart, but it’s solved for now.
(I will reset the config and try again in a few weeks, when most colleagues are on vacation.

regards,
gerd