Skip to content

Commit deb4057

Browse files
author
Himani Anil Deshpande
committed
[Bug] Use DomainReadOnlyUser from the input provided in config
* Making the function case-sensitive * making the function stricter as `cn` can be part of username
1 parent 03ff273 commit deb4057

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbooks/aws-parallelcluster-environment/libraries/directory_service_utils.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def parse_arn(arn_string)
2121
def _get_cn_subparam(param)
2222
tokens = param.split(",") unless param.blank?
2323
tokens.each do |token|
24-
return token if token.include? "cn"
24+
['cn=', 'CN='].each do |param_search|
25+
return token if token.include? param_search
26+
end
2527
end
2628
""
2729
end

0 commit comments

Comments
 (0)