I've got a VB program that goes out and gets an LDAP record for a user but I'm having problems getting the pwdLastSet date to dump into a text box. I have all the pieces in place but I think the value is tripping me up. When I try and put the results in a text box I get Conversion from type '_ComObject' to type 'String' is not valid. I have tried all sorts of combinations and I can't seem to figure out the trick here.
ldap_company.Text = oResult.GetDirectoryEntry().Properties("company").Value ldap_uceduPersonPrimaryAffiliation.Text = oResult.GetDirectoryEntry().Properties("eduPersonPrimaryAffiliation").Value
ldap_pwdLastSet.Text = oResult.GetDirectoryEntry().Properties("pwdLastSet").Value