aboutsummaryrefslogtreecommitdiff
path: root/instance
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2023-06-27 23:07:01 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2023-06-27 23:07:01 +0200
commit7a2cd5baed73e1634b83ce8d627ef275c993df7a (patch)
treeb3f27d46f4b01cab3f2444e695408041e965ac74 /instance
parent[PATCH] ldap-auth (diff)
downloadnewspipe-7a2cd5baed73e1634b83ce8d627ef275c993df7a.tar.gz
newspipe-7a2cd5baed73e1634b83ce8d627ef275c993df7a.tar.bz2
newspipe-7a2cd5baed73e1634b83ce8d627ef275c993df7a.zip
chg: [flake8] Adresses some flake8 warnings.
Diffstat (limited to 'instance')
-rw-r--r--instance/config.py3
-rw-r--r--instance/sqlite.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/instance/config.py b/instance/config.py
index e3362694..42e624cb 100644
--- a/instance/config.py
+++ b/instance/config.py
@@ -85,7 +85,8 @@ LDAP_USER_ATTRIB_MEMBEROF = "memberof"
LDAP_GROUP_DISPLAY_ATTRIB = "cn"
LDAP_BIND_DN = "uid=sampleuser,cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
LDAP_BIND_PASSWORD = "examplepassword"
-# Additional filter to restrict user lookup. If not equivalent to False (e.g., undefined), will be logical-anded to the user-match-attribute search filter.
+# Additional filter to restrict user lookup. If not equivalent to False
+# (e.g., undefined), will be logical-anded to the user-match-attribute search filter.
LDAP_FILTER = (
"(memberOf=cn=newspipe-users,cn=groups,cn=accounts,dc=ipa,dc=internal,dc=com)"
)
diff --git a/instance/sqlite.py b/instance/sqlite.py
index de6aab23..1f8d6206 100644
--- a/instance/sqlite.py
+++ b/instance/sqlite.py
@@ -78,7 +78,8 @@ LDAP_USER_ATTRIB_MEMBEROF = "memberof"
LDAP_GROUP_DISPLAY_ATTRIB = "cn"
LDAP_BIND_DN = "uid=sampleuser,cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
LDAP_BIND_PASSWORD = "examplepassword"
-# Additional filter to restrict user lookup. If not equivalent to False (e.g., undefined), will be logical-anded to the user-match-attribute search filter.
+# Additional filter to restrict user lookup. If not equivalent to False
+# (e.g., undefined), will be logical-anded to the user-match-attribute search filter.
LDAP_FILTER = (
"(memberOf=cn=newspipe-users,cn=groups,cn=accounts,dc=ipa,dc=internal,dc=com)"
)
bgstack15