http://www.perlmonks.org?node_id=624513

Binford has asked for the wisdom of the Perl Monks concerning the following question:

So I have been tasked (or rather, I stupidly volunteered) to help with the conversion of our LDAP users and groups to XML format for a enterprise application that needs it. After a lot of research, I decided that using a combination of Net::LDAP::LDIF with XML::Writer seemed to be the most straightforward but I am hoping that is wrong and someone here knows A BETTER WAY? Mainly cause taking the values of the read_entry() object in LDIF, is still very awkward for each of the disparate elements to be broken up into the large # of XML tags? If these two modules is the best way, does anyone know where there might be some example code that uses them for best effect?

Replies are listed 'Best First'.
Re: LDAP LDIF format to XML
by ghenry (Vicar) on Aug 10, 2007 at 11:08 UTC

    What about DSML?

    They are plenty of tools for that.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!
Re: LDAP LDIF format to XML
by andreas1234567 (Vicar) on Aug 10, 2007 at 11:40 UTC