Web lists-archives.com

Re: [Samba] How to get users last Login time




On Tue, 23 Apr 2019 16:07:09 +0100
Fosiul Alam via samba <samba@xxxxxxxxxxxxxxx> 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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba