Sebastian Arcus
2024-Aug-30 16:12 UTC
[Samba] Authentication hook to run extra checks before allowing Windows login
Hello all. Does Samba in AD mode provide any sort hooks to run a script when a user attempts to login, before replying to the authentication attempt? I need to prevent certain users from being logged in from more than one machine at the same time, and a script to check the username or account against a previously saved record of which machine they last logged in from and reject the authentication attempt might be able to accomplish this. Any ideas much appreciated. Sebastian
spindles seven
2024-Aug-30 17:51 UTC
[Samba] Authentication hook to run extra checks before allowing Windows login
On 30 August 2024 17:13 Sebastian Arcus wrote:> > Hello all. Does Samba in AD mode provide any sort hooks to run a script > when a user attempts to login, before replying to the authentication > attempt? I need to prevent certain users from being logged in from more > than one machine at the same time, and a script to check the username or > account against a previously saved record of which machine they last > logged in from and reject the authentication attempt might be able to > accomplish this. Any ideas much appreciated. > > SebastianI don't think samba has any means to do this, and it's not built-in to AD, but take a look at this article for Windows client machines: https://learn.microsoft.com/en-us/archive/technet-wiki/37839.active-directory-limit-concurrent-user-logins?WT.mc_id=email HTH, Spindles7
Possibly Parallel Threads
- Authentication hook to run extra checks before allowing Windows login
- Transfer GPO's between servers on different domains?
- Problems with inconsistent ACL inheritance and permissions after Samba upgrade
- pop 110/995, imap 143/993 ?
- vfs_recycle disables permissions inheritance on AD DC shares