I have a working LdapConnection object that I can use to bind and search with, but I am quite new to UnboundID LDAP SDK and was wondering if there is a way for me to find information about the users account from an LDAP search:
I currently use LdapConnection to search for usernames like this:
SearchResult searchResult = ldapConnection.search(configuration.sBase, scope, filter)
Is there a way I can use this connection to find expired/disabled accounts?
So it looks like expired users are found with this:
(&(objectCategory=Person)(objectClass=User)(!accountExpires=0)(!accountExpires=9223372036854775807))
can I make a filter with this string to search ldap and return all users with the LdapConnection object from unboundID Ldap?
Thanks