[Samba] How to get users last Login time

Sven Schwedas sven.schwedas at tao.at
Wed Apr 24 09:43:04 UTC 2019

On 24.04.19 11:33, Rowland Penny via samba wrote:
> It actually says 'the lastLogontimeStamp will be 9-14 days behind the
> current date.'

Which is fine for OP, who only cares about a 90 day time frame?

> So what happens if a user has logged in 6 days ago and you want to
> delete users that have been inactive for over 10 days ?

You set ms-DS-Logon-Time-Sync-Interval to a more appropriate value, like
2 days.

…And hope that Samba honours that. If Samba doesn't support it, then
yes, you'll have to manually mess around with querying all DCs for this
particular edge case.

Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas, Systemadministrator
✉ sven.schwedas at tao.at | ☎ +43 680 301 7167
TAO Digital   | Teil der TAO Beratungs- & Management GmbH
Lendplatz 45  | FN 213999f/Klagenfurt, FB-Gericht Villach
A8020 Graz    | https://www.tao-digital.at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20190424/79db5f08/signature.sig>

More information about the samba mailing list