Thanks, Nathan.

I was having problems with the sort attribute and forgot to put it back
to Arguments.SortOrder.  Let me go off-topic for a minute.

I think I found a bug with the attributes.  The following line is my
method call:

objAD.LDAPQuery("dc=evansville, dc=edu", "SubTree", "name, cn, dn,
memberOf", "(&(objectClass=User)(Name=#ObjectName#))")

In my component, I have the CFLDAP SORT attribute hard coded to
"memberOf".  When I run this page, it works great.

However, when I put the CFLDAP SORT attribute back to
#Arguments.SortOrder" and use the following code, it fails.  (Note that
I added the "memberOf" as the sort order.

objAD.LDAPQuery("dc=evansville, dc=edu", "SubTree", "name, cn, dn,
memberOf", "(&(objectClass=User)(Name=#ObjectName#))", "memberOf")

In a nutshell:
1. I can hard-code the value "memberOf" in the CFLDAP SORT attribute and
it works.
2. I can specify other values such as "dn", "name", etc in the CFLDAP
SORT attributes and it works.
3. When I specify "memberOf" in the method call, it fails.

I see no real pattern.

Anyway, back to the CFC issues...

I added the default sort order and delimiters.

Are you suggesting something like this?

init("server1,server2,server3","port","timeout","username","password")
Also assuming defaults on "port" and "timeout".

Thanks for taking the time to look at this code.

MAD

-----Original Message-----
From: Nathan Dintenfass [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 09, 2003 8:07 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Component Critique Wanted


Looks good.

One thing to consider for making it more flexible would be building an
init() method that takes a list (or array) of servers and that login
info, etc. and stores that as an instance variable (perhaps even using
an
addServer() method).  That way this component will be abstracted from
the specifics of your environment.  You could then loop through the
servers passed in, which would tighten up the code a bit.

The only other comment is that you seem to use the Arguments. prefix on
all your arguments except sortOrder.

I'd also think that it might be nice to have a default SortOrder and
Separator rather than needing to pass those in every time.

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to