LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2017, 10:29 AM   #1
oliveoyl
Member
 
Registered: Sep 2016
Posts: 42

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to ldapsearch byran cheung Linux - Newbie 2 02-26-2015 09:23 AM
ldapsearch vs Apache DS LDAP browser (ldapsearch not working properly) eyemole80 Linux - Server 0 02-18-2014 02:45 PM
ldapsearch help nano101 Linux - Software 1 04-24-2012 08:38 AM
Trouble with ldapsearch and AD rcrook89 Linux - Newbie 3 06-01-2011 07:26 PM
ldapsearch cmontr Programming 4 11-15-2007 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration