[SOLVED] Share username completion does not work

Hello,

I’m currently running into a problem with a NC11 fresh installation :

when trying to share, the panel appears normally, but there is no auto-completion of user names or groups in it, and even if I type the right user name, that does not validate.

No error in the log, (nothing, really)

Context :
version : 11.0.0.10
OS debian jessie
PHP 5.6.29

all users/groups except admin are located on LDAP

ldap can see 1000+ users and all 355 groups. Everyone can login, so I assume LDAP config must be OK.

there are 3 external storages mounted for all users, using their credentials (stored in database). That works too and everyone has access to their files.

the only problem really, is the inability to share : it does not work on external storages, and does not work either on regular files or folders in the main NC storage.

every option on admin/sharing is activated.

ldap:show-config
±------------------------------±----------------------------------------+
| Configuration | |
±------------------------------±----------------------------------------+
| hasMemberOfFilterSupport | |
| hasPagedResultSupport | |
| homeFolderNamingRule | attr:uid |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | uid=admin,ou=People,dc=samba,dc=fr |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | cn |
| ldapAttributesForUserSearch | cn;uid |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=samba,dc=fr |
| ldapBaseGroups | ou=Groups,dc=samba,dc=fr |
| ldapBaseUsers | ou=People,dc=samba,dc=fr |
| ldapCacheTTL | 6000 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | cn |
| ldapExpertUUIDUserAttr | uid |
| ldapExpertUsernameAttr | uid |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(|(objectclass=top))) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | top |
| ldapGroupMemberAssocAttr | memberUid |
| ldapHost | 192.168.223.10 |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(|(objectclass=person))(|(uid=%uid))) |
| ldapLoginFilterAttributes | uid |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 0 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 2500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | cn |
| ldapUserDisplayName2 | |
| ldapUserFilter | (|(objectclass=person)) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | person |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| turnOnPasswordChange | 0 |
| useMemberOfToDetectMembership | 1 |
±------------------------------±----------------------------------------+

occ files_external:list
±---------±------------±-----------±---------------------------------------------------------------±--------------------------------------------------------------------±---------------------±-----------------±------------------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration | Options | Applicable Users | Applicable Groups |
±---------±------------±-----------±---------------------------------------------------------------±--------------------------------------------------------------------±---------------------±-----------------±------------------+
| 1 | /Docs | SMB / CIFS | Identifiants de connexion, sauvegarder dans la base de données | host: “192.168.223.10”, share: “Docs”, root: “”, domain: “SAMBA” | enable_sharing: true | All | |
| 3 | /Classes | SMB / CIFS | Identifiants de connexion, sauvegarder dans la base de données | host: “192.168.223.10”, share: “Classes”, root: “”, domain: “SAMBA” | enable_sharing: true | All | |
| 4 | /Prof | SMB / CIFS | Identifiants de connexion, sauvegarder dans la base de données | host: “192.168.223.10”, share: “prof”, root: “”, domain: “SAMBA” | enable_sharing: true | | Profs |
| 5 | /Home | SMB / CIFS | Identifiants de connexion, sauvegarder dans la base de données | host: “192.168.223.10”, share: “home”, root: “”, domain: “SAMBA” | enable_sharing: true | All | |
±---------±------------±-----------±---------------------------------------------------------------±--------------------------------------------------------------------±---------------------±-----------------±------------------+

contents of config.php :

<?php $CONFIG = array ( 'instanceid' => '-REMOVED-', 'passwordsalt' => '-REMOVED-', 'secret' => '-REMOVED-', 'trusted_domains' => array ( 0 => '192.168.223.11', ), 'datadirectory' => '/var/www/html/data', 'overwrite.cli.url' => 'http://192.168.223.11', 'dbtype' => 'mysql', 'version' => '11.0.0.10', 'dbname' => 'Cloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'cloud', 'dbpassword' => '-REMOVED-', 'logtimezone' => 'UTC', 'installed' => true, 'ldapIgnoreNamingRules' => false, 'datadirectory' => '/srv/data', 'skeletondirectory' => '/srv/skel', 'knowledgebaseenabled' => false, 'default_language' => 'fr', 'enable_avatars' => false, 'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory', 'memcache.local' => '\OC\Memcache\Redis', 'redis' => array( 'host' => 'localhost', 'port' => 6379, ), 'memcache.locking' => '\OC\Memcache\Redis', );

maybe try to use the lastname and givenname as two attributes?

OK, after a long time, I finally found what was the problem : il turns out I disabled the avatars ! With the avatars enabled, it just works