Open Directory network user last logon time 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 &lt;hostaddr&gt; -Z -D cn=admin,o=local -W  "(&amp;(objectclass=Person))" logintime