Skip to content

Phillipmartin/pam_hipchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pam_hipchat

Summary

This module sends a notification to a hipchat room after a successful login.

Build

  • autoreconf -i (to generate the autoconf files)
  • ./configure (installs to /lib/security, use --with-pam-dir=DIR to change that)
  • make

Install

  • sudo make install

Configure

This module is meant to be used as a session module. That ensures that the user in question has been authenticated and authorized. I suggest you configure it in the specific service configs that you want to notify, not in common-session or the like. Adding a like like the below to 'ssh' or 'login', etc will work just fine.

session optional pam_hipchat.so server=https://<your team>.hipchat.com/v2/room/<room ID or name>/notification auth_token=<room auth token>

The full list of config items is:

  • server= the URL to the notification API for the room you want
  • auth_token= the room notification authentication token
  • notify wheather or not to notify the room with the mesage (if you include this option, notification will happen, if you don't it won't)
  • from= the username to use when the notification happens. If this needs to include a space you need to enclose the whole thing in brackets, a la [from=PAM Notifier]

The actual notification is currently hard coded. You can change it in the code if you really need to.

Future Plans

  • Add a sane way to template the notification
  • add message color option
  • Add the ability to use a hipchat card instead of just text
  • better debugging and warning
  • respect PAM_SILENT (although we don't log anything right now...so I guess we sort of already do?)
  • Add tests
  • Build/publish RPM and DEB as well as example puppet and chef configs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages