Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Dec 16, 2024
1 parent 2642cc2 commit c6416ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# dstype of None means standalone server
case None:
conf = STANDALONE_ACCOUNT
case DSType.AD.name:
case DSType.AD.value:
conf = AD_ACCOUNT
case DSType.LDAP.name | DSType.IPA.name:
case DSType.LDAP.value | DSType.IPA.value:
conf = SSS_ACCOUNT
case _:
raise TypeError(f'{dstype}: unknown DSType')
Expand Down
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/etc_files/pam.d/common-auth.mako
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# dstype of None means standalone server
case None:
conf = STANDALONE_AUTH
case DSType.AD.name:
case DSType.AD.value:
conf = AD_AUTH
case DSType.LDAP.name | DSType.IPA.name:
case DSType.LDAP.value | DSType.IPA.value:
conf = SSS_AUTH
case _:
raise TypeError(f'{dstype}: unknown DSType')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# dstype of None means standalone server
case None:
conf = STANDALONE_SESSION
case DSType.AD.name:
case DSType.AD.value:
conf = AD_SESSION
case DSType.LDAP.name | DSType.IPA.name:
case DSType.LDAP.value | DSType.IPA.value:
conf = SSS_SESSION
case _:
raise TypeError(f'{dstype}: unknown DSType')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# dstype of None means standalone server
case None:
conf = STANDALONE_SESSION
case DSType.AD.name:
case DSType.AD.value:
conf = AD_SESSION
case DSType.LDAP.name | DSType.IPA.name:
case DSType.LDAP.value | DSType.IPA.value:
conf = SSS_SESSION
case _:
raise TypeError(f'{dstype}: unknown DSType')
Expand Down

0 comments on commit c6416ef

Please sign in to comment.