Problems with user_ldap version 1.10.2 in Nextcloud 20.0.1

Hello all;
Installed Nextcloud 20.0.1 in CentOS 8, samba4 as Active Directory Domain Controller.
Hostname and IP address where nextcloud is installed:
gtmnb1.gtm.onat.gob.cu - 192.168.14.18
Hostname and IP address where samba4 is installed:
gtmad.gtm.onat.gob.cu - 192.168.41.17
There are firewall rules for communication between nextcloud server and samba4 to take place.

I trying to configure the app user_ldap but have problems.

On the Server tab, after entering the LDAP server address (ldaps: //gtmad.gtm.onat.gob.cu) and clicking the “Detect Port” button, it doesn’t solve it and it gives me an error message saying:

‘Please enter the port, it could not autodetect’

If I write the port value (636), the user DN value to allow working on LDAP server (CN=Administrator,CN=Users,DC=gtm,DC=onat,DC=gob,DC=cu) when I press the button “Detect Base DN” Nextcloud returns

‘Could not detect Base DN, please enter it manually’

When I do it (DC=gtm,DC=onat,DC=gob,DC=cu) and press the button “Test Base DN” I get the messages:

‘The Base DN seems to be wrong’
‘Lost connection to LDAP server’

Everything indicates that there is no communication with the ldap server (gtmad.gtm.onat.gob.cu), but when I use telnet or ping command, I can connect:

telnet gtmad.gtm.onat.gob.cu 636

Trying 192.168.41.17…
Connected to gtmad.gtm.onat.gob.cu.
Escape character is ‘^]’.

ping gtmad.gtm.onat.gob.cu

PING gtmad.gtm.onat.gob.cu (192.168.41.17) 56(84) bytes of data.
64 bytes from gtmad.gtm.onat.gob.cu (192.168.41.17): icmp_seq=1 ttl=63 time=0.302 ms
64 bytes from gtmad.gtm.onat.gob.cu (192.168.41.17): icmp_seq=2 ttl=63 time=0.325 ms

As a help I kept track of what is generated in the traces as I was doing each of the steps and this is the result:

When pressing “Autodetect port” button:

{“reqId”:“X6v6SpoE@iSRtxr2K1T5dAAAAJg”,“level”:3,“time”:“2020-11-11T14:50:50+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“PHP”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:{“Exception”:“Error”,“Message”:“ldap_bind(): Unable to bind to server: Can’t contact LDAP server at /var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#341”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::"},{“function”:“ldap_bind”,“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:341,“function”:“call_user_func_array”},{“file”:"/var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php",“line”:63,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/nextcloud/apps/user_ldap/lib/Wizard.php",“line”:1072,“function”:“bind”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/nextcloud/apps/user_ldap/lib/Wizard.php",“line”:689,“function”:“connectAndBind”,“class”:“OCA\User_LDAP\Wizard”,“type”:"->"},{“file”:"/var/www/html/nextcloud/apps/user_ldap/ajax/wizard.php",“line”:97,“function”:“guessPortAndTLS”,“class”:“OCA\User_LDAP\Wizard”,“type”:"->"},{“file”:"/var/www/html/nextcloud/lib/private/Route/Route.php",“line”:156,“args”:["/var/www/html/nextcloud/apps/user_ldap/ajax/wizard.php"],“function”:“require_once”},{“function”:“OC\Route\{closure}”,“class”:“OC\Route\Route”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/html/nextcloud/lib/private/Route/Router.php",“line”:315,“function”:“call_user_func”},{“file”:"/var/www/html/nextcloud/lib/base.php",“line”:1009,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/html/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:91,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}

If I add the port: (this repeats it twice)

{“reqId”:“X6v7S4ufHPQChi4gT4XE8AAAABI”,“level”:2,“time”:“2020-11-11T14:55:07+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): No LDAP Port given!”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v7S4ufHPQChi4gT4XE8AAAABI”,“level”:2,“time”:“2020-11-11T14:55:07+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): No LDAP Login Filter given!”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v7S4ufHPQChi4gT4XE8AAAABI”,“level”:2,“time”:“2020-11-11T14:55:07+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): Not a single Base DN given.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v7S4ufHPQChi4gT4XE8AAAABI”,“level”:2,“time”:“2020-11-11T14:55:07+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): login filter does not contain %uid place holder.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}

When I add the DN of the user who controls the ldap and the password (this repeats it twice):

