Steps to reproduce
- Install ownCloud docker container
- Enable LDAP Integration
- Configure User Authentication to read from Synology Directory Server (AD).
Expected behaviour
ownCloud should read from the existing AD and populate with users and groups.
Actual behaviour
Providing either the IP or the FQDN of the domain, the port, the username, the password for the username, and then clicking the ‘Detect Base DN’ button, I get the error ‘Base DN could not be auto-detected, please revise credentials, host and port.’
If I manually enter a Base DN and click the ‘Test Base DN’ button, I am presented with the error, ‘An error occurred. Please check the Base DN, as well as connection settings and credentials.
The Base DN appears to be wrong’.
Along with a message to the left of the Continue button that reads, ‘Configuration incorrect’.
Using the same username/password and either the IP or the FQDN in the Microsoft Utility, Active Directory Explorer, results in a quick connection and the ability to read from the AD.
Server configuration
Operating system: Synology DSM DSM 6.2.3-25426 / Docker 18.09.0.-0513 /
Web server: Unsure. Whatever comes with the container owncloud/server from Docker repo
Database: Unsure. Whatever comes with the container owncloud/server from Docker repo
PHP version: Unsure. Whatever comes with the container owncloud/server from Docker repo
ownCloud version: (see ownCloud admin page) 10.4.1.3
Updated from an older ownCloud or fresh install: Fresh
Where did you install ownCloud from: docker repository: docker pull owncloud/server
Signing status (ownCloud 9.0 and above): dont know what this means.
Login as admin user into your ownCloud and access
http://example*.com/index.ph*p/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here. No errors have been found.
The content of config/config.php:
See link at end for config.php and server log.
List of activated apps: Whatever comes activated by default, plus LDAP Integration.
Contained in config.php.
Are you using external storage, if yes which one: local/smb/sftp/… Nothing at this point. One step at a time.
Are you using encryption: no
Are you using an external user-backend, if yes which one: Synology Directory Server
LDAP configuration (delete this part if not used)
Host: 192.168.1.10 (or 172.1.0.1 or sysunlim.private or sunas.sysunlim.private, they all go to the same place):389
User DN: Have tried multiple. (Seem to get ther farthest using one of the usernames alone (Tabs above become clickable)):
cn=svc_owncloud,dc=sysunlim,dc=private
uid=svc_owncloud,dc=sysunlim,dc=private
cn=svc_ldap,dc=sysunlim,dc=private
uid=svc_ldap,dc=sysunlim,dc=private
svc_ldap
svc_owncloud
Password: The password for the above account, obviously. For simplicity of troubleshooting, they currently use the same password value.
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM oc_appconfig
WHERE appid
= ‘user_ldap’;
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser: |Google Chrome|83.0.4103.116 (Official Build) (64-bit) (cohort: Stable)|
| — | — |
|Revision|8f0c18b4dca9b6699eb629be0f51810c24fb6428-refs/branch-heads/4103@{#716}|
|
OS|Windows 10 OS Version 1903 (Build 18362.900)|
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
See link at end for config.php and server log.
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) …
/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
As I mentioned before. Using the username/password to connect to the AD with AD Explorer works without issue. svc_ldap is not a domain admin. svc_owncloud is a domain admin. Same issues exist using either account.
I’ve been trying to get this working properly for a week, at least. Today I installed Docker on my desktop and installed another fresh install of ownCloud to test and have the exact same problem.
Link to files: http://gofile.me/5b4CD/QH8EFczRy