Ldap Authentifizierung nach Update 26.1 nicht mehr möglich

Konfig.:
Centos 7x64
Betriebssystem: Linux 3.10.0-1062.9.1.el7.x86_64 x86_64
Prozessor: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz (12 cores)
Speicher: 125.73 GB
PHP
Version: 8.0.28
Speicherlimit: 16 GB
Maximale Ausführungszeit: 3600
Maximale Größe zum Hochladen: 10 GB

Nach dem Update auf die Version 26.1 können sich LDAP-Benutzer nicht mehr anmelden!

Der Cron-Job gibt folgende Fehlermeldung aus:

Error: Call to a member function mkdir() on null in /var/www/html/nextcloud/lib/private/Files/SetupManager.php:267
Stack trace:
#0 /var/www/html/nextcloud/lib/private/Files/SetupManager.php(324): OC\Files\SetupManager->oneTimeUserSetup(Object(OC\User\User))
#1 /var/www/html/nextcloud/lib/private/Files/SetupManager.php(229): OC\Files\SetupManager->setupForUserWith(Object(OC\User\User), Object(Closu
re))
#2 /var/www/html/nextcloud/lib/private/legacy/OC_Util.php(112): OC\Files\SetupManager->setupForUser(Object(OC\User\User))
#3 /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php(113): OC_Util::setupFS(‘125132FC-FA1C-4…’)
#4 /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php(155): OC\Files\Utils\Scanner->getMounts(‘’)
#5 /var/www/html/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php(76): OC\Files\Utils\Scanner->backgroundScan(‘’)
#6 /var/www/html/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php(113): OCA\Files\BackgroundJob\ScanFiles->runScanner(‘125132FC-FA1C-4…’
)
#7 /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php(78): OCA\Files\BackgroundJob\ScanFiles->run(NULL)
#8 /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php(103): OCP\BackgroundJob\Job->start(Object(OC\BackgroundJob\JobList))
#9 /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php(93): OCP\BackgroundJob\TimedJob->start(Object(OC\BackgroundJob\JobList))
#10 /var/www/html/nextcloud/cron.php(152): OCP\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#11 {main}

