Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

LDAP LDIF format to XML

by Binford (Sexton)
on Jul 02, 2007 at 17:14 UTC ( #624513=perlquestion: print w/replies, xml ) Need Help??

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 Just ask!!!
Re: LDAP LDIF format to XML
by andreas1234567 (Vicar) on Aug 10, 2007 at 11:40 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://624513]
Approved by pKai
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2020-08-10 19:49 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (58 votes). Check out past polls.