From 998b960441ba6be90dc1f771d726487f91de4cfb Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:01:50 +0100 Subject: [PATCH] getrole_ForeignSecurityPrincipals role type must be list --- oc/auth/authservice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oc/auth/authservice.py b/oc/auth/authservice.py index 1ead1e5..317b16a 100755 --- a/oc/auth/authservice.py +++ b/oc/auth/authservice.py @@ -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