Commas are used to separate attributes/values from other
attributes/values.  For example,
"sAMAccountName=md40,givenName=Michael".

A DN is loaded with commas, so you need to specify a different
separator.  I commonly use the pipe "|" character as the separator.
Then, your attributes would be as such:
"sAMAccountName=md40|givenName=Michael".

But, your DN will still contain commas which LDAP will *not* consider to
be the delimiter anymore.

Just add:

delimiter="|"

to your CFLDAP query and you should be good to go.

M!ke

-----Original Message-----
From: Charles E. Heizer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 11:15 AM
To: CF-Talk
Subject: CFLDAP Help needed...

Hello,
I really hoping that someone can help me out with this. I'm trying to  
delete a attribute with a specific value. The value happens to be a   
dn. Every time I try to delete I get an error. But if I add another
attribute and just a plain value like "Food" or something it deletes
just fine, it's only when I have a DN like string that it complains.

thanks,
- Charles


Here is my code ...

<cfldap
        server="#variables.settings.vLLNLLDAPAddr#"
        username="#variables.settings.sysacct#"
        password="#Decrypt(settings.adp,settings.seeds)#"
        port = "636"
        secure="CFSSL_BASIC"
        action="modify"
        modifyType="delete"
        dn="CN=angryman, OU=Computers, OU=SMSG, OU=the-lab, OU=llnl,
OU=gov, OU=Active Directory, o=services"
        attributes="asdColMemberOf=CN=ceh, OU=_ASD_COLLECTIONS_,
OU=SMSG, OU=THE-LAB, OU=LLNL, OU=GOV, OU=ACTIVE DIRECTORY, O=SERVICES"
 >

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:218976
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to