Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:38 AM
woody.hagar@gmail.com
Guest
 
Posts: n/a
Default LPAD, XML and base64

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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles