I am trying to fetch data for the field PasswordExpirationDate from Active Directory but getting this error
ldap3.core.exceptions.LDAPAttributeError: invalid attribute type PasswordExpirationDate
I am using below to connect to AD:
conn.search(search_base=base,
search_filter=filter,
search_scope=SUBTREE,
attributes=fields,
paged_size=self.page_size,
paged_cookie=cookie)
response = conn.response_to_json()
Let me know if anything else is needed.