How to configure ldap searchBase for tree with non english characters at OU= ? Can't change that names in system.
Tried:
1) save file with utf-8 and setting catalina.bat CATALINA_OPTS = -Dfile.encoding=UTF-8 . JAVA_OPTS = -Dfile.encoding=UTF-8
2)changed collation of db using droping and restoring.
3) tried percent encoding like: OU=%AB%21%32
4) tried native win encoding cp1251
ldap.synchronization.groupSearchBase=ou=УЗЕЛ,dc=some,dc=corp
Have log:
2017-10-25 19:02:49,673 ERROR [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] [localhost-startStop-1] Synchronization aborted due to error
org.alfresco.error.AlfrescoRuntimeException: 09250019 Error during LDAP Search. Reason:[LDAP: error code 32 - 0000208D: NameErr: DSID-0310020A, problem 2001 (NO_OBJECT), data 0, best match of:
'DC=some,DC=corp'
]
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.processQuery(LDAPUserRegistry.java:1326)
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.getGroups(LDAPUserRegistry.java:711)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.syncWithPlugin(ChainingUserRegistrySynchronizer.java:996)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.synchronizeInternal(ChainingUserRegistrySynchronizer.java:742)
Any ideas?
Solved! Go to Solution.
Your problem isn't that the ou is not using English, rather it is using a non ASCII / ISO-8859-1 character set. You were already thinking in the correct direction of using encoding to handle these characters. Within the alfresco-global.properties file, you need to provide any special character as a unicode literal consisting of "\u" as a prefix and the hex value of the character. I.e. the German Umlaut "ä" would need to be provided as "\u00e4" inside the alfresco-global.properties file.
Your problem isn't that the ou is not using English, rather it is using a non ASCII / ISO-8859-1 character set. You were already thinking in the correct direction of using encoding to handle these characters. Within the alfresco-global.properties file, you need to provide any special character as a unicode literal consisting of "\u" as a prefix and the hex value of the character. I.e. the German Umlaut "ä" would need to be provided as "\u00e4" inside the alfresco-global.properties file.
Adding to Axel Faust answer, the following website can help you.
Thank you very much! It worked.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.