Cannot connect to LDAP with nextcloud 12.0.3-0

nextcloud

#1

Hi all,
I cannot connect to LDAP after install nextcloud 12.0.3-0 from App Center with log below

RUNNING 50nextcloud.inst
2017-11-09 17:31:59.081223562+07:00 (in joinscript_init)
Object exists: cn=services,cn=univention,dc=smartsoc,dc=com
Object created: cn=Nextcloud,cn=services,cn=univention,dc=smartsoc,dc=com
Object modified: cn=ucs-7969,cn=dc,cn=computers,dc=smartsoc,dc=com
Create nextcloud/ucs/modifyUsersFilter
Create nextcloud/ucs/userEnabled
Create nextcloud/ucs/userQuota
Create nextcloud/ldap/cacheTTL
Create nextcloud/ldap/homeFolderAttribute
Create nextcloud/ldap/userSearchAttributes
Create nextcloud/ldap/userDisplayName
Create nextcloud/ldap/groupDisplayName
Create nextcloud/ldap/base
Create nextcloud/ldap/baseUsers
Create nextcloud/ldap/baseGroups
Create nextcloud/ldap/filterLogin
Create nextcloud/ldap/filterUsers
Create nextcloud/ldap/filterGroups
Object exists: cn=ldapschema,cn=univention,dc=smartsoc,dc=com
INFO: No change of core data of object nextcloud.
No modification: cn=nextcloud,cn=ldapschema,cn=univention,dc=smartsoc,dc=com

Waiting for activation of the extension object nextcloud: OK
Object created: cn=nextcloud,cn=custom attributes,cn=univention,dc=smartsoc,dc=com
Object created: cn=nextcloudUserEnabled,cn=nextcloud,cn=custom attributes,cn=univention,dc=smartsoc,dc=com
Object created: cn=nextcloudUserQuota,cn=nextcloud,cn=custom attributes,cn=univention,dc=smartsoc,dc=com
Object created: cn=nextcloudGroupEnabled,cn=nextcloud,cn=custom attributes,cn=univention,dc=smartsoc,dc=com
curl: (3) malformed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 173 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 100 173 100 173 0 0 198 0 --:–:-- --:–:-- --:–:-- 198
curl: (3) malformed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 100 1735 100 138 100 1597 409 4735 --:–:-- --:–:-- --:–:-- 4738
modifying uid=Administrator,cn=users,dc=smartsoc,dc=com …
Object modified: uid=Administrator,cn=users,dc=smartsoc,dc=com
curl: (3) malformed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0 0 0 0 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0 0 300 0 0 0 0 0 0 --:–:-- 0:00:03 --:–:-- 0 100 300 100 300 0 0 94 0 0:00:03 0:00:03 --:–:-- 94
Could not Administrator to admin group, because user was not found:

<?xml version="1.0"?> failure 404 Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:

EXITCODE=0
RUNNING 81univention-nfs-server.inst
EXITCODE=already_executed
RUNNING 90univention-bind-post.inst
EXITCODE=already_executed
RUNNING 91univention-saml.inst
EXITCODE=already_executed
RUNNING 92univention-management-console-web-server.inst
EXITCODE=already_executed
RUNNING 98univention-pkgdb-tools.inst
EXITCODE=already_executed

Thu Nov 9 17:32:09 ICT 2017
univention-run-join-scripts finished


#2

For someone meet same problem, after serves hours debug I found that Nextcloud docker container cannot resolve ucs host so I check DNS record and found that IP of DNS server already decreased 1 from 10.0.1.47 to 10.0.1.46
at reverse zone


and forward lookup zone

So just modify DNS record to UCS IP (in my case is 10.0.1.47) it will work!