We use an Active Directory to provide users via the LDAP/AD integration.
When trying to share files or calendars entering the user or group name first shows search results. But once you start typing the first character after a space character the search returns nothing. Therefore it is impossible to share to Groups or Users which are cut off by the limit in the beginning when their name only diverges after a space.
The same search problem is observed on the command line using occ ldap:search.
> occ ldap:search "John"
John Doe
John Wick
> occ ldap:search "John "
John Doe
John Wick
> occ ldap:search "John D"
(No result for the last command).
The search still returns after even after a space character. Both in the CLI and the sharing interface for files and calendars.
> occ ldap:search "John"
John Doe
John Wick
> occ ldap:search "John "
John Doe
John Wick
> occ ldap:search "John D"
John Doe
{
"system": {
"serverid": "1",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "33.0.3.2",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbdriveroptions": {
"1009": "\/etc\/ssl\/certs\/ca-certificates.crt",
"1014": false
},
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"default_language": "de",
"default_phone_region": "DE",
"default_locale": "de_DE",
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"dbindex": 0,
"timeout": 1.5
},
"default_timezone": "Europe\/Berlin",
"logtimezone": "Europe\/Berlin",
"log_rotate_size": 10485760,
"loglevel": 2,
"integrity.check.disabled": false,
"skeletondirectory": "",
"auth.bruteforce.protection.enabled": true,
"filelocking.enabled": "true",
"knowledgebaseenabled": false,
"allow_user_to_change_display_name": false,
"lost_password_link": "***REMOVED SENSITIVE VALUE***",
"sharing.enable_share_mail": true,
"upgrade.disable-web": true,
"simpleSignUpLink.shown": false,
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_smtpport": "587",
"mail_smtpauth": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtptimeout": 10,
"mail_smtpdebug": false,
"maintenance_window_start": 1,
"activity_expire_days": 90,
"forbidden_filenames": [
".htaccess",
"Thumbs.db",
"thumbs.db",
".DS_Store",
"desktop.ini",
".~lock"
],
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
],
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"enabledPreviewProviders": [
"OC\\Preview\\BMP",
"OC\\Preview\\GIF",
"OC\\Preview\\JPEG",
"OC\\Preview\\Krita",
"OC\\Preview\\MarkDown",
"OC\\Preview\\MP3",
"OC\\Preview\\PNG",
"OC\\Preview\\TXT",
"OC\\Preview\\XBitmap"
]
}
}
Bug description
We use an Active Directory to provide users via the LDAP/AD integration.
When trying to share files or calendars entering the user or group name first shows search results. But once you start typing the first character after a space character the search returns nothing. Therefore it is impossible to share to Groups or Users which are cut off by the limit in the beginning when their name only diverges after a space.
The same search problem is observed on the command line using
occ ldap:search.Example:
(No result for the last command).
Steps to reproduce
Expected behavior
The search still returns after even after a space character. Both in the CLI and the sharing interface for files and calendars.
Example:
Nextcloud Server version
33
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
{ "system": { "serverid": "1", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "33.0.3.2", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "dbdriveroptions": { "1009": "\/etc\/ssl\/certs\/ca-certificates.crt", "1014": false }, "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "default_language": "de", "default_phone_region": "DE", "default_locale": "de_DE", "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "dbindex": 0, "timeout": 1.5 }, "default_timezone": "Europe\/Berlin", "logtimezone": "Europe\/Berlin", "log_rotate_size": 10485760, "loglevel": 2, "integrity.check.disabled": false, "skeletondirectory": "", "auth.bruteforce.protection.enabled": true, "filelocking.enabled": "true", "knowledgebaseenabled": false, "allow_user_to_change_display_name": false, "lost_password_link": "***REMOVED SENSITIVE VALUE***", "sharing.enable_share_mail": true, "upgrade.disable-web": true, "simpleSignUpLink.shown": false, "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_sendmailmode": "smtp", "mail_smtpport": "587", "mail_smtpauth": true, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtptimeout": 10, "mail_smtpdebug": false, "maintenance_window_start": 1, "activity_expire_days": 90, "forbidden_filenames": [ ".htaccess", "Thumbs.db", "thumbs.db", ".DS_Store", "desktop.ini", ".~lock" ], "forbidden_filename_basenames": [ "con", "prn", "aux", "nul", "com0", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9", "com\u00b9", "com\u00b2", "com\u00b3", "lpt0", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "lpt\u00b9", "lpt\u00b2", "lpt\u00b3" ], "forbidden_filename_characters": [ "<", ">", ":", "\"", "|", "?", "*", "\\", "\/" ], "forbidden_filename_extensions": [ " ", ".", ".filepart", ".part" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "enabledPreviewProviders": [ "OC\\Preview\\BMP", "OC\\Preview\\GIF", "OC\\Preview\\JPEG", "OC\\Preview\\Krita", "OC\\Preview\\MarkDown", "OC\\Preview\\MP3", "OC\\Preview\\PNG", "OC\\Preview\\TXT", "OC\\Preview\\XBitmap" ] } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response