Re: ldapsearch to get lastlogintime info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



William Brown wrote:
> On Thu, 2017-04-27 at 19:02 +0000, Tus wrote:
>> Hello 389-users:
>>
>> 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.
> 
> I think you should be able to do:
> 
> '(&(objectClass=*)(lastlogintime>=20170115162807Z))'

I think you meant

(lastlogintime<=20170115162807Z)

to express "last login before 90 days in the past.

Ciao, Michael.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux