Problems arise when authorizing in LDAP if the user is deep in the OU (248 characters) writes that the password is not correct. If the user is transferred to the OU, which has fewer characters (the path to the OU), then there is no error. Tell me, is it possible to increase the number of characters to OU?
No, you’ll have to rearrange/shorten your DNs, see the mapping table for reference:
MariaDB> desc oc_ldap_user_mapping;
+----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+--------------+------+-----+---------+-------+
| owncloud_name | varchar(255) | NO | PRI | NULL | |
| ldap_dn | varchar(255) | NO | UNI | NULL | |
| directory_uuid | varchar(255) | NO | | NULL | |
+----------------+--------------+------+-----+---------+-------+
I strongly discourage you to mess with the database itself unless you really know what you are doing and unless you can help yourself in case of issues/upgrades etc.