Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

LDAP output issue

$
0
0

I've been banging my head on the desk this morning looking at this code.  I don't know what I'm doing wrong. I can cfdump the data I want, but then I can't output it with cfoutput.  Here's the code:

 

<cfldap action="QUERY"

                       name="userSearch"

                       attributes="*"

                       start="ou=people,dc=myldapserver,dc=com"

                       scope="SUBTREE"

                       server="myldapserver.com"

                       port="xxxx"

                       filter="#filter#"

                       secure="CFSSL_BASIC">

                      

<cfdump var="#userSearch#" >

<cfoutput query="userSearch">#givenName#</cfoutput>

 

The cfdump returns the following: 

query
NAMEVALUE
1uid username
2objectClass comPerson
3givenName Jane
4sn Doe
5cn Jane Doe

 

The cfoutput gives this error message: Variable GIVENNAME is undefined.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>