Closed mrloud closed 3 years ago
@szaimen the app uses the server's login flow UI, so I guess it is rather a config issue with the server and as a client we can't do anything about it...
Looks like a duplicate of https://github.com/nextcloud/android/issues/8302
How to use GitHub
Steps to reproduce
Expected behaviour
I should be able to still access Nextcloud from the Android app with an LDAP backend. I am able to login via a webpage just fine.
Actual behaviour
Android app does not update as login errors are happening on the backend
Server configuration
Operating system: Linux, Nextcloud is running from official Docker image
Web server: Nginx 1.19.6
Database: Mariadb 10.5.8
PHP version: PHP 7.4.15 (cli) (built: Feb 9 2021 19:48:41) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.15, Copyright (c), by Zend Technologies
Nextcloud version: (see Nextcloud admin page) 21.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 20.0.7
Where did you install Nextcloud from: Docker image
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
``` * accessibility: 1.7.0 * activity: 2.14.3 * calendar: 2.1.3 * cloud_federation_api: 1.4.0 * comments: 1.11.0 * contacts: 3.4.3 * contactsinteraction: 1.2.0 * dashboard: 7.1.0 * dav: 1.17.1 * deck: 1.3.0 * federatedfilesharing: 1.11.0 * federation: 1.11.0 * files: 1.16.0 * files_external: 1.12.0 * files_pdfviewer: 2.1.0 * files_rightclick: 1.0.0 * files_sharing: 1.13.1 * files_trashbin: 1.11.0 * files_versions: 1.14.0 * files_videoplayer: 1.10.0 * firstrunwizard: 2.10.0 * logreader: 2.6.0 * lookup_server_connector: 1.9.0 * mail: 1.8.3 * nextcloud_announcements: 1.10.0 * notes: 4.0.2 * notifications: 2.9.0 * oauth2: 1.9.0 * password_policy: 1.11.0 * photos: 1.3.0 * privacy: 1.5.0 * provisioning_api: 1.11.0 * recommendations: 1.0.0 * serverinfo: 1.11.0 * settings: 1.3.0 * sharebymail: 1.11.0 * spreed: 11.0.0 * support: 1.4.0 * survey_client: 1.9.0 * systemtags: 1.11.0 * tasks: 0.13.6 * text: 3.2.0 * theming: 1.12.0 * twofactor_backupcodes: 1.10.0 * updatenotification: 1.11.0 * user_ldap: 1.11.0 * user_status: 1.1.1 * viewer: 1.5.0 * weather_status: 1.1.0 * workflowengine: 2.3.0 Disabled: * admin_audit * bruteforcesettings * encryption * onlyoffice * richdocuments ```Nextcloud configuration:
Config report
``` { "system": { "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***NEXTCLOUD.HOST***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "21.0.0.18", "overwritehost": "***NEXTCLOUD.HOST***", "overwriteprotocol": "https", "overwrite.cli.url": "https:\/\/***NEXTCLOUD.HOST***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "app_install_overwrite": [ "ldaporg" ], "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "maintenance": false, "theme": "", "loglevel": 2, "default_phone_region": "US" }, "apps": { "accessibility": { "enabled": "yes", "installed_version": "1.7.0", "types": "" }, "activity": { "enabled": "yes", "installed_version": "2.14.3", "types": "filesystem" }, "backgroundjob": { "lastjob": "368" }, "bruteforcesettings": { "enabled": "no", "installed_version": "2.0.1", "types": "" }, "calendar": { "enabled": "yes", "installed_version": "2.1.3", "types": "" }, "cloud_federation_api": { "enabled": "yes", "installed_version": "1.4.0", "types": "filesystem" }, "comments": { "enabled": "yes", "installed_version": "1.11.0", "types": "logging" }, "contacts": { "enabled": "yes", "installed_version": "3.4.3", "types": "dav" }, "contactsinteraction": { "enabled": "yes", "installed_version": "1.2.0", "types": "dav" }, "core": { "backgroundjobs_mode": "cron", "installed.bundles": "[\"CoreBundle\"]", "installedat": "1610925713.8023", "lastcron": "1614028202", "lastupdateResult": "[]", "lastupdatedat": "1614026983", "moveavatarsdone": "yes", "newUser.requireEmail": "no", "oc.integritycheck.checker": "[]", "previewsCleanedUp": "1", "public_files": "files_sharing\/public.php", "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php", "theming.variables": "3380c74585402bc749599a676554ab7b", "vendor": "nextcloud" }, "dashboard": { "enabled": "yes", "installed_version": "7.1.0", "types": "" }, "dav": { "buildCalendarReminderIndex": "yes", "buildCalendarSearchIndex": "yes", "chunks_migrated": "1", "enabled": "yes", "installed_version": "1.17.1", "regeneratedBirthdayCalendarsForYearFix": "yes", "types": "filesystem" }, "deck": { "enabled": "yes", "installed_version": "1.3.0", "types": "dav" }, "federatedfilesharing": { "enabled": "yes", "installed_version": "1.11.0", "types": "" }, "federation": { "enabled": "yes", "installed_version": "1.11.0", "types": "authentication" }, "files": { "cronjob_scan_files": "500", "default_quota": "50 GB", "enabled": "yes", "installed_version": "1.16.0", "types": "filesystem" }, "files_external": { "enabled": "yes", "installed_version": "1.12.0", "types": "filesystem" }, "files_pdfviewer": { "enabled": "yes", "installed_version": "2.1.0", "types": "" }, "files_rightclick": { "enabled": "yes", "installed_version": "1.0.0", "types": "" }, "files_sharing": { "enabled": "yes", "installed_version": "1.13.1", "types": "filesystem" }, "files_trashbin": { "enabled": "yes", "installed_version": "1.11.0", "types": "filesystem,dav" }, "files_versions": { "enabled": "yes", "installed_version": "1.14.0", "types": "filesystem,dav" }, "files_videoplayer": { "enabled": "yes", "installed_version": "1.10.0", "types": "" }, "firstrunwizard": { "enabled": "yes", "installed_version": "2.10.0", "types": "logging" }, "integration_google": { "enabled": "no", "installed_version": "0.1.4", "types": "" }, "ldap_write_support": { "enabled": "no", "hasAvatarPermission": "0", "installed_version": "1.2.0", "types": "" }, "logreader": { "enabled": "yes", "installed_version": "2.6.0", "types": "" }, "lookup_server_connector": { "enabled": "yes", "installed_version": "1.9.0", "types": "authentication" }, "mail": { "enabled": "yes", "installed_version": "1.8.3", "types": "" }, "nextcloud_announcements": { "enabled": "yes", "installed_version": "1.10.0", "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200", "types": "logging" }, "notes": { "enabled": "yes", "installed_version": "4.0.2", "types": "" }, "notifications": { "enabled": "yes", "installed_version": "2.9.0", "types": "logging" }, "oauth2": { "enabled": "yes", "installed_version": "1.9.0", "types": "authentication" }, "onlyoffice": { "DocumentServerInternalUrl": "", "DocumentServerUrl": "https:\/\/***NEXTCLOUD.HOST***\/onlyoffice\/", "StorageUrl": "", "customizationChat": "true", "customizationCompactHeader": "true", "customizationFeedback": "true", "customizationForcesave": "false", "customizationHelp": "true", "customizationReviewDisplay": "original", "customizationToolbarNoTabs": "true", "defFormats": "{\"csv\":\"false\",\"doc\":\"false\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"false\",\"ods\":\"true\",\"odt\":\"true\",\"otp\":\"true\",\"ots\":\"false\",\"ott\":\"false\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"false\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"false\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}", "demo": "{\"available\":true,\"enabled\":false,\"start\":{\"date\":\"2021-01-18 00:49:28.719445\",\"timezone_type\":3,\"timezone\":\"UTC\"}}", "editFormats": "{\"csv\":\"true\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"rtf\":\"false\",\"txt\":\"true\"}", "enabled": "no", "groups": "[]", "installed_version": "6.2.0", "jwt_secret": "", "preview": "false", "sameTab": "true", "settings_error": "", "types": "filesystem", "verify_peer_off": "false" }, "password_policy": { "enabled": "yes", "installed_version": "1.11.0", "types": "authentication" }, "photos": { "enabled": "yes", "installed_version": "1.3.0", "types": "" }, "privacy": { "enabled": "yes", "installed_version": "1.5.0", "readableLocation": "us", "types": "" }, "provisioning_api": { "enabled": "yes", "installed_version": "1.11.0", "types": "prevent_group_restriction" }, "recommendations": { "enabled": "yes", "installed_version": "1.0.0", "types": "" }, "richdocuments": { "enabled": "no", "installed_version": "3.7.14", "public_wopi_url": "https:\/\/***COLLABORA.HOST***", "types": "filesystem,dav,prevent_group_restriction", "wopi_url": "https:\/\/***COLLABORA.HOST***" }, "serverinfo": { "enabled": "yes", "installed_version": "1.11.0", "types": "" }, "settings": { "enabled": "yes", "installed_version": "1.3.0", "types": "" }, "sharebymail": { "enabled": "yes", "installed_version": "1.11.0", "types": "filesystem" }, "spreed": { "enabled": "yes", "has_reference_id": "yes", "installed_version": "11.0.0", "project_access_invalidated": "1", "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***", "stun_servers": "***REMOVED SENSITIVE VALUE***", "types": "dav,prevent_group_restriction" }, "support": { "SwitchUpdaterServerHasRun": "yes", "enabled": "yes", "installed_version": "1.4.0", "types": "session" }, "survey_client": { "enabled": "yes", "installed_version": "1.9.0", "types": "" }, "systemtags": { "enabled": "yes", "installed_version": "1.11.0", "types": "logging" }, "tasks": { "enabled": "yes", "installed_version": "0.13.6", "types": "" }, "text": { "enabled": "yes", "installed_version": "3.2.0", "types": "dav" }, "theming": { "cachebuster": "1", "enabled": "yes", "installed_version": "1.12.0", "types": "logging", "url": "***REMOVED SENSITIVE VALUE***" }, "twofactor_backupcodes": { "enabled": "yes", "installed_version": "1.10.0", "types": "" }, "updatenotification": { "core": "20.0.7.1", "deck": "1.2.4", "enabled": "yes", "installed_version": "1.11.0", "mail": "1.8.3", "types": "", "update_check_errors": "0" }, "user_ldap": { "background_sync_interval": "43200", "background_sync_offset": "0", "background_sync_prefix": "s01", "cleanUpJobOffset": "0", "enabled": "yes", "installed_version": "1.11.0", "s01_lastChange": "1614027902", "s01has_memberof_filter_support": "1", "s01home_folder_naming_rule": "", "s01last_jpegPhoto_lookup": "0", "s01ldap_agent_password": "***REMOVED SENSITIVE VALUE***", "s01ldap_attributes_for_group_search": "", "s01ldap_attributes_for_user_search": "", "s01ldap_backup_host": "", "s01ldap_backup_port": "", "s01ldap_base": "dc=***HOST***,dc=***TLD***", "s01ldap_base_groups": "dc=***HOST***,dc=***TLD***", "s01ldap_base_users": "dc=***HOST***,dc=***TLD***", "s01ldap_cache_ttl": "600", "s01ldap_configuration_active": "1", "s01ldap_default_ppolicy_dn": "", "s01ldap_display_name": "cn", "s01ldap_dn": "cn=admin,dc=***HOST***,dc=***TLD***", "s01ldap_dynamic_group_member_url": "", "s01ldap_email_attr": "mail", "s01ldap_experienced_admin": "0", "s01ldap_expert_username_attr": "uid", "s01ldap_expert_uuid_group_attr": "", "s01ldap_expert_uuid_user_attr": "", "s01ldap_ext_storage_home_attribute": "", "s01ldap_gid_number": "gidNumber", "s01ldap_group_display_name": "cn", "s01ldap_group_filter": "", "s01ldap_group_filter_mode": "0", "s01ldap_group_member_assoc_attribute": "member", "s01ldap_groupfilter_groups": "", "s01ldap_groupfilter_objectclass": "", "s01ldap_host": "openldap", "s01ldap_login_filter": "(&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=nextcloud-users,ou=groups,dc=***HOST***,dc=***TLD***)))(uid=%uid))", "s01ldap_login_filter_mode": "0", "s01ldap_loginfilter_attributes": "", "s01ldap_loginfilter_email": "0", "s01ldap_loginfilter_username": "1", "s01ldap_matching_rule_in_chain_state": "unknown", "s01ldap_nested_groups": "0", "s01ldap_override_main_server": "", "s01ldap_paging_size": "500", "s01ldap_port": "389", "s01ldap_quota_attr": "", "s01ldap_quota_def": "", "s01ldap_tls": "0", "s01ldap_turn_off_cert_check": "0", "s01ldap_turn_on_pwd_change": "0", "s01ldap_user_avatar_rule": "default", "s01ldap_user_display_name_2": "", "s01ldap_user_filter_mode": "0", "s01ldap_userfilter_groups": "nextcloud-users", "s01ldap_userfilter_objectclass": "inetOrgPerson", "s01ldap_userlist_filter": "(&(|(objectclass=inetOrgPerson))(|(memberof=cn=nextcloud-users,ou=groups,dc=***HOST***,dc=***TLD***)))", "s01use_memberof_to_detect_membership": "1", "types": "authentication" }, "user_status": { "enabled": "yes", "installed_version": "1.1.1", "types": "" }, "viewer": { "enabled": "yes", "installed_version": "1.5.0", "types": "" }, "weather_status": { "enabled": "yes", "installed_version": "1.1.0", "types": "" }, "workflowengine": { "enabled": "yes", "installed_version": "2.3.0", "types": "filesystem" } } } ```Are you using external storage, if yes which one: local/smb/sftp/... No Are you using encryption: yes/no No Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... Yes, LDAP
LDAP configuration (delete this part if not used)
LDAP config
``` +-------------------------------+-------------------------------------------------------------------------------------------------------------+ | Configuration | s01 | +-------------------------------+-------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 1 | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | cn=***LOGIN***,dc=***HOST***,dc=***TLD*** | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | dc=***HOST***,dc=***TLD*** | | ldapBaseGroups | dc=***HOST***,dc=***TLD*** | | ldapBaseUsers | dc=***HOST***,dc=***TLD*** | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDefaultPPolicyDN | | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | uid | | ldapExtStorageHomeAttribute | | | ldapGidNumber | gidNumber | | ldapGroupDisplayName | cn | | ldapGroupFilter | | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | member | | ldapHost | openldap | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=nextcloud-users,ou=groups,dc=***HOST***,dc=***TLD***)))(uid=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 0 | | ldapLoginFilterUsername | 1 | | ldapMatchingRuleInChainState | unknown | | ldapNestedGroups | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 389 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserAvatarRule | default | | ldapUserDisplayName | cn | | ldapUserDisplayName2 | | | ldapUserFilter | (&(|(objectclass=inetOrgPerson))(|(memberof=cn=nextcloud-users,ou=groups,dc=***HOST***,dc=***TLD***))) | | ldapUserFilterGroups | nextcloud-users | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | inetOrgPerson | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+-------------------------------------------------------------------------------------------------------------+ ```Client configuration
Browser: Android Operating system: Android
Logs
Web server error log
Web server error log
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` {"reqId":"z4AWvxpVUgLp999BDzgC","level":2,"time":"2021-02-22T21:28:39+00:00","remoteAddr":"Browser log
Browser log
``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```