{“reqId”:“X6v8F4ufHPQChi4gT4XE@AAAABU”,“level”:2,“time”:“2020-11-11T14:58:32+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): No LDAP Login Filter given!”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v8F4ufHPQChi4gT4XE@AAAABU”,“level”:2,“time”:“2020-11-11T14:58:32+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): Not a single Base DN given.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v8F4ufHPQChi4gT4XE@AAAABU”,“level”:2,“time”:“2020-11-11T14:58:32+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): login filter does not contain %uid place holder.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}

When you press the “Detect Base DN” button (this repeats twice):

{“reqId”:“X6v9DMRUCNgp5bpdxxvbswAAAM8”,“level”:2,“time”:“2020-11-11T15:02:36+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): No LDAP Login Filter given!”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v9DMRUCNgp5bpdxxvbswAAAM8”,“level”:2,“time”:“2020-11-11T15:02:36+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): Not a single Base DN given.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v9DMRUCNgp5bpdxxvbswAAAM8”,“level”:2,“time”:“2020-11-11T15:02:36+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): login filter does not contain %uid place holder.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}

If I type the Base DN manually and hit the “Check Base DN” button (this repeats twice):

{“reqId”:“X6v@HWD7Jw2GQHL-6CAKHAAAAFg”,“level”:2,“time”:“2020-11-11T15:07:09+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): No LDAP Login Filter given!”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}
{“reqId”:“X6v@HWD7Jw2GQHL-6CAKHAAAAFg”,“level”:2,“time”:“2020-11-11T15:07:09+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:"/index.php/apps/user_ldap/ajax/wizard.php",“message”:“Configuration Error (prefix s01): login filter does not contain %uid place holder.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.1.1”}

All the problems are generated because the nextcloud cannot connect with the samba4 server, but the server where it is installed does, according to the telnet result.

Additionally, I have a nextcloud server version 18.0.4 with the user_ldap app working without problems using the same samba4 as ldap server.

Is there a problem with the user_ldap app in Nextcloud version 20?
Any suggestion to solve this issue?

Thanks in advance.

Rommel

Yesterday I upgrade to the Nextcloud version 20.0.2 and still the same problem with user_ldap app.

Some ideas to work around?

Thanks.

In the Active Directory root directory are an UO named gtm, into this UO are others that contain the users and groups of the Domain:

nextcloud-user_ldap-addc

The DN of user that connect Nextcloud to samba4 is:
CN=ldapconnect,CN=Users,DC=gtm,DC=onat,DC=gob,DC=cu

The DN Base is:
DC=gtm,DC=onat,DC=gob,DC=cu

When I clic on Test Base DN button, have error:

This are the logs of Nextcloud server when clic the button Probar Base DN:

