LDAP UI not usable

Hello,

I have running Nextcloud 15.02 on a Ubuntu 18.04 with PHP 7.2. I tried to install LDAP, but with no success.
The configuration page does not act. It does not respond after either hitting discover port or test Base-DN.

ldapsearch is giving results on the terminal.

OCC gives following output with:
sudo -u www-data php occ ldap:test-config s01
The configuration is valid and the connection could be established!

Although the search is giving no results. I created a new config S02 and tried to access it via the admin page. This is what I get in the logs:
{“reqId”:“hkb0qLfw5enMIIthn5yi”,“level”:3,“time”:“2019-01-20T10:39:04+00:00”,“remoteAddr”:“ADDR”,“user”:“USER”,“app”:“PHP”,“method”:“GET”,“url”:"/settings/admin/ldap",“message”:“Undefined index: s02 at PATH/apps/user_ldap/templates/part.wizard-server.php#9”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0”,“version”:“15.0.2.0”}

Can anybody help?

My config looks like this

sudo -u www-data php occ ldap:show-config s01
±------------------------------±------------------------------+
| Configuration | s01 |
±------------------------------±------------------------------+
| hasMemberOfFilterSupport | 0 |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | cn=NAME,dc=PREFIX,dc=SUFFIX |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=PREFIX,dc=SUFFIX |
| ldapBaseGroups | ou=groups,dc=PREFIX,dc=SUFFIX |
| ldapBaseUsers | ou=users,dc=PREFIX,dc=SUFFIX |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 0 |
| ldapDefaultPPolicyDN | |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | |
| ldapGidNumber | gidNumber |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | uniqueMember |
| ldapHost | localhost |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | %uid |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserAvatarRule | default |
| ldapUserDisplayName | displayName |
| ldapUserDisplayName2 | |
| ldapUserFilter | |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| turnOnPasswordChange | 0 |
| useMemberOfToDetectMembership | 1 |
±------------------------------±------------------------------+

Moved to support category. App category was wrong I believe.

No one any idea why I cannot configure LDAP from the admin page?

If I look at the webconsole I am getting following errors:

TypeError: $(...).data(...) is undefined[Learn More] settings.js:4:24
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://17835eba-4dbd-463e-af3e-cede70ddb9d9/browser-polyfill.min.js
Source Map URL: browser-polyfill.min.js.map[Learn More]
Source map error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Resource URL: https://URL/apps/notifications/js/notifications.js?v=ddc9bcaf-11
Source Map URL: notifications.js.map[Learn More]
will not save undefined key: ldap_host configModel.js:166:5
will not save undefined key: ldap_port configModel.js:166:5
will not save undefined key: ldap_base

Anyone?

Created issue https://github.com/nextcloud/server/issues/13856

Anyone. I still cannot use LDAP :frowning:

Does everyone have a working UI for the LDAP settings?
I still cannot do anything. The only button which “works” is the delete profile but then the profile is not deleted.

I created via the terminal a configuration which is listed but the UI does not show the data from the config.

Anything I can do?

And although I setup the config via the terminal I cannot login with LDAP credentials.
Are there dependencies to other plugins?

Is there really no one who can help me?

I would be very gratefull for any hints :slight_smile:

What address are you trying to connect with? Have you tried localhost (127.0.0.1) on the same host?

Can you connect with any of the supplied LDAP tools, such as ldapsearch?

It is localhost. And vie terminal and occ-ldap (or whatever the command is) I can connect to the LDAP server, I can change the configuration and so on. But the UI is unwilling and the login is still not possible.

I just saw that users are found. So the LDAP is working but the LDAP config page in the Admin area not :frowning: