LPAD, XML and base64

W

woody.hagar

Hi everyone,

I am querying a couple of LDAP servers and retreving the data in an
XML format (-X), but I am running into a problem, and I am not sure how
to proceed. In XML, some of the attributes are in encoded ("base64")
while their counterparts in the standard out LDIF file is not
encoded...

So what gives? Why is LDIF decoded and not the XML? I have the same
flags (the implied -B for the xml produces no change) for both
ldapsearch, take a look:

->ldapsearch -u -h host -p 389 -s "subtree" -b "o=mybase" -X
"(objectclass=person)" > test_data.xml

sample result:
<attr name="title">
<value encoding="base64">
IE5ldHdvcmsgQW5hbHlzdCBJSQ==
</value>

->ldapsearch -u -h HSCNW7 -p 389 -s "subtree" -b "o=mybase"
"(objectclass=person)" > test_data.ldif

sample result:
title= Network Analyst II


I just need to get the XML into a readable format, any ideas?

thanks
woody
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,843
Latest member
WizcraftEntertainmentAgen

Latest Threads

Top