Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # coding=utf-8 |
||
2 | from __future__ import absolute_import |
||
3 | |||
4 | from octoprint_auth_ldap.plugin import AuthLDAPPlugin |
||
5 | |||
6 | __plugin_name__ = "Auth LDAP" |
||
7 | __plugin_pythoncompat__ = ">=2.7,<4" |
||
8 | |||
9 | |||
10 | def __plugin_load__(): |
||
11 | # noinspection PyGlobalUndefined |
||
12 | global __plugin_implementation__ |
||
13 | __plugin_implementation__ = AuthLDAPPlugin() |
||
14 | |||
15 | # noinspection PyGlobalUndefined |
||
16 | global __plugin_hooks__ |
||
17 | __plugin_hooks__ = { |
||
18 | "octoprint.access.users.factory": __plugin_implementation__.ldap_user_factory, |
||
19 | "octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.check_config |
||
20 | } |
||
21 |