Im Web-Gui Protokolle sind diese Fehlermeldungen:
[no app in context] Fehler: OC\User\NoUserException: FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5 is not a valid user anymore at <>
[no app in context] Fehler: OC\User\NoUserException: FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5 is not a valid user anymore at <>

  1. <>
    OCA\User_LDAP\User_LDAP->getHome(“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”)
  2. /var/www/html/nextcloud/apps/user_ldap/lib/User_Proxy.php line 143
    call_user_func_array([[“OCA\User_LDAP\User_LDAP”],“getHome”], [“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”])
  3. /var/www/html/nextcloud/apps/user_ldap/lib/Proxy.php line 137
    OCA\User_LDAP\User_Proxy->callOnLastSeenOn(“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”, “getHome”, [“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”], false)
  4. /var/www/html/nextcloud/apps/user_ldap/lib/User_Proxy.php line 291
    OCA\User_LDAP\Proxy->handleRequest(“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”, “getHome”, [“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”])
  5. /var/www/html/nextcloud/lib/private/User/User.php line 363
    OCA\User_LDAP\User_Proxy->getHome(“FF7C98E4-1D77-4AD1-B99C-B965B30CEDE5”)
  6. /var/www/html/nextcloud/lib/private/Files/Storage/Home.php line 52
    OC\User\User->getHome()
  7. /var/www/html/nextcloud/lib/private/Files/Mount/MountPoint.php line 168
    OC\Files\Storage\Home->__construct([[“OC\User\User”]])
  8. /var/www/html/nextcloud/lib/private/Files/Mount/MountPoint.php line 193
    OC\Files\Mount\MountPoint->createStorage(“*** sensitive parameters replaced ***”)
  9. /var/www/html/nextcloud/lib/private/Files/Mount/MountPoint.php line 294
    OC\Files\Mount\MountPoint->getStorage()
  10. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 265
    OC\Files\Mount\MountPoint->getStorageRootId()
  11. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 324
    OC\Files\SetupManager->oneTimeUserSetup([“OC\User\User”])
  12. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 229
    OC\Files\SetupManager->setupForUserWith([“OC\User\User”], [“Closure”])
  13. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 506
    OC\Files\SetupManager->setupForUser([“OC\User\User”])
  14. /var/www/html/nextcloud/lib/private/Files/Mount/Manager.php line 220
    OC\Files\SetupManager->setupForProvider(“/FF7C98E4-1D77- … s”, ["OC\Files\Mou … "])
  15. /var/www/html/nextcloud/lib/private/Files/Node/Root.php line 448
    OC\Files\Mount\Manager->getMountsByMountProvider(“/FF7C98E4-1D77- … s”, ["OC\Files\Mou … "])
  16. /var/www/html/nextcloud/lib/private/Files/Node/LazyUserFolder.php line 67
    OC\Files\Node\Root->getByIdInPath(4830886, “/FF7C98E4-1D77- … s”)
  17. /var/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php line 146
    OC\Files\Node\LazyUserFolder->getById(4830886)
  18. /var/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php line 527
    OCA\Files_Sharing\SharedStorage->init()
  19. <>
    OCA\Files_Sharing\SharedStorage->getSourceStorage()
  20. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 524
    call_user_func_array([["OCA\Files_Sh … "], “*** sensitive parameters replaced ***”)
  21. <>
    OC\Files\Storage\Wrapper\Wrapper->__call(“getSourceStorage”, “*** sensitive parameters replaced ***”)
  22. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 524
    call_user_func_array([["OCA\Files_Tr … "], “*** sensitive parameters replaced ***”)
  23. /var/www/html/nextcloud/apps/files_sharing/lib/Cache.php line 97
    OC\Files\Storage\Wrapper\Wrapper->__call(“getSourceStorage”, “*** sensitive parameters replaced ***”)
  24. /var/www/html/nextcloud/lib/private/Files/Cache/Wrapper/CacheJail.php line 332
    OCA\Files_Sharing\Cache->getCache()
  25. /var/www/html/nextcloud/apps/files_sharing/lib/Cache.php line 205
    OC\Files\Cache\Wrapper\CacheJail->getCacheEntryFromSearchResult([“OC\Files\Cache\CacheEntry”])
  26. /var/www/html/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 321
    OCA\Files_Sharing\Cache->getCacheEntryFromSearchResult([“OC\Files\Cache\CacheEntry”])
  27. /var/www/html/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php line 165
    OC\Files\Cache\Wrapper\CacheWrapper->getCacheEntryFromSearchResult([“OC\Files\Cache\CacheEntry”])
  28. /var/www/html/nextcloud/lib/private/Files/Node/Folder.php line 266
    OC\Files\Cache\QuerySearchHelper->searchInCaches([“OC\Files\Search\SearchQuery”], [["OC\Files\Ca … ]])
  29. /var/www/html/nextcloud/lib/private/Files/Node/Folder.php line 476
    OC\Files\Node\Folder->search([“OC\Files\Search\SearchQuery”])
  30. <>
    OC\Files\Node\Folder->getRecent(7)
  31. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 72
    call_user_func_array([[“OC\Files\Node\Folder”],“getRecent”], [7])
  32. /var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php line 510
    OC\Files\Node\LazyFolder->__call(“getRecent”, [7])
  33. /var/www/html/nextcloud/apps/recommendations/lib/Service/RecentlyEditedFilesSource.php line 68
    OC\Files\Node\LazyFolder->getRecent(7)
  34. /var/www/html/nextcloud/apps/recommendations/lib/Service/RecommendationService.php line 88
    OCA\Recommendations\Service\RecentlyEditedFilesSource->getMostRecentRecommendation([“OC\User\User”], 7)
  35. <>
    OCA\Recommendations\Service\RecommendationService->OCA\Recommendations\Service{closure}(“*** sensitive parameters replaced ***”)
  36. /var/www/html/nextcloud/apps/recommendations/lib/Service/RecommendationService.php line 89
    array_reduce([["OCA\Recommen … ]], [“Closure”], “*** sensitive parameters replaced ***”)
  37. /var/www/html/nextcloud/apps/recommendations/lib/Controller/RecommendationController.php line 82
    OCA\Recommendations\Service\RecommendationService->getRecommendations([“OC\User\User”])
  38. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Recommendations\Controller\RecommendationController->always()
  39. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController(["OCA\Recommend … "], “always”)
  40. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Recommend … "], “always”)
  41. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main(“OCA\Recommenda … r”, “always”, ["OC\AppFramewo … "], [“recommendations.recommendation.always”])
  42. /var/www/html/nextcloud/lib/base.php line 1056
    OC\Route\Router->match(“/apps/recommend … s”)
  43. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

Benutzer werden im Web-Gui auch nicht mehr angezeigt:

Von der Konsole aus kein Problem:
[root@tplkdesk nextcloud]# sudo -u apache php occ user:list

  • 01C227CB-E7EE-44C7-A878-189A8AC85C54: XXXXXX
  • 01E22247-90D0-41C6-BD5D-B8BBCE58A45A: XXX
    • 04EBA521-271F-4920-9C68-5ADBEF0B337A: XXXX
  • 07BB431C-4BBD-46CF-9955-2C26BF3A1DE7: XXX XXX
  • 07F23732-AFA3-4C3E-B48F-8DB1DEA7543A: XXXXXX

Kann mir hier jemand dringend weiterhelfen?

Grüße
Daniel

Ich habe das Problem gelöst! Es ist ein Bug in NC 26.1.
Da ich zwei Ldap-Server angebunden habe gab es Probleme. Ich habe den 2ten Server gelöscht und alles ok

1 Like