Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: LDAP Input Step always converting LDAP attributes to String?

  1. #1
    Thomas Starl Guest

    Default LDAP Input Step always converting LDAP attributes to String?

    Hi all!

    I'm currently having the following problem:
    I try to read the "GUID" attribute from a Novell eDirectory server via
    the "LDAP Input" Step in PDI.

    However, I seem to be unable to access/cast this attribute to its
    proper value.
    I tried the following approaches:
    a) "Calculator" step: Using the "Byte to Hex" calculation
    b) "Select values" step: Chaning the meta-data
    c) "Modified JavaScript Value" Step: Using the Apache-Commons Codec
    Library to convert the attribute (see: http://wiki.pentaho.com/display/EAI/...JavaScript+fro...)

    I also tried to switch the data-type in the LDAP Input step from
    "Binary" to "String" and vice versa...
    didn't change anything.

    After these tries I've had a look at src\org\pentaho\di\trans\steps
    \ldapinput\LDAPInput.java and to me it seems, that the attributes,
    read from LDAP are always cast to String before doing the specified
    conversion (see lines 76 and 170)

    Could this be?
    Anyone got some ideas/ hints on this topic?

    In "Preview" Mode I always see values like '[B@104bce3' which is the
    String-representation of the
    byte-array I assume.

    Cheers, Tom

    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) googlegroups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  2. #2
    Matt Casters Guest

    Default Re: LDAP Input Step always converting LDAP attributes to String?

    Hi Tom,

    '[B@104bce3' : this is indeed the java way of representing a byte array (byte[])
    Looks like this is a problem of the "LDAP Input" step. Please file a bug report over at http://jira.pentaho.org/browse/PDI
    Next time you have a question like this, feel free to post on our user forums: http://forums.pentaho.org/

    Good luck,
    Matt
    --
    Matt Casters <mcasters (AT) pentaho (DOT) org>
    Chief Data Integration
    Fonteinstraat 70, 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
    Pentaho : The Commercial Open Source Alternative for Business Intelligence

    On Wednesday 05 May 2010 11:53:44 Thomas Starl wrote:
    > Hi all!
    >
    > I'm currently having the following problem:
    > I try to read the "GUID" attribute from a Novell eDirectory server via
    > the "LDAP Input" Step in PDI.
    >
    > However, I seem to be unable to access/cast this attribute to its
    > proper value.
    > I tried the following approaches:
    > a) "Calculator" step: Using the "Byte to Hex" calculation
    > b) "Select values" step: Chaning the meta-data
    > c) "Modified JavaScript Value" Step: Using the Apache-Commons Codec
    > Library to convert the attribute (see: http://wiki.pentaho.com/display/EAI/...JavaScript+fro...)
    >
    > I also tried to switch the data-type in the LDAP Input step from
    > "Binary" to "String" and vice versa...
    > didn't change anything.
    >
    > After these tries I've had a look at src\org\pentaho\di\trans\steps
    > \ldapinput\LDAPInput.java and to me it seems, that the attributes,
    > read from LDAP are always cast to String before doing the specified
    > conversion (see lines 76 and 170)
    >
    > Could this be?
    > Anyone got some ideas/ hints on this topic?
    >
    > In "Preview" Mode I always see values like '[B@104bce3' which is the
    > String-representation of the
    > byte-array I assume.
    >
    > Cheers, Tom
    >
    >


    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) googlegroups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  3. #3
    Thomas Starl Guest

    Default Re: LDAP Input Step always converting LDAP attributes to String?

    Matt,
    [color=blue]
    >
    > '[B@104bce3' : this is indeed the java way of representing a byte array (byte[])
    > Looks like this is a problem of the "LDAP Input" step.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.