tags:

views:

49

answers:

1

Can I keep two records in LDAP in sync using CFTHREAD?

I need to check if a record is still valid by looking up a cn elsewhere. So if it is invalid I want to delete it. This means getting all current records of the type I want, deleting them all and adding them all again (minus the one I dont want)

A: 

Are you using sql server anywhere? You can create linked servers to ldap servers using the adsi provider.

Then you can use SQL to do this maintenance. I find doing ldap queries this way a little easier and more flexible than the cfldap tag.

Only caveat since you are updating is providing the proper permissions to the ldap server to do the updates.

Byron Mann [email protected] [email protected] Software Architect hosting.com | hostmysite.com http://www.hostmysite.com/?utm_source=bb

Byron70