Hello.
I would like to work on a small project from the TO DO list: - Add LDIFv2 (XML) support to command line tools. Could you tell more, what need I to do?
Best regards.
- Dmitry
On Oct 13, 2009, at 6:49 AM, Dmitry Kolesov wrote:
Hello.
I would like to work on a small project from the TO DO list:
- Add LDIFv2 (XML) support to command line tools.
This item refers to implementation of http://www.watersprings.org/pub/id/draft-sciberras-xed-eldif-05.txt .
Could you tell more, what need I to do?
I would suggest starting by adding import support to ldapadd/modify and slapadd, then may adding export support to ldapsearch and slapdump (using some sort of content detection to determine whether or not to use xml-value-spec or not).
-- Kurt
Kurt Zeilenga wrote:
[..] then may adding export support to ldapsearch and slapdump (using some sort of content detection to determine whether or not to use xml-value-spec or not).
Given your worthful but very strict comments about UTF-8 support in LDIF "using some sort of content detection" is surprisingly vague here. ;-) So I guess it boils down to using some configuration.
Ciao, Michael.
On Oct 14, 2009, at 10:16 AM, Michael Ströder wrote:
Kurt Zeilenga wrote:
[..] then may adding export support to ldapsearch and slapdump (using some sort of content detection to determine whether or not to use xml-value-spec or not).
Given your worthful but very strict comments about UTF-8 support in LDIF "using some sort of content detection" is surprisingly vague here. ;-)
(Likely a difference in forum and context, standardization v. implementation.)
The test I would use would be two fold:
1) Does the attribute value appear to be UTF-8 encoded Unicode? 2) Does the attribute value appear to be valid XML syntax?
One would use the xml-value-spec on output iff both were tests passed.
I note that these tests can give false positives just like our existing "printable ASCII?" can. That is, non-text (or text in other encodings formats) can be appear to be ASCII, or UTF-8, or XML though it's actually not.
So I guess it boils down to using some configuration.
I rather not (for our tools) go down this route (specifying which format to use for which attribute types on a per attribute type basis).
-- Kurt
On Oct 14, 2009, at 09:57 AM, Kurt Zeilenga wrote:
On Oct 13, 2009, at 6:49 AM, Dmitry Kolesov wrote:
Hello.
I would like to work on a small project from the TO DO list:
- Add LDIFv2 (XML) support to command line tools.
This item refers to implementation of http://www.watersprings.org/pub/id/draft-sciberras-xed-eldif-05.txt .
Could you tell more, what need I to do?
I would suggest starting by adding import support to ldapadd/modify and slapadd, then may adding export support to ldapsearch and slapdump (using some sort of content detection to determine whether or not to use xml-value-spec or not).
-- Kurt
I want starting by adding import LDIFv2 (XML) support to ldapadd/modify. Which option need I add to use the xml-value-spec? Need I create new function like ldif_parse_line2 or some else?
- Dmitry