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 |
±------------------------------±------------------------------+