LPAD, XML and base64

Discussion in 'XML' started by woody.hagar@gmail.com, May 16, 2005.

  1. Guest

    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
     
    , May 16, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    Base64 Conversions and CPU Usage

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Sep 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    708
    Tim_Mac
    Sep 5, 2005
  2. Damir Hakimov

    base64.encode and decode not correct

    Damir Hakimov, Aug 16, 2005, in forum: Python
    Replies:
    1
    Views:
    503
  3. Duncan Booth

    Re: base64 and unicode

    Duncan Booth, May 4, 2007, in forum: Python
    Replies:
    2
    Views:
    678
    Duncan Booth
    May 4, 2007
  4. Tamir Weiss
    Replies:
    0
    Views:
    649
    Tamir Weiss
    May 13, 2007
  5. Clodoaldo
    Replies:
    4
    Views:
    779
    Clodoaldo
    Mar 28, 2008
  6. Martin Gregorie

    JavaMail and base64 problem

    Martin Gregorie, Oct 21, 2008, in forum: Java
    Replies:
    7
    Views:
    2,101
    Martin Gregorie
    Oct 26, 2008
  7. phildog
    Replies:
    1
    Views:
    225
    phildog
    Jun 28, 2007
  8. Erik Wasser
    Replies:
    5
    Views:
    864
    Peter J. Holzer
    Mar 5, 2006
Loading...