I am using Spring Boot/Spring Data Ldap.
When I query users I cannot read accountExpires attribute, even when the property is shown in GetADUser.
I tried something like this:
return readTemplate().search(query()
.base(ou)
.attributes(new String[]{"samaccountname", "givenName", "sn", "mail", "userAccountControl", "accountExpires", "memberof"})
.where("objectClass").is("person"), userExtractor);
I am sure the user has accountExpires property set, I tested with accountExpires and accountexpires (to check case-sensitivity), even I omitted attributes to read all attributes, but no chance, not all attributes are returned (well accountExpires is one of the missing ones).
How can I read that attribute?