2017-11-26 22:14:46 +00:00
|
|
|
OctoPrint LDAP auth Plugin
|
2015-01-27 11:58:19 +00:00
|
|
|
=========================
|
2015-01-27 11:25:05 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
This plugin allow users to be connected using an LDAP server.
|
|
|
|
This system works
|
2015-01-27 11:25:05 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
#### Details
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
When you try to login, OctoPrint search for user in this local database (users.yaml)
|
|
|
|
- If it found a user, check if this user exists also on LDAP
|
|
|
|
- If user exists on LDAP, use LDAP bind() to check login / password
|
|
|
|
- If user not exists on LDAP, use native password system to check it
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
======================================
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
- If it not found a user in local database, try to connect directly on LDAP
|
|
|
|
- If login on LDAP il OK, a new local user is added with role "user" and a random password (password should never be used)
|
|
|
|
- User is connected
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
======================================
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
- An admin (default user for exemple), could change a user permissions or account state.
|
|
|
|
- Password of LDAP users can't be changed
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
#### Configuration
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
You could configure LDAP server in plugin config, or manually in config.yaml
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
```
|
|
|
|
accessControl:
|
|
|
|
ldap_uri: ldaps://ldap.server.com/
|
|
|
|
ldap_tls_reqcert: demand
|
|
|
|
ldap_search_base: dc=server,dc=com
|
2018-01-28 17:13:38 +00:00
|
|
|
groups: TheGroupName
|
2015-01-27 12:00:37 +00:00
|
|
|
```
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2018-01-28 17:13:38 +00:00
|
|
|
#### Groups
|
|
|
|
- You can list multiple groups via comma seperation: Group1, Group2, Group3.
|
|
|
|
- Leaving blank will skip a group check.
|
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
#### Installation
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:16:28 +00:00
|
|
|
You can install it using ```pip install https://github.com/gillg/OctoPrint-LDAP/archive/master.zip```
|
2015-01-27 11:58:19 +00:00
|
|
|
|
2017-11-26 22:14:46 +00:00
|
|
|
Or with plugin manager into OctoPrint
|