{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:2,“time”:“2020-11-26T20:58:12+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"Confi
guration Error (prefix s01): No LDAP Login Filter given!",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}
{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:2,“time”:“2020-11-26T20:58:12+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"Confi
guration Error (prefix s01): login filter does not contain %uid place holder.",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}
{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:2,“time”:“2020-11-26T20:58:12+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"Confi
guration Error (prefix s01): No LDAP Login Filter given!",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}
{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:2,“time”:“2020-11-26T20:58:12+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"Confi
guration Error (prefix s01): login filter does not contain %uid place holder.",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}
{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:2,“time”:“2020-11-26T20:58:13+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"Bind
failed: 8: Strong(er) authentication required",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}
{“reqId”:“X8AW5OxbOQxRURq3Q6Gv1AAAAIU”,“level”:3,“time”:“2020-11-26T20:58:13+00:00”,“remoteAddr”:“192.168.14.18”,“user”:“administrator”,“app”:“user_ldap”,“method”:“POST”,“url”:“/index.php/apps/user_ldap/ajax/wizard.php”,“message”:"No LD
AP Connection to server gtmad.gtm.onat.gob.cu",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“20.0.2.2”}

Have anybody an idea of how to solve this situation?
Some help to connect Nextcloud to samba4 Active Directory?

Rommel

Hi,

I am new to NextCloud. I configured and received the same error after updating the NextCloud to 20.0.1. :confused:

---------------- Error -----------------
root@server1:~# grep -i “9einVIiavBMwtz52Myn3” /var/lib/univention-appcenter/apps/nextcloud/data/nextcloud-data/nextcloud.log

{“reqId”:“9einVIiavBMwtz52Myn3”,“level”:3,“time”:“2021-04-07T14:05:35+00:00”,“remoteAddr”:“10.0.0.1”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/nextcloud/login",“message”:{“Exception”:“Error”,“Message”:“ldap_start_tls(): Unable to start TLS: Can’t contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#341”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::"},{“function”:“ldap_start_tls”},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:341,“function”:“call_user_func_array”},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:280,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:628,“function”:“startTls”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:577,“function”:“doConnect”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:198,“function”:“establishConnection”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:206,“function”:“init”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1140,“function”:“getConnectionResource”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1323,“function”:“executeSearch”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:991,“function”:“search”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:875,“function”:“searchUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:855,“function”:“fetchListOfUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:157,“function”:“fetchUsersByLoginName”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:120,“function”:“getLDAPUserByLoginName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->"},{“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”},{“file”:"/var/www/html/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:244,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Helper.php",“line”:329,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/legacy/OC_Hook.php",“line”:110,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\Helper”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/public/Util.php",“line”:354,“function”:“emit”,“class”:“OC_Hook”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/ComplianceService.php",“line”:91,“function”:“emitHook”,“class”:“OCP\Util”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php",“line”:44,“function”:“entryControl”,“class”:“OCA\Password_Policy\ComplianceService”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:98,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Server.php",“line”:564,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/Hooks/EmitterTrait.php",“line”:101,“function”:“call_user_func_array”},{“file”:"/var/www/html/lib/private/Hooks/PublicEmitter.php",“line”:40,“function”:“emit”,“class”:“OC\Hooks\BasicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/PreLoginHookCommand.php",“line”:48,“function”:“emit”,“class”:“OC\Hooks\PublicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/Chain.php",“line”:108,“function”:“process”,“class”:“OC\Authentication\Login\PreLoginHookCommand”,“type”:"->"},{“file”:"/var/www/html/core/Controller/LoginController.php",“line”:310,“function”:“process”,“class”:“OC\Authentication\Login\Chain”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:169,“function”:“tryLogin”,“class”:“OC\Core\Controller\LoginController”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Route/Router.php",“line”:309,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/html/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/html/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/html/lib/private/Log/ErrorHandler.php",“Line”:91,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36 OPR/75.0.3969.93”,“version”:“20.0.8.1”}
{“reqId”:“9einVIiavBMwtz52Myn3”,“level”:3,“time”:“2021-04-07T14:05:35+00:00”,“remoteAddr”:“10.0.0.1”,“user”:"–",“app”:“no app in context”,“method”:“POST”,“url”:"/nextcloud/login",“message”:{“Exception”:“OC\ServerNotAvailableException”,“Message”:“Lost connection to LDAP server.”,“Code”:0,“Trace”:[{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:420,“function”:“processLDAPError”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:343,“function”:“postFunctionCall”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:280,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:628,“function”:“startTls”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:577,“function”:“doConnect”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:198,“function”:“establishConnection”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:206,“function”:“init”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1140,“function”:“getConnectionResource”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1323,“function”:“executeSearch”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:991,“function”:“search”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:875,“function”:“searchUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:855,“function”:“fetchListOfUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:157,“function”:“fetchUsersByLoginName”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:120,“function”:“getLDAPUserByLoginName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->"},{“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”},{“file”:"/var/www/html/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:244,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Helper.php",“line”:329,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/legacy/OC_Hook.php",“line”:110,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\Helper”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/public/Util.php",“line”:354,“function”:“emit”,“class”:“OC_Hook”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/ComplianceService.php",“line”:91,“function”:“emitHook”,“class”:“OCP\Util”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php",“line”:44,“function”:“entryControl”,“class”:“OCA\Password_Policy\ComplianceService”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:98,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Server.php",“line”:564,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/Hooks/EmitterTrait.php",“line”:101,“function”:“call_user_func_array”},{“file”:"/var/www/html/lib/private/Hooks/PublicEmitter.php",“line”:40,“function”:“emit”,“class”:“OC\Hooks\BasicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/PreLoginHookCommand.php",“line”:48,“function”:“emit”,“class”:“OC\Hooks\PublicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/Chain.php",“line”:108,“function”:“process”,“class”:“OC\Authentication\Login\PreLoginHookCommand”,“type”:"->"},{“file”:"/var/www/html/core/Controller/LoginController.php",“line”:310,“function”:“process”,“class”:“OC\Authentication\Login\Chain”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:169,“function”:“tryLogin”,“class”:“OC\Core\Controller\LoginController”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Route/Router.php",“line”:309,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/html/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/html/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“Line”:381,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36 OPR/75.0.3969.93”,“version”:“20.0.8.1”}
{“reqId”:“9einVIiavBMwtz52Myn3”,“level”:3,“time”:“2021-04-07T14:05:35+00:00”,“remoteAddr”:“10.0.0.1”,“user”:"–",“app”:“index”,“method”:“POST”,“url”:"/nextcloud/login",“message”:{“Exception”:“OC\ServerNotAvailableException”,“Message”:“Lost connection to LDAP server.”,“Code”:0,“Trace”:[{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:420,“function”:“processLDAPError”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:343,“function”:“postFunctionCall”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“line”:280,“function”:“invokeLDAPMethod”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:628,“function”:“startTls”,“class”:“OCA\User_LDAP\LDAP”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:577,“function”:“doConnect”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:198,“function”:“establishConnection”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Connection.php",“line”:206,“function”:“init”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1140,“function”:“getConnectionResource”,“class”:“OCA\User_LDAP\Connection”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:1323,“function”:“executeSearch”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:991,“function”:“search”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:875,“function”:“searchUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Access.php",“line”:855,“function”:“fetchListOfUsers”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:157,“function”:“fetchUsersByLoginName”,“class”:“OCA\User_LDAP\Access”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_LDAP.php",“line”:120,“function”:“getLDAPUserByLoginName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->"},{“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:90,“function”:“call_user_func_array”},{“file”:"/var/www/html/apps/user_ldap/lib/Proxy.php",“line”:167,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/User_Proxy.php",“line”:244,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->"},{“file”:"/var/www/html/apps/user_ldap/lib/Helper.php",“line”:329,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/legacy/OC_Hook.php",“line”:110,“function”:“loginName2UserName”,“class”:“OCA\User_LDAP\Helper”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/public/Util.php",“line”:354,“function”:“emit”,“class”:“OC_Hook”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/ComplianceService.php",“line”:91,“function”:“emitHook”,“class”:“OCP\Util”,“type”:"::"},{“file”:"/var/www/html/apps/password_policy/lib/Listener/BeforeUserLoggedInEventListener.php",“line”:44,“function”:“entryControl”,“class”:“OCA\Password_Policy\ComplianceService”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Password_Policy\Listener\BeforeUserLoggedInEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->"},{“file”:"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",“line”:98,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Server.php",“line”:564,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/html/lib/private/Hooks/EmitterTrait.php",“line”:101,“function”:“call_user_func_array”},{“file”:"/var/www/html/lib/private/Hooks/PublicEmitter.php",“line”:40,“function”:“emit”,“class”:“OC\Hooks\BasicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/PreLoginHookCommand.php",“line”:48,“function”:“emit”,“class”:“OC\Hooks\PublicEmitter”,“type”:"->"},{“file”:"/var/www/html/lib/private/Authentication/Login/Chain.php",“line”:108,“function”:“process”,“class”:“OC\Authentication\Login\PreLoginHookCommand”,“type”:"->"},{“file”:"/var/www/html/core/Controller/LoginController.php",“line”:310,“function”:“process”,“class”:“OC\Authentication\Login\Chain”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:169,“function”:“tryLogin”,“class”:“OC\Core\Controller\LoginController”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/html/lib/private/Route/Router.php",“line”:309,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/html/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/html/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/html/apps/user_ldap/lib/LDAP.php",“Line”:381,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36 OPR/75.0.3969.93”,“version”:“20.0.8.1”}


If somebody find a fix, please help here. Thank you.

Regards, Kums

Any help would be appreciated. :yum:

Hello friends, hope you are all doing well…

I see that you are running Centos, do you have Selinux installed/activated?

If you do so, you have to set proper rights to it, like this:

Let the use of ldap/ad

setsebool -P httpd_can_connect_ldap on

Let the server to be reachable on the network

setsebool -P httpd_can_network_connect on

Let memcache on network

setsebool -P httpd_can_network_memcache on

If you want to send mails

setsebool -P httpd_can_sendmail on

If you want to use CIFS/SMB

setsebool -P httpd_use_cifs on

If you want to use NFS

setsebool -P httpd_use_nfs=1

Hope we can start fixing some things up, so please answer if you do have Selinux enabled.

You can check if it’s enable using this guide.

Hope this can help you out.

Have a nice weekend man!

:smiley: