[Samba] How to get users last Login time

Rowland Penny rpenny at samba.org
Tue Apr 23 15:32:37 UTC 2019


On Tue, 23 Apr 2019 16:07:09 +0100
Fosiul Alam via samba <samba at lists.samba.org> wrote:

> Hi
> We are using SAMBA4 As Active Directory We have a requirement to
> a) find out which user did not logging for more then 90 days  and
> Delete those user by using script
> 
> I am just wondering, is there any command to check in Samba4 to get
> user Last login time  ?
> 

You are nearly there, investigate the AD 'lastLogon' attribute,
there is a slight problem though, you will have to search every DC, this
attribute isn't replicated.

Rowland



More information about the samba mailing list