LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ldapsearch to get lastlogintime info (https://www.linuxquestions.org/questions/linux-general-1/ldapsearch-to-get-lastlogintime-info-4175604771/)

oliveoyl 04-27-2017 10:29 AM

ldapsearch to get lastlogintime info
 
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
dn: uid=testuser,ou=People,dc=testdomain,dc=test,dc=com
lastlogintime: 20170115162807Z

I'm running 389 ds-1.2.2 on CentOS 6.


All times are GMT -5. The time now is 10:13 PM.