Skip to content

Commit

Permalink
Update LDAP search command options in get-password-policy and get-con…
Browse files Browse the repository at this point in the history
…figuration handlers
  • Loading branch information
stephdl committed May 2, 2024
1 parent 32f52a4 commit 96fb93b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SECONDS_PER_DAY = 86400
ldap_suffix = os.environ["LDAP_SUFFIX"]

ldapsearch_proc = subprocess.run(["podman", "exec", "openldap",
"ldapsearch", "-LLL", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
"ldapsearch", "-LLLo", "ldif-wrap=no", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
], text=True, capture_output=True, check=True)


Expand Down
2 changes: 1 addition & 1 deletion imageroot/api-moduled/handlers/get-configuration/post
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ldap_suffix = os.environ["LDAP_SUFFIX"]

# PASSWORD POLICY
ldapsearch_proc = subprocess.run(["podman", "exec", "openldap",
"ldapsearch", "-LLL", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
"ldapsearch", "-LLLo", "ldif-wrap=no", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
], text=True, capture_output=True, check=True)

ppolicy = {
Expand Down
2 changes: 1 addition & 1 deletion imageroot/api-moduled/handlers/get-password-policy/post
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SECONDS_PER_DAY = 86400
ldap_suffix = os.environ["LDAP_SUFFIX"]

ldapsearch_proc = subprocess.run(["podman", "exec", "openldap",
"ldapsearch", "-LLL", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
"ldapsearch", "-LLLo", "ldif-wrap=no", "-b", f"cn=default,ou=PPolicy,{ldap_suffix}", "-s", "base"
], text=True, capture_output=True, check=True)


Expand Down

0 comments on commit 96fb93b

Please sign in to comment.