Issue #121 has been updated by Clément OUDOT.

Status changed from Feedback to Assigned
Assigned to changed from Clément OUDOT to Raphaël Ouazana

Problem is still here. With this DN definition:
<pre>
<mainIdentifier>js:"cn=" + srcBean.getDatasetFirstValueById("cn") + 
",OU=users,ou=demo,DC=example,DC=com"</mainIdentifier>
</pre>

I can't use CN values containing '+', ',' or '\'. Maybe can we have a "DN 
escape" method that we can use in <mainIdentifer> markup, like:
<pre>
<mainIdentifier>js:"cn=" + 
srcBean.getDatasetFirstValueById("cn").escapeDnValues() + 
",OU=users,ou=demo,DC=example,DC=com"</mainIdentifier>
</pre>

----------------------------------------
Feature #121: [sync] function to escape special characters in RDN
http://tools.lsc-project.org/issues/121

Author: Thomas Chemineau
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
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

Reply via email to