aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-06-26 19:19:23 -0400
committerB. Stack <bgstack15@gmail.com>2023-06-26 19:19:23 -0400
commitffb0851214105156e3e41d46f0212b2e7babdb0f (patch)
treea6617e6065b3ae83c1bc1fe8d4b137fdfbcae00c
parentadd ldap auth (diff)
downloadnewspipe-ffb0851214105156e3e41d46f0212b2e7babdb0f.tar.gz
newspipe-ffb0851214105156e3e41d46f0212b2e7babdb0f.tar.bz2
newspipe-ffb0851214105156e3e41d46f0212b2e7babdb0f.zip
document LDAP_URI betterldap-auth
-rw-r--r--instance/config.py2
-rw-r--r--instance/sqlite.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/instance/config.py b/instance/config.py
index 81453d84..4eb7ea82 100644
--- a/instance/config.py
+++ b/instance/config.py
@@ -74,6 +74,8 @@ SELF_REGISTRATION = True
# Ldap, optional
LDAP_ENABLED = False
+# LDAP_URI will automatically try the _ldap._tcp lookups like for a kerberos domain but
+# will fall back to this exact domain (server) name if such a TXT record is not found.
LDAP_URI = "ldaps://ipa.internal.com:636"
LDAP_USER_BASE = "cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
LDAP_GROUP_BASE = "cn=groups,cn=accounts,dc=ipa,dc=internal,dc=com"
diff --git a/instance/sqlite.py b/instance/sqlite.py
index 2fd2bed3..abc7cdb9 100644
--- a/instance/sqlite.py
+++ b/instance/sqlite.py
@@ -67,6 +67,8 @@ SQLALCHEMY_TRACK_MODIFICATIONS = False
# Ldap, optional
LDAP_ENABLED = False
+# LDAP_URI will automatically try the _ldap._tcp lookups like for a kerberos domain but
+# will fall back to this exact domain (server) name if such a TXT record is not found.
LDAP_URI = "ldaps://ipa.internal.com:636"
LDAP_USER_BASE = "cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
LDAP_GROUP_BASE = "cn=groups,cn=accounts,dc=ipa,dc=internal,dc=com"
bgstack15