-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
When 'pwdpolicysubentry', 'pwdgraceusetime', 'pwdreset', 'pwdchangedtime' all not exist subsequent attempts to access the $result array generate:
Error PHP Undefined array key 0 at /var/www/html/nextcloud/apps/user_ldap/lib/User/User.php#751 2025-06-28T01:11:39+00:00
I will provide pull request shortly.
Steps to reproduce
- Setup an LDAP backend for Nextcloud.
- Create on LDAP backend default password policy but NOT user specific password policy, no 'pwdgraceusetime' and no 'pwdreset'.
- Create new user. Do not change password after creation so 'pwdchangedtime' is empty.
- Login to Nextcloud with user and see error. Login is still successful (can be progressed with back / forward browser sequence).
Expected behavior
Error PHP Undefined array key 0 at /var/www/html/nextcloud/apps/user_ldap/lib/User/User.php#751 2025-06-28T01:11:39+00:00 should not occur.
Nextcloud Server version
31
Operating system
RHEL/CentOS
PHP engine version
PHP 8.4
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_antivirus: 6.0.2
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- passwords: 2025.5.21
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.7.1
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- spreed: 21.1.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_ldap: 1.22.0
- user_saml: 6.6.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- encryption: 2.19.0
- files_external: 1.23.0
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0Nextcloud Signing status
No errors have been found.Nextcloud Logs
Error PHP Undefined array key 0 at /var/www/html/nextcloud/apps/user_ldap/lib/User/User.php#744 2025-06-27T13:15:29+00:00Additional info
No response