Slack LAPS Slash Command

  • April 6, 2017
  • AD, LAPS, ...

Having implemented LAPS (Local Administrator Password Solution) on all of our PCs there became a need to access the password when in the field away from a PC with easy access to AD / the LAPS GUI.

As we use Slack for primary out-of-office communications, it made sense to create a Slack Slash Command to return the LAPS Password.

It is accessed by using  /password PCNAME  and returns the password to the user who requested it. PC Name isn’t returned so passwords cannot be easily matched with PC names.

The slash command uses PHP and its inbuilt LDAP module. Slash commands are configured from the Slash Command Configuration page.

Code below. It’s very simplistic but does the job.

 




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *