Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
devrimyatar authored and yurem committed Aug 12, 2024
1 parent 6ef7ab0 commit 42f34b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup_app/utils/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def set_configuration(self, component, value, dn='ou=configuration,o=gluu'):
self.cbm.exec_query(n1ql)


def dn_exists(self, dn):
def dn_exists(self, dn, check_only=False):
mapping_location = self.get_backend_location_for_dn(dn)

if mapping_location in (BackendTypes.MYSQL, BackendTypes.PGSQL):
Expand All @@ -429,6 +429,8 @@ def dn_exists(self, dn):
elif mapping_location == BackendTypes.LDAP:
base.logIt("Querying LDAP for dn {}".format(dn))
result = self.ldap_conn.search(search_base=dn, search_filter='(objectClass=*)', search_scope=ldap3.BASE, attributes=['*'])
if check_only:
return result
if result:
key_doc = ldif_utils.get_document_from_entry(self.ldap_conn.response[0]['dn'], self.ldap_conn.response[0]['attributes'])
if key_doc:
Expand Down
2 changes: 1 addition & 1 deletion templates/fido2/static-conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configuration":"ou=configuration,o=gluu",
"people":"ou=people,o=gluu",
"scripts": "ou=scripts,o=gluu",
"attributes":"ou=attributes,o=jans",
"attributes":"ou=attributes,o=gluu",
"sessions":"ou=sessions,o=gluu",
"fido2Attestation":"ou=fido2_register,ou=fido2,o=gluu",
"fido2Assertion":"ou=fido2_auth,ou=fido2,o=gluu",
Expand Down

0 comments on commit 42f34b5

Please sign in to comment.