Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme cleanup #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#Deactivate and expire sessions of users not active in your LDAP instance
# Deactivate and expire sessions of users not active in your LDAP instance

##How to use with just docker.
## How to use with just docker.

- docker build -t slack_ldap_sync .
- docker run -it -e SLACK_MAX_DELETE_FAILSAFE="0.2" \
```
docker build -t slack_ldap_sync .
docker run -it -e SLACK_MAX_DELETE_FAILSAFE="0.2" \
-e SLACK_TOKEN="xoxp-exampletokenfoobarbazqux" \
-e SLACK_SUBDOMAIN="https://team.slack.com" \
-e SLACK_SYNC_RUN_INTERVAL="1800" \
Expand All @@ -13,12 +14,19 @@
-e AD_BINDDN="foo\user_name" \
-e AD_BINDPW="password" \
-e AD_SEARCHREQ_ATTRLIST='["mail", "active_employee_attribute=True"]' \
-e AD_EMAIL_ATTRIBUTE="mail"
-e AD_EMAIL_ATTRIBUTE="mail" slack_ldap_sync /src/slack_ldap_sync.py
```


##How to use with docker/openshift
## How to use with docker/openshift

- edit the source.example and set the variables how you want
- oc new-project slack-ldap-sync
- oc create secret generic slack-ldap-secrets --from-file=source.example
- run ./deploy.sh to deploy to openshift
- edit the `source.example` file and set the variables how you want

- then run:

```
oc new-project slack-ldap-sync
oc create secret generic slack-ldap-secrets --from-file=source.example
```

- run `./deploy.sh` to deploy to openshift