10-25-2017 09:24 AM
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?
10-25-2017 11:19 AM
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.
10-25-2017 11:19 AM
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.
10-25-2017 12:30 PM
Adding to Axel Faust answer, the following website can help you.
10-25-2017 11:45 PM
Thank you very much! It worked.
Explore our Alfresco products with the links below. Use labels to filter content by product module.