SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: cfldap

  1. #1
    SitePoint Enthusiast danarashad's Avatar
    Join Date
    Nov 2006
    Location
    Nebraska USA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cfldap

    Code CFM:
    <cfldap action="QUERY" name="auth" attributes="cn,sn,uid,givenName,dn,apple-keyword,uidNumber,gidNumber" start="cn=users,dc=directory,dc=schools,dc=org" 
    filter="(&(objectclass=*)(uid=xx))" server="ldap.business.org" port="389" username="uid=danarashad,cn=users,dc=directory,dc=schools,dc=org" password="xx">

    When I do a dump I can see the apple-keyword. But when I try to output
    Code CFM:
    auth.apple-keyword.
    I get error apple doesn't exists in auth.

  2. #2
    SitePoint Enthusiast danarashad's Avatar
    Join Date
    Nov 2006
    Location
    Nebraska USA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by danarashad View Post
    Code CFM:
    <cfldap action="QUERY" name="auth" attributes="cn,sn,uid,givenName,dn,apple-keyword,uidNumber,gidNumber" start="cn=users,dc=directory,dc=schools,dc=org" 
    filter="(&(objectclass=*)(uid=xx))" server="ldap.business.org" port="389" username="uid=danarashad,cn=users,dc=directory,dc=schools,dc=org" password="xx">

    When I do a dump I can see the apple-keyword. But when I try to output
    Code CFM:
    auth.apple-keyword.
    I get error apple doesn't exists in auth.
    I am pretty sure it has to do with the (-) in apple-keyword. Is there a way to convert this to a variable without the (-).

  3. #3
    SitePoint Enthusiast danarashad's Avatar
    Join Date
    Nov 2006
    Location
    Nebraska USA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've figured it out.
    auth["apple-keyword"][1]
    Coldfusion Bracket notation
    http://www.coldfusionjedi.com/index....0D3E844309E4F7


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
  •