Professional Web Applications Themes

cfldap - Coldfusion - Advanced Techniques

I am having a problem with CFLDAP. In my first example if I specifiy the sAMAccountName it will match up the two objectsids. In the second example if I search by the objectsid, then I don't get a match. The CN=S-1.. in GetUserInfo is the correct one for johndoe. Any ideas what I am doing wrong? This one does work <CFLDAP Name="GetUserInfo" SERVER="#server1#" USERNAME="#username#" PASSWORD="#password#" ACTION="Query" ATTRIBUTES="objectSid" START="CN=S-1-5-21-2123068...,CN=ForeignSecurityPrincipals" SCOPE="Subtree"  <CFLDAP Name="GetUserInfo2" SERVER="#server2#" USERNAME="#username#" PASSWORD="#password#" ACTION="Query" ATTRIBUTES="objectSid" START="CN=Users" SCOPE="Subtree" filter="(sAMAccountName=johndoe)"  <cfif GetUserInfo.objectSid eq GetUserInfo2.objectSid> Success </cfif> This one doesn't work, GetUserInfo2 comes back with zero reocrds <CFLDAP Name="GetUserInfo" SERVER="#server1#" USERNAME="#username#" PASSWORD="#password#" ...

Sponsored Links
  1. #1

    Default cfldap

    I am having a problem with CFLDAP. In my first example if I specifiy the
    sAMAccountName it will match up the two objectsids. In the second example if I
    search by the objectsid, then I don't get a match. The CN=S-1.. in GetUserInfo
    is the correct one for johndoe. Any ideas what I am doing wrong?



    This one does work
    <CFLDAP Name="GetUserInfo"
    SERVER="#server1#"
    USERNAME="#username#"
    PASSWORD="#password#"
    ACTION="Query"
    ATTRIBUTES="objectSid"
    START="CN=S-1-5-21-2123068...,CN=ForeignSecurityPrincipals"
    SCOPE="Subtree" 

    <CFLDAP Name="GetUserInfo2"
    SERVER="#server2#"
    USERNAME="#username#"
    PASSWORD="#password#"
    ACTION="Query"
    ATTRIBUTES="objectSid"
    START="CN=Users"
    SCOPE="Subtree"
    filter="(sAMAccountName=johndoe)" 

    <cfif GetUserInfo.objectSid eq GetUserInfo2.objectSid>
    Success
    </cfif>



    This one doesn't work, GetUserInfo2 comes back with zero reocrds
    <CFLDAP Name="GetUserInfo"
    SERVER="#server1#"
    USERNAME="#username#"
    PASSWORD="#password#"
    ACTION="Query"
    ATTRIBUTES="objectSid"
    START="CN=S-1-5-21-2123068...,CN=ForeignSecurityPrincipals"
    SCOPE="Subtree" 

    <CFLDAP Name="GetUserInfo2"
    SERVER="#server2#"
    USERNAME="#username#"
    PASSWORD="#password#"
    ACTION="Query"
    ATTRIBUTES="objectSid"
    START="CN=Users"
    SCOPE="Subtree"
    filter="(objectSid=GetUserInfo.objectSid)" 

    <cfif GetUserInfo.objectSid eq GetUserInfo2.objectSid>
    Success
    </cfif>


    Sponsored Links
    raynman13 Guest

  2. #2

    Default cfldap

    Is there the way to specify two servers for cfldap? I have two server and i
    need to specify them both for server attribute but don't know how.

    <cfldap name="results"
    server="X500."
    action="QUERY"
    ;;;;;;;
    ;;;;; 

    kt03 Guest

  3. #3

    Default Re: cfldap and Start

    easy way

    you could create 2 ldap conections

    jorgepino Guest

  4. #4

    Default Re: cfldap and Start

    Can I combined two attributes for START?
    kt03 Guest

Similar Threads

  1. CFLDAP with JRE > 1.4.2_05
    By Xyphor in forum Coldfusion Server Administration
    Replies: 0
    Last Post: October 4th, 04:14 PM
  2. CFLDAP
    By Mattastic in forum Coldfusion - Getting Started
    Replies: 17
    Last Post: August 4th, 06:26 PM
  3. CFLDAP to ASP
    By jmrak in forum Macromedia ColdFusion
    Replies: 0
    Last Post: June 24th, 03:09 PM
  4. CFLDAP Error
    By ism in forum Macromedia ColdFusion
    Replies: 1
    Last Post: April 11th, 02:39 PM
  5. cfldap query
    By dorchig in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: April 1st, 12:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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