Does ReturnAsBinary of CFLDAP work ??

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Does ReturnAsBinary of CFLDAP work ??

    Does ReturnAsBinary of CFLDAP work ??
    I am trying [ReturnAsBinary] for objectGUID on ActiveDirectory.
    but it does not work, and just CFLDAP return [objectGUID] as [String]

    Please tell me how to use [ReturnAsBinary] or get correctly [objectGUID]

    sample is below

    <CFLDAP
    server = "localhost"
    port = "389"
    username = "administrator"
    password = "adminpassword"
    action = "query"
    name = "qryGetGUID"
    start = "example.com"
    scope = "subtree"
    attributes = "cn,name,objectGUID"
    returnAsBinary = "objectGUID"
    filter="cn=acministrator">


    Shigeru@Linkcom Guest

  2. Similar Questions and Discussions

    1. CFLDAP
      Hi, I've never used this tag before and its causing me some problems. (see attached code) Regarding the start attribute what does 'cn' and 'c'...
    2. CFLDAP 2 Servers
      I am looking at a group in Active Directory in it I have added a user that is in another active directory. When I use Microsofts AD tool the user...
    3. CFLDAP to ASP
      Does anyone know how to convert the following CFLDAP code to ASP? I have had no luck. <cfldap action="query" name="testldap"...
    4. CFLDAP Connection
      Hello, QUESTION #1 I've tried to add an entry using cfldap and i kept getting same general error saying below Is there anyway for me to see an...
    5. CFLDAP Question
      I am trying to pull back all users in Active Directory that do not contain a $ sign. I can return ALL users that have a dollar sign by the...
  3. #2

    Default Re: Does ReturnAsBinary of CFLDAP work ??

    self replay

    It's works!!
    Actually I was trying [returnAsBinary = "objectGUID,objectSID"]
    like below and did not work

    <CFLDAP
    server = "localhost"
    port = "389"
    username = "administrator"
    password = "adminpassword"
    action = "query"
    name = "qryGetGUID"
    start = "example.com"
    scope = "subtree"
    attributes = "cn,name,objectGUID"
    returnAsBinary = "objectGUID,objectSID"
    filter="cn=acministrator">

    and I figured out how to use [returnasbinary]
    if there is a column(=attribute) for returnasbinary , it just write [
    returnasbinary = "objectGUID" ]
    if there are many columns(=attributes) for returnasbinary (more than two),
    it must write [ returnasbinary = "objectGUID , objectSID" ]
    not [ returnasbinary = "objectGUID,objectSID" ]
    not [ returnasbinary = "objectGUID, objectSID" ]
    not [ returnasbinary = "objectGUID ,objectSID" ]
    it needs a space and a comma and a space like " , " between column name
    I don't know why , but it works.

    for example

    <CFLDAP
    server = "localhost"
    port = "389"
    username = "administrator@example.com"
    password = "adminpassword"
    action = "query"
    name = "qryGetGUID"
    start = "example.com"
    scope = "subtree"
    attributes = "cn,name,objectGUID,objectSID"
    returnAsBinary = "objectGUID , objectSID"
    filter="cn=acministrator">

    <CFSET szTemp = qryGetGUID.objectGUID>
    <CFSET szData = BinaryEncode(szTemp,"Hex")>
    <CFOUTPUT>objectGUID is #szData#<BR></CFOUTPUT>

    <CFSET szTemp = qryGetGUID.objectSID>
    <CFSET szData = BinaryEncode(szTemp,"Hex")>
    <CFOUTPUT>objectSID is #szData#<BR></CFOUTPUT>

    I confirmed this result via ActiveDirectory's ADAM-adsiedit.msc.

    Thanks

    Shigeru@Linkcom Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139