Skip to content

Commit

Permalink
getrole_ForeignSecurityPrincipals role type must be list
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Nov 19, 2024
1 parent 9c99993 commit 998b960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oc/auth/authservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4118,7 +4118,9 @@ def getrole_ForeignSecurityPrincipals( self, authinfo:AuthInfo, objectSid:str ):
return None

roles = query_foreingdistinguished.get('memberOf')
self.logger.debug( f"return {roles}" )
if isinstance(roles, str):
roles = [roles]
self.logger.debug( f"return {type(roles)} {roles}" )
return roles


Expand Down

0 comments on commit 998b960

Please sign in to comment.