# LDAP funktioniert nach Migration und Updates nicht mehr

**URL:** <https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974>\
**Category:** 🇩🇪 Deutsch (german)\
**Tags:** nc34, nextcloud, ldap\
**Created:** [July 15, 2026, 2:52pm UTC](https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974 "2026-07-15T14:52:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sophie\_the\_desperate](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sophie_the_desperate/32/79154_2.png) [@Sophie\_the\_desperate](https://help.nextcloud.com/u/Sophie_the_desperate)\
**Post date:** [July 15, 2026, 2:52pm UTC](https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974/1 "2026-07-15T14:52:23Z")

</div>

Hey ich bin grad hart am verzweifeln.  
Ich habe versucht eine Nextcloud von einem CentOS7 auf ein Debian13 zu migrieren. Habe dafür folgende Sachen auf der neuen Maschine übernommen die Config.php, die Database und das AppData directory. Es hat soweit auch alles nach der Migration geklappt. Ldap hatte kurz nach der Migration auch noch funktioniert nur nach den Upgrades von NC 30 hoch bis zu 34 ist irgendwas kaputt gegangen. Wenn ich Test-Config mache bekomme ich die folgende Meldung:

 ![grafik](https://help.nextcloud.com/uploads/default/original/3X/5/1/5185e971e9173c0d1a5d0c0efd8fafbfef2a328b.png)

Sachen wie LDAPsearch und OpenSSL s\_client sind erfolgreich. Ich hab leider kein Plan was genau falsch ist, da auch dieselbe Config auf der alten ohne probleme funktioniert hatte.

Details zur Cloud:

- Server läuft Lokal als VM
- OS: Debian 13
- Nextcloud Version: 34.0.1
- PHP Version: 8.3.32
- DB: MariaDB
- Apache version: 2.4.67

Im Nextcloud Log steht diese Riesen Meldung:

```json
{"reqId":"kumD1InXMFnKiM9vGrEf","level":3,"time":"July 15, 2026 13:40:02","remoteAddr":"","user":"--","app":"core","method":"","url":"--","scriptName":"/var/www/nextcloud/cron.php","message":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)","userAgent":"--","version":"34.0.1.2","occ_command":\["/var/www/nextcloud/cron.php"\],"exception":{"Exception":"OC\\ServerNotAvailableException","Message":"Lost connection to LDAP server.","Code":0,"Trace":\[{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":424,"function":"processLDAPError","class":"OCA\\User_LDAP\\LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":306,"function":"postFunctionCall","class":"OCA\\User_LDAP\\LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":43,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\LDAP","type":"->","args":\["\*\*\* sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":738,"function":"bind","class":"OCA\\User_LDAP\\LDAP","type":"->","args":\["*** sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":630,"function":"bind","class":"OCA\\User_LDAP\\Connection","type":"->","args":\["*** sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":234,"function":"establishConnection","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":242,"function":"init","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":1074,"function":"getConnectionResource","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":245,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\Access","type":"->","args":\["*** sensitive parameters replaced \*\*\*"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":196,"function":"executeRead","class":"OCA\\User_LDAP\\Access","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php","line":292,"function":"readAttribute","class":"OCA\\User_LDAP\\Access","type":"->"},{"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":106,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php","line":150,"function":"callOnLastSeenOn","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":214,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":191,"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":851,"function":"userExists","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":635,"function":"getSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/twofactor_backupcodes/lib/BackgroundJob/CheckBackupCodes.php","line":33,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":50,"function":"run","class":"OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":31,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/core/Service/CronService.php","line":204,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"},{"file":"/var/www/nextcloud/core/Service/CronService.php","line":107,"function":"runCli","class":"OC\\Core\\Service\\CronService","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":52,"function":"run","class":"OC\\Core\\Service\\CronService","type":"->"}\],"File":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","Line":386,"message":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)","exception":"{"class":"OC\\ServerNotAvailableException","message":"Lost connection to LDAP server.","code":0,"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php:386","trace":"#0 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(424): OCA\\User_LDAP\\LDAP->processLDAPError()\\n#1 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(306): OCA\\User_LDAP\\LDAP->postFunctionCall()\\n#2 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(43): OCA\\User_LDAP\\LDAP->invokeLDAPMethod()\\n#3 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(738): OCA\\User_LDAP\\LDAP->bind()\\n#4 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(630): OCA\\User_LDAP\\Connection->bind()\\n#5 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(234): OCA\\User_LDAP\\Connection->establishConnection()\\n#6 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(242): OCA\\User_LDAP\\Connection->init()\\n#7 /var/www/nextcloud/apps/user_ldap/lib/Access.php(1074): OCA\\User_LDAP\\Connection->getConnectionResource()\\n#8 /var/www/nextcloud/apps/user_ldap/lib/Access.php(245): OCA\\User_LDAP\\Access->invokeLDAPMethod()\\n#9 /var/www/nextcloud/apps/user_ldap/lib/Access.php(196): OCA\\User_LDAP\\Access->executeRead()\\n#10 /var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php(292): OCA\\User_LDAP\\Access->readAttribute()\\n#11 \[internal function\]: OCA\\User_LDAP\\User_LDAP->userExistsOnLDAP()\\n#12 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(106): call_user_func_array()\\n#13 /var/www/nextcloud/apps/user_ldap/lib/Proxy.php(150): OCA\\User_LDAP\\User_Proxy->callOnLastSeenOn()\\n#14 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(214): OCA\\User_LDAP\\Proxy->handleRequest()\\n#15 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(191): OCA\\User_LDAP\\User_Proxy->userExistsOnLDAP()\\n#16 /var/www/nextcloud/lib/private/User/Manager.php(851): OCA\\User_LDAP\\User_Proxy->userExists()\\n#17 /var/www/nextcloud/lib/private/User/Manager.php(635): OC\\User\\Manager->getSeenUsers()\\n#18 /var/www/nextcloud/apps/twofactor_backupcodes/lib/BackgroundJob/CheckBackupCodes.php(33): OC\\User\\Manager->callForSeenUsers()\\n#19 /var/www/nextcloud/lib/public/BackgroundJob/Job.php(50): OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes->run()\\n#20 /var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php(31): OCP\\BackgroundJob\\Job->start()\\n#21 /var/www/nextcloud/core/Service/CronService.php(204): OCP\\BackgroundJob\\QueuedJob->start()\\n#22 /var/www/nextcloud/core/Service/CronService.php(107): OC\\Core\\Service\\CronService->runCli()\\n#23 /var/www/nextcloud/cron.php(52): OC\\Core\\Service\\CronService->run()\\n#24 {main}"}","CustomMessage":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)"}}

```

---

<div class="post-metadata">

**Author:** ![SysKeeper](https://help.nextcloud.com/letter_avatar/syskeeper/32/6_22734026db12803ebb3e059622ac3534.png) [@SysKeeper](https://help.nextcloud.com/u/SysKeeper)\
**Post date:** [July 15, 2026, 8:14pm UTC](https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974/2 "2026-07-15T20:14:56Z")

</div>

Hm, deine LDAP config ist auch noch korrekt und abrufbar?  
Du könntest mal loglevel auf 0 stehen (DEBUG) , da wird eine Menge geloggt, aber auch jeder LDAP call, evtl. gibt das ne Idee.

---

<div class="post-metadata">

**Author:** ![Sophie\_the\_desperate](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sophie_the_desperate/32/79154_2.png) [@Sophie\_the\_desperate](https://help.nextcloud.com/u/Sophie_the_desperate)\
**Post date:** [July 16, 2026, 8:35am UTC](https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974/3 "2026-07-16T08:35:20Z")

</div>

Danke für die Hilfe habe es gelöst bekommen. Mein Vorgänger hatte als LDAPS Host Adresse die Adresse der Domäne eingetragen. Mit der Adresse des Domänencontrollers hat es jetzt funktioniert. Keine Ahnung warum es vorher funktioniert hatte aber hey jetzt läuft es.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [July 24, 2026, 8:36am UTC](https://help.nextcloud.com/t/ldap-funktioniert-nach-migration-und-updates-nicht-mehr/246974/4 "2026-07-24T08:36:19Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
