pr8kerl / slackers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slackers

Find SSO slack users that should be deactivated according to an LDAP source

build

docker-compose run make <darwin/linux/windows>

configure

  • copy config.example to config.ini

  • edit the values in config.ini for your ldap/AD server

  • set a couple of secrets as environment variables

    SLACK_API_TOKEN="<my slack api token>"
    LDAP_PASSWD=SuperSecretSquirrel1
    
    export SLACK_API_TOKEN LDAP_PASSWD
    

run

./slackers --help
Usage: slackers [--version] [--help] <command> [<args>]

Available commands are:
    disabled    scan for all disabled AD users that are live slackers

                -purge ...let the app to kill the targeted users from Slack
                -o json ...outputs result in JSON that is machine friendly
                -o stdout ...outputs result in stdout (default)

    report      list all live slackers

About


Languages

Language:Go 90.4%Language:Makefile 6.9%Language:Dockerfile 2.7%