LDAP, non english ou , exception

cancel
Showing results for 
Search instead for 
Did you mean: 
alfhdmb
Member II

LDAP, non english ou , exception

Jump to solution

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?

1 Solution

Accepted Solutions
afaust
Master

Re: LDAP, non english ou , exception

Jump 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.

View solution in original post

3 Replies
afaust
Master

Re: LDAP, non english ou , exception

Jump 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.

douglascrp
Advanced II

Re: LDAP, non english ou , exception

Jump to solution

Adding to Axel Faust answer, the following website can help you.

Interactive native2ascii 

alfhdmb
Member II

Re: LDAP, non english ou , exception

Jump to solution

Thank you very much! It worked.