Users created on AD can login to Linux with a password. I would like to replace this password login with ssh-key. So far, I've made a custom attribute and placed the public key in it and able to fetch it on Linux with a script. I would like to put this key in the /home/user/.ssh/authorised_key whenever a new user is created.
Is there an event or some config file that I can use to trigger my script?
Note: SSSD is creating the user and home directory whenever a user login for the first time.