noggin icon indicating copy to clipboard operation
noggin copied to clipboard

noggin-dev cannot connect to tinystage IPA

Open ryanlerch opened this issue 11 months ago • 0 comments

after the recent changes, noggin dev cannot connect to the tinystage IPA, since it is looking it up in the DNS and not finding it.

i am running the following patch to get it working on my system, but i dont think we want to do this in the actual code, right?

diff --git a/noggin/security/ipa.py b/noggin/security/ipa.py
index 447b43f..3a51687 100644
--- a/noggin/security/ipa.py
+++ b/noggin/security/ipa.py
@@ -141,7 +141,10 @@ def choose_server(app, session=None):
             for record in srvlookup.lookup('ldap', domain=app.config["FREEIPA_DOMAIN"])
         ]
     except srvlookup.SRVQueryFailure:
-        available_servers = []
+        if app.config["FREEIPA_DOMAIN"] == "tinystage.test":
+            available_servers = ["ipa.tinystage.test"]
+        else:
+            available_servers = []
     if server is None or server not in available_servers:
         try:
             server = available_servers[0]

ryanlerch avatar Feb 28 '24 01:02 ryanlerch