I wrote this app to display when a users password expires, it appears I am 
going of   the wrong field, can someone direct me to the right field or let me 
know if I am way of base.

Thanks,
Keith

<cftry>
  <cfldap server = "servername"  username="#usr#.domain"
   password="#pss#"
   action = "query"
   name = "getldapinfo"
   start = "dc=domain,dc=com"
   filter = "(&(objectclass=user)(samaccountname=#usr#))"
   attributes = "whenChanged,cn,o,title,mail,telephonenumber"
   sort = "cn ASC">
<cfcatch type="any">
<cfif FindNoCase("Invalid credentials", cfcatch.detail)>....


<cfset variables.myDateString = #left(getldapinfo.whenChanged, 8)#>
<cfset variables.myDateObject = #CreateDate(LEFT(variables.myDateString, 4), 
MID(variables.myDateString, 5, 2),RIGHT(variables.myDateString, 2))#>
<cfset variables.lastpasschange = #CREATEODBCDATE(myDateObject)#> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305698
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to