Greetings, folks...

Been searching for a solution for this issue and the only thing I've found is several years old and no longer works, so I'm bringing it to the community for advice.

You'll first have to please forgive me -- I don't know KiX well... I'm a C/PHP programmer that has had this Systems task tossed into my lap, so I may be making rudimentary errors in the language.

I'm using an LDAP function library to pull user information to validate information on our file server. Part of what I need to do is determine when their password was last set so I can see if their account isn't being utilized.

I'm attempting to pull the timestamp out of the 'pwdlastset' field:

 Code:
$aAttributes = "pwdlastset", "name"
$sADsPath = "LDAP://mydomain.com/OU=Domain Users,DC=mydomain,DC=com"
$strFilter = "(&(objectCategory=person)(objectClass=user)(cn=rob))"  
 
$aResults = fnLDAPQuery($aAttributes,$sADsPath,$strFilter,"Name")  
@ERROR " | " @SERROR ?  

For $c = 0 to Ubound($aResults) 
	"Content: " $aResults[$c,0]
Next 


This yields me an IDispatch error -- and here's where my lack of the knowledge is killing me. I'm almost sure it's an issue with the object being returned but, quite frankly, I can't figure out how to deal with it. On top of that, I believe the data I'm looking for is an Integer8 Date...

Normally, I'd have time to actually learn a language before I was tasking with using it; however, I'm running on a tight deadline and would appreciate any advice or counsel anyone could offer.

Regards,
Rob