I am looking for a bash command to query my LDAPv3 server from the client side in order to find the current user's last logon time.


Will this do the job for you?

ldapsearch -LLL -x -h <hostaddr> -Z -D cn=admin,o=local -W  "(&(objectclass=Person))" logintime 
  • We like answers to be more than just a single line. Ideally, you want to explain why your answer is *right." It also helps to provide links, citations, and/or screen shots. Please review our help section How to Answer on writing good answers to questions – Allan Jul 28 '16 at 0:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .