Ensure default is created afresh for each invocation
diff --git a/server/plugins/ldap.py b/server/plugins/ldap.py
index ecfcbe5..35fc076 100644
--- a/server/plugins/ldap.py
+++ b/server/plugins/ldap.py
@@ -29,7 +29,9 @@
ldapbase: str
groupbase: str
- def __init__(self, subyaml: dict = {}):
+ def __init__(self, subyaml: dict = None):
+ if dict is None: # default parameters persist between invocations; we don't want that here
+ dict = {}
self.uri = str(subyaml.get("uri", ""))
self.binddn = str(subyaml.get("binddn", ""))
self.bindpw = str(subyaml.get("bindpw", ""))