Git Product home page Git Product logo

l2s's Introduction

L2S

Logins to Slack. A simple PAM script that sends notifications to Slack at the beginning and end of a login session.

    Slack screenshot

Currently there is only support for Debian. Other Debian derived distros might work out-of-the-box but have not been tested. Pull requests for wider support are welcome.

Installation & usage

Run make to build the Debian package. Once installed configure the reported hostname and the incoming webhook url for Slack in /etc/l2s.conf:

[l2s]
host     = webserver1
services = sshd,sudo,su
botname  = Login
icon     = :desktop_computer:
url      = https://slack.hooks.url/something/something

That's it for Debian 8. For Debian 7, append the following line to both /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive:

session optional pam_script.so

Disclaimer

Slack should not be used in place of a real audit log. This script was merely made for convenience. Messages to Slack are easily forged if the webhook URL is known. Furthermore, there is no redundancy handling in place should the Slack API endpoint be down.

License

BSD 2-Clause. See the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.