"Error" on Nextcloud connection screen after fiddling with LDAP

,

Hey!

I’m having a big problem (again)

My YunoHost server

Hardware: Raspberry Pi Zero
YunoHost version: 22.2.7
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: I accidentally deleted the LDAP config of my server…

Description of my issue

So I was fiddling with the admin parameters on my Nextcloud webapp, and I accidentally deleted my server’s LDAP config by clicking on the wrong button :frowning:

Now when I try to access my NextCloud, there’s only a big “error” word on the login portal, so I can’t access it through it

I’ve tried to retrieve my config by following nextcloud_ynh/config.json at testing · YunoHost-Apps/nextcloud_ynh · GitHub , but even then it hasn’t worked much better

[logs incoming]


Mon serveur YunoHost

**Matériel : ** Raspberry Pi Zero
Version de YunoHost : 22.2.7
J’ai accès à mon serveur : Par SSH et par l’administrateur web.
Êtes-vous dans un contexte particulier ou avez-vous effectué des réglages particuliers sur votre instance de YunoHost ? Oui
Si oui, veuillez expliquer : J’ai accidentellement supprimé la configuration LDAP de mon serveur…

Description de mon problème

Je trifouillais les paramètres d’administration de mon app Nextcloud et j’ai accidentellement supprimé la configuration LDAP de mon serveur en cliquant sur le mauvais bouton :frowning:

Maintenant, lorsque j’essaie d’accéder à mon NextCloud, il y a juste un gros “error” sur le portail de connexion, donc je peux pas accéder à mes fichiers par ce biais

J’ai essayé de récupérer ma configuration en suivant nextcloud_ynh/config.json at testing · YunoHost-Apps/nextcloud_ynh · GitHub , mais même là ça a pas beaucoup mieux marché. Rien n’a changé

[logs à suivre]

log:tail

