I'm trying the following code to determine when a user last changed their password:
 Code:
; LDAPQuery(WHAT, [FROM], [FILTER], [ORDER BY], [SCOPE], [USER], [PASSWORD]) 
$aData = fnLDAPQuery('pwdLastSet', 'LDAP://CN=TestUser,CN=Users,DC=corporate,DC=libgo', '(objectClass=User)')
@SERROR ?
UBound($aData) ' elements' ?
For Each $ in $aData
 $ ?
Next

I am specifying a valid user name in "Last\, First" format. If my "WHAT" is "Name", it works, but if I try the "pwdLastSet", I get an IDispatch Pointer error. According to MSDN, it's supposed to return a large int, holding the number of ms since 1/1/1601. I can't figure out why I'm getting the IDispatch Pointer error - anyone have any ideas?

Thanks,

Glenn

PS - this is Christopher Shilt's "fnLDAPQuery"
_________________________
Actually I am a Rocket Scientist! \:D