Quantcast

CFLDAP - Attributes Empty

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CFLDAP - Attributes Empty

Matthew Harris
Hi,

I'm using the code below to query my ldap server, I am getting results, but the problem is all the values are empty strings, can anybody help?

<cfldap
 server="hc-dc1.halesowen.ac.uk"
action="query"
name="auth"
attributes="sAMAccountName,cn,ou"
start="DC=halesowen, DC=ac, DC=uk"
>
<cfdump var="#auth#">



This message is sent in confidence for the addressee only.
It may contain confidential or sensitive information. The
contents are not to be disclosed to anyone other than the
addressee. Unauthorised recipients are requested to preserve
this confidentiality and to advise us of any errors in transmission.
Thank you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208769
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CFLDAP - Attributes Empty

Douglas Knudsen
try applying the filter attribute, like filter="sn=smith"

DK

On 6/7/05, Matthew Harris <[hidden email]> wrote:

>
> Hi,
>
> I'm using the code below to query my ldap server, I am getting results,
> but the problem is all the values are empty strings, can anybody help?
>
> <cfldap
> server="hc-dc1.halesowen.ac.uk <http://hc-dc1.halesowen.ac.uk>"
> action="query"
> name="auth"
> attributes="sAMAccountName,cn,ou"
> start="DC=halesowen, DC=ac, DC=uk"
> >
> <cfdump var="#auth#">
>
>
>
> This message is sent in confidence for the addressee only.
> It may contain confidential or sensitive information. The
> contents are not to be disclosed to anyone other than the
> addressee. Unauthorised recipients are requested to preserve
> this confidentiality and to advise us of any errors in transmission.
> Thank you.
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208781
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CFLDAP - Attributes Empty

Matthew Harris
>try applying the filter attribute, like filter="sn=smith"
>
>DK
>
>On 6/7/05, Matthew Harris <[hidden email]> wrote:
>>

Thanks that works great.

Do you know how I easily get the groups that the member is in?

At the moment the memberof object contains:

CN=WEBMODS,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk, CN=LESSON_OBS,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk, CN=STAFF_GROUP,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk, CN=webtest,CN=Users,DC=halesowen,DC=ac,DC=uk, CN=Account Operators,CN=Builtin,DC=halesowen,DC=ac,DC=uk, CN=Administrators,CN=Builtin,DC=halesowen,DC=ac,DC=uk, CN=web updaters,CN=Users,DC=halesowen,DC=ac,DC=uk, CN=webmaster,CN=Users,DC=halesowen,DC=ac,DC=uk, CN=Domain Admins,CN=Users,DC=halesowen,DC=ac,DC=uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208794
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: CFLDAP - Attributes Empty

Michael Dawson-2
In reply to this post by Matthew Harris
I have a zip file that contains a CFC related to Active Directory tasks.

http://acelinkdev.evansville.edu/hoflists/ActiveDirectoryService.zip

There are a few functions that will query the memberOf attribute and
separate the group names into a query object.  Search and replace
"evansville" and "edu" in this file.  (This is an old CFC so forgive any
old coding techniques.)

M!ke

-----Original Message-----
From: Matt Harris [mailto:[hidden email]]
Sent: Tuesday, June 07, 2005 9:03 AM
To: CF-Talk
Subject: Re: CFLDAP - Attributes Empty

>try applying the filter attribute, like filter="sn=smith"
>
>DK
>
>On 6/7/05, Matthew Harris <[hidden email]> wrote:
>>

Thanks that works great.

Do you know how I easily get the groups that the member is in?

At the moment the memberof object contains:

CN=WEBMODS,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk,
CN=LESSON_OBS,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk,
CN=STAFF_GROUP,OU=Intranet Groups,DC=halesowen,DC=ac,DC=uk,
CN=webtest,CN=Users,DC=halesowen,DC=ac,DC=uk, CN=Account
Operators,CN=Builtin,DC=halesowen,DC=ac,DC=uk,
CN=Administrators,CN=Builtin,DC=halesowen,DC=ac,DC=uk, CN=web
updaters,CN=Users,DC=halesowen,DC=ac,DC=uk,
CN=webmaster,CN=Users,DC=halesowen,DC=ac,DC=uk, CN=Domain
Admins,CN=Users,DC=halesowen,DC=ac,DC=uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208801
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Loading...