Specific LDAP user was unable to log in and does not listed in user list
Hi!
Nextcloud has been working well with LDAP for a year now. Yesterday I added several users to the access group. One of the users ("Ivanova_n") was unable to log in. He was also not listed on the user list in Nextcloud. I didn’t find anything in the logs. During the diagnosis, it turned out that the user folder was not created in the file system. I decided to look at the database tables. Information about user "ivanova_n" was missing in tables "oc_mounts" and "oc_storages". At first I thought that the problem was in the username (it contained underscore, others did not have this). I created a test user ("usr_tst") and gave him access to Nextcloud - everything was ok with him. How to understand what is the reason the problem with the user "Ivanova_n"?
Big thanks!
Steps to reproduce
- Install and configure Nextcloud server
- Install and configure LDAP app
- Add user to access group
Expected behaviour
User was successfuly log in and works well.
Actual behaviour
User was unable to log in. He was also not listed on the user list in Nextcloud. User folder was not created in the file system.
Server configuration
Operating system: CentOS 7
Web server: Apache/2.4.6
Database: mysql (MariDB) 10.2.19
PHP version: 7.3.1
Nextcloud version: 16.0.5.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated from an older Nextcloud/ownCloud
Where did you install Nextcloud from: /var/www/nextcloud
No errors have been found.
List of activated apps:
App list
Enabled: - accessibility: 1.2.0 - activity: 2.9.1 - admin_audit: 1.6.0 - cloud_federation_api: 0.2.0 - comments: 1.6.0 - dav: 1.9.2 - federatedfilesharing: 1.6.0 - federation: 1.6.0 - files: 1.11.0 - files_external: 1.7.0 - files_pdfviewer: 1.5.0 - files_retention: 1.5.1 - files_rightclick: 0.15.1 - files_sharing: 1.8.0 - files_texteditor: 2.8.0 - files_trashbin: 1.6.0 - files_versions: 1.9.0 - files_videoplayer: 1.5.0 - gallery: 18.3.0 - groupfolders: 4.1.4 - logreader: 2.1.0 - lookup_server_connector: 1.4.0 - nextcloud_announcements: 1.5.0 - notifications: 2.4.1 - oauth2: 1.4.2 - onlyoffice: 3.0.2 - password_policy: 1.6.0 - polls: 0.10.2 - privacy: 1.0.0 - provisioning_api: 1.6.0 - quota_warning: 1.5.0 - ransomware_detection: 0.5.2 - recommendations: 0.4.0 - serverinfo: 1.6.0 - sharebymail: 1.6.0 - sharerenamer: 2.7.2 - smb_test: 0.2.3 - support: 1.0.0 - survey_client: 1.4.0 - systemtags: 1.6.0 - theming: 1.7.0 - twofactor_backupcodes: 1.5.0 - updatenotification: 1.6.0 - user_ldap: 1.6.0 - user_saml: 2.4.0 - viewer: 1.1.0 - workflowengine: 1.6.0 Disabled: - encryption - files_automatedtagging - firstrunwizardNextcloud configuration:
Config report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.mydomain.ru" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "16.0.5.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "updater.release.channel": "stable", "theme": "", "loglevel": 1, "memcache.local": "\\OC\\Memcache\\APCu", "overwrite.cli.url": "https:\/\/cloud.mydomain.ru", "updater.secret": "***REMOVED SENSITIVE VALUE***" } }Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory
LDAP configuration (delete this part if not used)
LDAP config
| Configuration | s01 | +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 0 | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | CN=svc-cloud-noreply,OU=Services,OU=ITUsers,OU=Common,OU=Administrative,DC=mydomain,DC=ru | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | "***REMOVED SENSITIVE VALUE***" | | ldapBackupPort | 389 | | ldapBase | OU=Corporation,DC=mydomain,DC=ru | | ldapBaseGroups | OU=Administrative,DC=mydomain,DC=ru | | ldapBaseUsers | OU=Corporation,DC=mydomain,DC=ru | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDefaultPPolicyDN | | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 1 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | sAMAccountName | | ldapExpertUsernameAttr | | | ldapExtStorageHomeAttribute | | | ldapGidNumber | gidNumber | | ldapGroupDisplayName | displayname | | ldapGroupFilter | (&(objectClass=group)(extensionAttribute2=cloud_group)) | | ldapGroupFilterGroups | | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | | | ldapGroupMemberAssocAttr | member | | ldapHost | "***REMOVED SENSITIVE VALUE***" | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(sAMAccountName=%uid)(objectClass=person)(memberOf:1.2.840.113556.1.4.1941:=CN=SR-FS_Cloud-Access,OU=SecurityRole,OU=AccessGroups,OU=Common,OU=Administrative,DC=mydomain,DC=ru)(!(userAccountControl:1.2.840.113556.1.4.804:=2))) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 0 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 1 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 389 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserAvatarRule | default | | ldapUserDisplayName | displayname | | ldapUserDisplayName2 | | | ldapUserFilter | (&(objectCategory=user)(memberOf:1.2.840.113556.1.4.1941:=CN=SR-FS_Cloud-Access,OU=SecurityRole,OU=AccessGroups,OU=Common,OU=Administrative,DC=mydomain,DC=ru)(!(userAccountControl:1.2.840.113556.1.4.804:=2))) | | ldapUserFilterGroups | | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 0 | | useMemberOfToDetectMembership | 1 | +
Any ideas?
Hello.
We have the same problem.
Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)
Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)
We decided the problem. This problem in groups. When group have recursive included. For example: User in group 1 and group 3 Group 1 in group 2 Group 2 in group 3 And group 3 in group 1.
Next cloud don't have check this situation. And user can't login, because server can't get properly groups of user.
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!