On Thu, 2017-04-27 at 19:02 +0000, Tus wrote:
I'm looking to query ldap to get all uid's that have lastlogintime>90
days. I'm able to get lastlogintime using the command below. What is the
the syntax to get it to search all users with lastlogintime>90 days?
# ldapsearch -xLLL uid=testuser "(objectclass=*)" lastlogintime
I'm running 389 ds-1.2.2 on CentOS 6.
I think you should be able to do:
You will have to work out the "date" of 90 days ago to achieve this
though. Remember the timestamp is in UTC.
Hope that helps!
Red Hat, Australia/Brisbane