Error     PHP         Error: ldap_search(): Search: No                               
            2022-05-02T19:55:01+00:00                                                  
                        such object at                                                 

                        /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#292             

                        at lib/private/Log/ErrorHandler.php                            

                        line 92                                                        


                         0. .../LDAP.php line 194                                      

                            OC\Log\ErrorHandler::onError(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *"                   

                            )                                                          

                         1. <<closure>>                                                

                            OCA\User_LDAP\LDAP->OCA\User_LDAP\{closure}(               

                              "*** sensitive pa ... *"                                 

                            )                                                          

                         2. <<closure>>                                                

                            ldap_search(                                               

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *"                                        

                            )                                                          

                         3. .../LDAP.php line 292                                      

                            call_user_func_array(                                      

                              " ... h",                                                

                              [ ... "]                                                 

                            )                                                          

                         4. .../LDAP.php line 199                                      

                            OCA\User_LDAP\LDAP->invokeLDAPMethod(                      

                              "*** sensitive parameter ... *"                          

                            )                                                          

                         5. <<closure>>                                                

                            OCA\User_LDAP\LDAP->search(                                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *"                 

                            )                                                          

                         6. .../Access.php line 1106                                   

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                         7. .../Access.php line 1109                                   

                            OCA\User_LDAP\Access->OCA\User_LDAP\{closure}(             

                              "*** sensitive  ... *"                                   

                            )                                                          
                         8. .../Access.php line 1167                                   

                            OCA\User_LDAP\Access->invokeLDAPMethod(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                         9. .../Access.php line 1338                                   

                            OCA\User_LDAP\Access->executeSearch(                       

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              ... 00,                                                  

                              ... ll                                                   

                            )                                                          

                        10. .../Access.php line 1005                                   

                            OCA\User_LDAP\Access->search(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        11. .../Access.php line 889                                    

                            OCA\User_LDAP\Access->searchUsers(                         

                              "*** sensitive parameter r ... *",                       

                              "*** sensitive parameter r ... *",                       

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        12. .../Access.php line 869                                    

                            OCA\User_LDAP\Access->fetchListOfUsers(                    

                              "*** sensitive parame ... *",                            

                              "*** sensitive parame ... *"                             

                            )                                                          

                        13. .../User_LDAP.php line 159                                 

                            OCA\User_LDAP\Access->fetchUsersByLoginName(               

                              "*** sensitive p ... *",                                 

                              "*** sensitive p ... *"                                  

                            )                                                          

                        14. .../User_LDAP.php line 176                                 

                            OCA\User_LDAP\User_LDAP->getLDAPUserByLoginName(           

                              "*** sensiti ... *"                                      

                            )                                                          

                        15. <<closure>>                                                

                            OCA\User_LDAP\User_LDAP->checkPassword(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                        16. .../User_Proxy.php line 81                                 

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                        17. .../Proxy.php line 171                                     

                            OCA\User_LDAP\User_Proxy->walkBackends(                    

                              "*** sensitive parame ... *",                            

                              ... d",                                                  

                              ["*** sensitive parameter replaced ***","*** sensitive pa
.. "]                                                                                  
                            )                                                          

                        18. .../User_Proxy.php line 223                                

                            OCA\User_LDAP\Proxy->handleRequest(                        

                              "*** sensitive parameter  ... *",                        

                              "c ... d",                                               

                              ["*** sensitive parameter replaced ***","*** sensitive pa
 r ... "]                                                                              
                            )                                                          

                        19. .../Manager.php line 251                                   

                            OCA\User_LDAP\User_Proxy->checkPassword(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        20. .../Session.php line 619                                   
                            OC\User\Manager->checkPasswordNoLogging(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        21. .../Session.php line 366                                   

                            OC\User\Session->loginWithPassword(                        

                              "*** sensitive parameters  ... *"                        

                            )                                                          

                        22. .../Session.php line 461                                   

                            OC\User\Session->login(                                    

                              "*** sensitive parameters replaced *** ... *"            

                            )                                                          

                        23. .../Session.php line 584                                   

                            OC\User\Session->logClientIn(                              

                              "*** sensitive parameters replac ... *"                  

                            )                                                          

                        24. .../base.php line 1061                                     

                            OC\User\Session->tryBasicAuthLogin(                        

                              "*** sensitive parameter  ... *",                        

                              "*** sensitive parameter  ... *"                         

                            )                                                          

                        25. .../base.php line 997                                      

                            OC::handleLogin("*** s ... *")                             

                        26. index.php line 36                                          

                            OC::handleRequest(                                         


                            )                                                          


  Error     user_ldap   Attempt for Paging?  1                                         
            2022-05-02T19:55:01+00:00                                                  

  Error     PHP         Error: ldap_search(): Search: No                               
            2022-05-02T19:55:01+00:00                                                  
                        such object at                                                 

                        /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#292             

                        at lib/private/Log/ErrorHandler.php                            

                        line 92                                                        


                         0. .../LDAP.php line 194                                      

                            OC\Log\ErrorHandler::onError(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *"                   

                            )                                                          

                         1. <<closure>>                                                

                            OCA\User_LDAP\LDAP->OCA\User_LDAP\{closure}(               

                              "*** sensitive pa ... *"                                 

                            )                                                          

                         2. <<closure>>                                                

                            ldap_search(                                               

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *"                                        

                            )                                                          

                         3. .../LDAP.php line 292                                      

                            call_user_func_array(                                      

                              " ... h",                                                

                              [ ... "]                                                 

                            )                                                          

                         4. .../LDAP.php line 199                                      

                            OCA\User_LDAP\LDAP->invokeLDAPMethod(                      

                              "*** sensitive parameter ... *"                          

                            )                                                          

                         5. <<closure>>                                                

                            OCA\User_LDAP\LDAP->search(                                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *"                 

                            )                                                          

                         6. .../Access.php line 1106                                   

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                         7. .../Access.php line 1109                                   

                            OCA\User_LDAP\Access->OCA\User_LDAP\{closure}(             

                              "*** sensitive  ... *"                                   

                            )                                                          

                         8. .../Access.php line 1167                                   

                            OCA\User_LDAP\Access->invokeLDAPMethod(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                         9. .../Access.php line 1338                                   

                            OCA\User_LDAP\Access->executeSearch(                       

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              ... 00,                                                  

                              ... ll                                                   

                            )                                                          

                        10. .../Access.php line 1005                                   

                            OCA\User_LDAP\Access->search(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              ... ll,                                                  
                              ... ll                                                   

                            )                                                          

                        11. .../Access.php line 889                                    

                            OCA\User_LDAP\Access->searchUsers(                         

                              "*** sensitive parameter r ... *",                       

                              "*** sensitive parameter r ... *",                       

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        12. .../Access.php line 869                                    

                            OCA\User_LDAP\Access->fetchListOfUsers(                    

                              "*** sensitive parame ... *",                            

                              "*** sensitive parame ... *"                             

                            )                                                          

                        13. .../User_LDAP.php line 159                                 

                            OCA\User_LDAP\Access->fetchUsersByLoginName(               

                              "*** sensitive p ... *",                                 

                              "*** sensitive p ... *"                                  

                            )                                                          

                        14. .../User_LDAP.php line 176                                 

                            OCA\User_LDAP\User_LDAP->getLDAPUserByLoginName(           

                              "*** sensiti ... *"                                      

                            )                                                          

                        15. <<closure>>                                                

                            OCA\User_LDAP\User_LDAP->checkPassword(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                        16. .../User_Proxy.php line 81                                 

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                        17. .../Proxy.php line 171                                     

                            OCA\User_LDAP\User_Proxy->walkBackends(                    

                              "*** sensitive parame ... *",                            

                              ... d",                                                  

                              ["*** sensitive parameter replaced ***","*** sensitive pa
.. "]                                                                                  
                            )                                                          

                        18. .../User_Proxy.php line 223                                

                            OCA\User_LDAP\Proxy->handleRequest(                        

                              "*** sensitive parameter  ... *",                        

                              "c ... d",                                               

                              ["*** sensitive parameter replaced ***","*** sensitive pa
 r ... "]                                                                              
                            )                                                          

                        19. .../Manager.php line 265                                   

                            OCA\User_LDAP\User_Proxy->checkPassword(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        20. .../Session.php line 619                                   

                            OC\User\Manager->checkPasswordNoLogging(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        21. .../Session.php line 366                                   

                            OC\User\Session->loginWithPassword(                        

                              "*** sensitive parameters  ... *"                        

                            )                                                          

                        22. .../Session.php line 461                                   

                            OC\User\Session->login(                                    

                              "*** sensitive parameters replaced *** ... *"            

                            )                                                          

                        23. .../Session.php line 584                                   

                            OC\User\Session->logClientIn(                              

                              "*** sensitive parameters replac ... *"                  

                            )                                                          

                        24. .../base.php line 1061                                     

                            OC\User\Session->tryBasicAuthLogin(                        

                              "*** sensitive parameter  ... *",                        
                              "*** sensitive parameter  ... *"                         

                            )                                                          

                        25. .../base.php line 997                                      

                            OC::handleLogin("*** s ... *")                             

                        26. index.php line 36                                          

                            OC::handleRequest(                                         


                            )                                                          


  Error     user_ldap   Attempt for Paging?  1                                         
            2022-05-02T19:55:01+00:00                                                  

  Warning   core        Login failed: 'celladmin' (Remote                              
            2022-05-02T19:55:01+00:00                                                  
                        IP: '89.156.118.53')                                           


  Error     PHP         Error: ldap_search(): Search: No                               
            2022-05-02T19:55:27+00:00                                                  
                        such object at                                                 

                        /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#292             

                        at lib/private/Log/ErrorHandler.php                            

                        line 92                                                        


                         0. .../LDAP.php line 194                                      

                            OC\Log\ErrorHandler::onError(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *"                   

                            )                                                          

                         1. <<closure>>                                                

                            OCA\User_LDAP\LDAP->OCA\User_LDAP\{closure}(               

                              "*** sensitive pa ... *"                                 

                            )                                                          

                         2. <<closure>>                                                

                            ldap_search(                                               

                              "*** sensi ... *",                                       
                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *"                                        

                            )                                                          

                         3. .../LDAP.php line 292                                      

                            call_user_func_array(                                      

                              " ... h",                                                

                              [ ... "]                                                 

                            )                                                          

                         4. .../LDAP.php line 199                                      

                            OCA\User_LDAP\LDAP->invokeLDAPMethod(                      

                              "*** sensitive parameter ... *"                          

                            )                                                          

                         5. <<closure>>                                                

                            OCA\User_LDAP\LDAP->search(                                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *"                 

                            )                                                          

                         6. .../Access.php line 1106                                   

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                         7. .../Access.php line 1109                                   

                            OCA\User_LDAP\Access->OCA\User_LDAP\{closure}(             

                              "*** sensitive  ... *"                                   

                            )                                                          

                         8. .../Access.php line 1167                                   

                            OCA\User_LDAP\Access->invokeLDAPMethod(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                         9. .../Access.php line 1338                                   

                            OCA\User_LDAP\Access->executeSearch(                       

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              ... 00,                                                  

                              ... ll                                                   

                            )                                                          

                        10. .../Access.php line 1005                                   

                            OCA\User_LDAP\Access->search(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        11. .../Access.php line 889                                    

                            OCA\User_LDAP\Access->searchUsers(                         

                              "*** sensitive parameter r ... *",                       

                              "*** sensitive parameter r ... *",                       

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        12. .../Access.php line 869                                    

                            OCA\User_LDAP\Access->fetchListOfUsers(                    

                              "*** sensitive parame ... *",                            

                              "*** sensitive parame ... *"                             

                            )                                                          

                        13. .../User_LDAP.php line 159                                 
                            OCA\User_LDAP\Access->fetchUsersByLoginName(               

                              "*** sensitive p ... *",                                 

                              "*** sensitive p ... *"                                  

                            )                                                          

                        14. .../User_LDAP.php line 176                                 

                            OCA\User_LDAP\User_LDAP->getLDAPUserByLoginName(           

                              "*** sensiti ... *"                                      

                            )                                                          

                        15. <<closure>>                                                

                            OCA\User_LDAP\User_LDAP->checkPassword(                    

                              "*** sensitive paramet ... *"                            
                            )                                                          

                        16. .../User_Proxy.php line 81                                 

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                        17. .../Proxy.php line 171                                     

                            OCA\User_LDAP\User_Proxy->walkBackends(                    

                              "*** sensitive parame ... *",                            

                              ... d",                                                  

                              ["*** sensitive parameter replaced ***","*** sensitive pa
.. "]                                                                                  
                            )                                                          

                        18. .../User_Proxy.php line 223                                

                            OCA\User_LDAP\Proxy->handleRequest(                        

                              "*** sensitive parameter  ... *",                        

                              "c ... d",                                               

                              ["*** sensitive parameter replaced ***","*** sensitive pa
 r ... "]                                                                              
                            )                                                          

                        19. .../Manager.php line 251                                   

                            OCA\User_LDAP\User_Proxy->checkPassword(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        20. .../Session.php line 619                                   

                            OC\User\Manager->checkPasswordNoLogging(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        21. .../Session.php line 366                                   

                            OC\User\Session->loginWithPassword(                        

                              "*** sensitive parameters  ... *"                        

                            )                                                          

                        22. .../Session.php line 461                                   

                            OC\User\Session->login(                                    

                              "*** sensitive parameters replaced *** ... *"            

                            )                                                          

                        23. .../Session.php line 584                                   

                            OC\User\Session->logClientIn(                              

                              "*** sensitive parameters replac ... *"                  

                            )                                                          

                        24. .../base.php line 1061                                     

                            OC\User\Session->tryBasicAuthLogin(                        

                              "*** sensitive parameter  ... *",                        

                              "*** sensitive parameter  ... *"                         

                            )                                                          

                        25. .../base.php line 997                                      

                            OC::handleLogin("*** s ... *")                             

                        26. index.php line 36                                          

                            OC::handleRequest(                                         


                            )                                                          


  Error     user_ldap   Attempt for Paging?  1                                         
            2022-05-02T19:55:27+00:00                                                  

  Error     PHP         Error: ldap_search(): Search: No                               
            2022-05-02T19:55:27+00:00                                                  
                        such object at                                                 

                        /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#292             

                        at lib/private/Log/ErrorHandler.php                            

                        line 92                                                        


                         0. .../LDAP.php line 194                                      

                            OC\Log\ErrorHandler::onError(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *"                   

                            )                                                          

                         1. <<closure>>                                                

                            OCA\User_LDAP\LDAP->OCA\User_LDAP\{closure}(               

                              "*** sensitive pa ... *"                                 

                            )                                                          

                         2. <<closure>>                                                

                            ldap_search(                                               

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *",                                       

                              "*** sensi ... *"                                        

                            )                                                          

                         3. .../LDAP.php line 292                                      

                            call_user_func_array(                                      

                              " ... h",                                                

                              [ ... "]                                                 

                            )                                                          

                         4. .../LDAP.php line 199                                      

                            OCA\User_LDAP\LDAP->invokeLDAPMethod(                      

                              "*** sensitive parameter ... *"                          

                            )                                                          
                         5. <<closure>>                                                

                            OCA\User_LDAP\LDAP->search(                                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *",                

                              "*** sensitive parameter replaced ... *"                 

                            )                                                          

                         6. .../Access.php line 1106                                   

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 
                            )                                                          

                         7. .../Access.php line 1109                                   

                            OCA\User_LDAP\Access->OCA\User_LDAP\{closure}(             

                              "*** sensitive  ... *"                                   

                            )                                                          

                         8. .../Access.php line 1167                                   

                            OCA\User_LDAP\Access->invokeLDAPMethod(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                         9. .../Access.php line 1338                                   

                            OCA\User_LDAP\Access->executeSearch(                       

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              "*** sensitive parameter ... *",                         

                              ... 00,                                                  

                              ... ll                                                   

                            )                                                          

                        10. .../Access.php line 1005                                   

                            OCA\User_LDAP\Access->search(                              

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              "*** sensitive parameter replac ... *",                  

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        11. .../Access.php line 889                                    

                            OCA\User_LDAP\Access->searchUsers(                         

                              "*** sensitive parameter r ... *",                       

                              "*** sensitive parameter r ... *",                       

                              ... ll,                                                  

                              ... ll                                                   

                            )                                                          

                        12. .../Access.php line 869                                    

                            OCA\User_LDAP\Access->fetchListOfUsers(                    

                              "*** sensitive parame ... *",                            

                              "*** sensitive parame ... *"                             

                            )                                                          

                        13. .../User_LDAP.php line 159                                 

                            OCA\User_LDAP\Access->fetchUsersByLoginName(               

                              "*** sensitive p ... *",                                 

                              "*** sensitive p ... *"                                  

                            )                                                          

                        14. .../User_LDAP.php line 176                                 

                            OCA\User_LDAP\User_LDAP->getLDAPUserByLoginName(           

                              "*** sensiti ... *"                                      

                            )                                                          

                        15. <<closure>>                                                

                            OCA\User_LDAP\User_LDAP->checkPassword(                    

                              "*** sensitive paramet ... *"                            

                            )                                                          

                        16. .../User_Proxy.php line 81                                 

                            call_user_func_array(                                      

                              [ ... "],                                                

                              [ ... "]                                                 

                            )                                                          

                        17. .../Proxy.php line 171                                     

                            OCA\User_LDAP\User_Proxy->walkBackends(                    

                              "*** sensitive parame ... *",                            

                              ... d",                                                  

                              ["*** sensitive parameter replaced ***","*** sensitive pa
.. "]                                                                                  
                            )                                                          

                        18. .../User_Proxy.php line 223                                

                            OCA\User_LDAP\Proxy->handleRequest(                        

                              "*** sensitive parameter  ... *",                        

                              "c ... d",                                               

                              ["*** sensitive parameter replaced ***","*** sensitive pa
 r ... "]                                                                              
                            )                                                          
                        19. .../Manager.php line 265                                   

                            OCA\User_LDAP\User_Proxy->checkPassword(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        20. .../Session.php line 619                                   

                            OC\User\Manager->checkPasswordNoLogging(                   

                              "*** sensitive parame ... *"                             

                            )                                                          

                        21. .../Session.php line 366                                   

                            OC\User\Session->loginWithPassword(                        

                              "*** sensitive parameters  ... *"                        

                            )                                                          

                        22. .../Session.php line 461                                   

                            OC\User\Session->login(                                    

                              "*** sensitive parameters replaced *** ... *"            

                            )                                                          

                        23. .../Session.php line 584                                   

                            OC\User\Session->logClientIn(                              

                              "*** sensitive parameters replac ... *"                  

                            )                                                          

                        24. .../base.php line 1061                                     

                            OC\User\Session->tryBasicAuthLogin(                        

                              "*** sensitive parameter  ... *",                        

                              "*** sensitive parameter  ... *"                         

                            )                                                          

                        25. .../base.php line 997                                      

                            OC::handleLogin("*** s ... *")                             

                        26. index.php line 36                                          

                            OC::handleRequest(                                         


                            )                                                          


  Error     user_ldap   Attempt for Paging?  1                                         
            2022-05-02T19:55:27+00:00                                                  
  Warning   core        Login failed: 'celladmin' (Remote                              
            2022-05-02T19:55:27+00:00                                                  
                        IP: '89.156.118.53')                                           

ldap:show-config

--------------------------------------------+                                          
| Configuration                 | s01                                                  
                                            |
+-------------------------------+------------------------------------------------------
--------------------------------------------+                                          
| hasMemberOfFilterSupport      | 0                                                    
                                            |                                          
| homeFolderNamingRule          |                                                      
                                            |                                          
| lastJpegPhotoLookup           | 0                                                    
                                            |                                          
| ldapAgentName                 |                                                      
                                            |                                          
| ldapAgentPassword             | ***                                                  
                                            |                                          
| ldapAttributesForGroupSearch  |                                                      
                                            |                                          
| ldapAttributesForUserSearch   |                                                      
                                            |                                          
| ldapBackupHost                |                                                      
                                            |                                          
| ldapBackupPort                |                                                      
                                            |                                          
| ldapBase                      | dc=yunohost,dc=org                                   
                                            |                                          
| ldapBaseGroups                | ou=groups, dc=yunohost,dc=org                        
                                            |                                          
| ldapBaseUsers                 | ou=user,dc=yunohost,dc=org                           
                                            |                                          
| ldapCacheTTL                  | 600                                                  
                                            |                                          
| ldapConfigurationActive       | 1                                                    
                                            |                                          
| ldapDefaultPPolicyDN          |                                                      
                                            |                                          
| ldapDynamicGroupMemberURL     |                                                      
                                            |                                          
| ldapEmailAttribute            | mail                                                 
                                            |                                          
| ldapExperiencedAdmin          | 0                                                    
                                            |                                          
| ldapExpertUUIDGroupAttr       |                                                      
                                            |                                          
| ldapExpertUUIDUserAttr        |                                                      
                                            |                                          
| ldapExpertUsernameAttr        | uid                                                  
                                            |                                          
| ldapExtStorageHomeAttribute   |                                                      
                                            |                                          
| ldapGidNumber                 | gidNumber                                            
                                            |                                          
| ldapGroupDisplayName          | cn                                                   
                                            |                                          
| ldapGroupFilter               | (&(objectclass=top)(memberUid=*))                    
                                            |                                          
| ldapGroupFilterGroups         |                                                      
                                            |                                          
| ldapGroupFilterMode           | 0                                                    
                                            |
| ldapGroupFilterObjectclass    | posixGroup                                           
                                            |                                          
| ldapGroupMemberAssocAttr      |                                                      
                                            |                                          
| ldapHost                      | localhost                                            
                                            |                                          
| ldapIgnoreNamingRules         |                                                      
                                            |                                          
| ldapLoginFilter               | (&(|(objectclass=posixAccount))(uid=%uid)(permission=
P__.main,ou=permission,dc=yunohost,dc=org)) |                                          
| ldapLoginFilterAttributes     |                                                      
                                            |                                          
| ldapLoginFilterEmail          | 0                                                    
                                            |                                          
| ldapLoginFilterMode           | 0                                                    
                                            |                                          
| ldapLoginFilterUsername       | 1                                                    
                                            |                                          
| ldapMatchingRuleInChainState  | unknown                                              
                                            |                                          
| ldapNestedGroups              | 0                                                    
                                            |                                          
| ldapOverrideMainServer        |                                                      
                                            |                                          
| ldapPagingSize                | 500                                                  
                                            |                                          
| ldapPort                      | 389                                                  
                                            |                                          
| ldapQuotaAttribute            | userquota                                            
                                            |                                          
| ldapQuotaDefault              |                                                      
                                            |                                          
| ldapTLS                       | 0                                                    
                                            |                                          
| ldapUserAvatarRule            | default                                              
                                            |                                          
| ldapUserDisplayName           | displayname                                          
                                            |                                          
| ldapUserDisplayName2          |                                                      
                                            |                                          
| ldapUserFilter                |                                                      
                                            |                                          
| ldapUserFilterGroups          |                                                      
                                            |                                          
| ldapUserFilterMode            | 0                                                    
                                            |                                          
| ldapUserFilterObjectclass     |                                                      
                                            |                                          
| ldapUuidGroupAttribute        | auto                                                 
                                            |                                          
| ldapUuidUserAttribute         | auto                                                 
                                            |                                          
| turnOffCertCheck              | 0                                                    
                                            |                                          
| turnOnPasswordChange          | 0                                                    
                                            |                                          
| useMemberOfToDetectMembership | 1                                                    
                                            |

I’ve already had this problem, don’t panic, it can be resolved without breaking anything :smiley:
Can you use occ ? If not, just ask.

If I remember well, I’ve solved the problem thanks to this : LDAP configuration was broken for weird reason ... Add some way to diagnose that kind of stuff more easily ? Idk ... · Issue #228 · YunoHost-Apps/nextcloud_ynh · GitHub

Don’t worry, I’ve simply removed and reinstalled NextCloud lol. It was only a few days old so I didn’t lose too much data

Though now I can’t download apps from occ weirdly enough… and I don’t remember how I fixed this

Remember : always share logs and say what you see when you say “it doesn’t work” :upside_down_face:

Ah yes, sorry

It seems that my PHP client is disabled, which keeps me from using occ altogether :confused:

An unhandled exception has been thrown:                                                                                                                                               
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

And I can’t remember how I activated it

Ah yes, you have two ways :

  • always do like sudo -u nextcloud php --define apc.enable_cli=1 /var/www/nextcloud/occ [command]
  • or add this line apc.enable_cli=1 in /etc/php/7.3/cli/php.ini (with this it will rember and you have not to --define at each command.

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