I'm using pyad to manipulate AD users in python. I retrieve and use most of user attributes without problem, but when I retrieve accountExpires with:
exp_date = aduser.get_attribute('accountExpires',False)
exp_date
is a COMObject GetEx
. accountExpires
must be an int64
and I have no idea how to retrieve a long from this comobject.
Any help?