Skip to content

This runs a python script which reads all the People in LDAP. Then it reads all the active slack users. If any active slack users don't exist in LDAP, it expires their sessions and deactivates them. If any slack users have their LDAP user attribute loginShell set to '/bin/false', it also expires their session and deactivates them. (It skips gues…

License

Notifications You must be signed in to change notification settings

JohnTheodore/slack_ldap_sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Deactivate and expire sessions of users not active in your LDAP instance

##How to use

  • docker build -t slack_ldap_sync .
  • docker run -it -e SLACK_TOKEN='xoxp-123456'
    -e SLACK_SUBDOMAIN='https://example.slack.com'
    -e LDAP_USER='uid=slack_ldap_sync,ou=Services,dc=example,dc=com'
    -e LDAP_PASS=''
    -e LDAP_HOST='ldap.example.com'
    -e LDAP_PEOPLE_OU='ou=People,dc=example,dc=com' slack_ldap_sync

About

This runs a python script which reads all the People in LDAP. Then it reads all the active slack users. If any active slack users don't exist in LDAP, it expires their sessions and deactivates them. If any slack users have their LDAP user attribute loginShell set to '/bin/false', it also expires their session and deactivates them. (It skips gues…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%