Issue #121 has been updated by Raphaël Ouazana.
Status changed from Assigned to Feedback
Assigned to changed from Raphaël Ouazana to Clément OUDOT
Can you try with:
<pre>
<mainIdentifier>js:"cn=" +
javax.naming.ldap.Rdn.escapeValue(srcBean.getDatasetFirstValueById("cn")) +
",OU=users,ou=demo,DC=example,DC=com"</mainIdentifier>
</pre>
If you wish I can add a similar method to StringUtils class, and maybe a
unescapeValue method, calling javax.naming.ldap.Rdn.unescapeValue
----------------------------------------
Feature #121: [sync] function to escape special characters in RDN
http://tools.lsc-project.org/issues/121
Author: Thomas Chemineau
Status: Feedback
Priority: Normal
Assigned to: Clément OUDOT
Category: Core
Target version: 2.1
RFC say:
8<--------
If the UTF-8 string does not have any of the following characters
which need escaping, then that string can be used as the string
representation of the value.
o a space or "#" character occurring at the beginning of the
string
o a space character occurring at the end of the string
o one of the characters ",", "+", """, "\", "<", ">" or ";"
Implementations MAY escape other characters.
If a character to be escaped is one of the list shown above, then it
is prefixed by a backslash ('\' ASCII 92).
Otherwise the character to be escaped is replaced by a backslash and
two hex digits, which form a single byte in the code of the
character.
8<--------
It could be useful, when we build our one DN, to have a function that verify
and escape special characters in the RDN value, as mentioned above.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev