cdk/cdk-domainless-mode/test-scripts/add_delete_kerberos_leases.py [33:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                credspec_contents = f"""{{
                    "CmsPlugins": ["ActiveDirectory"],
                    "DomainJoinConfig": {{
                        "Sid": "S-1-5-21-2725122404-4129967127-2630707939",
                        "MachineAccountName": "WebApp0{i}",
                        "Guid": "e96e0e09-9305-462f-9e44-8a8179722897",
                        "DnsTreeName": "{directory_name}",
                        "DnsName": "{directory_name}",
                        "NetBiosName": "{netbios_name}"
                    }},
                    "ActiveDirectoryConfig": {{
                        "GroupManagedServiceAccounts": [
                            {{"Name": "WebApp0{i}", "Scope": "{directory_name}"}},
                            {{"Name": "WebApp0{i}", "Scope": "{netbios_name}"}}
                        ],
                        "HostAccountConfig": {{
                            "PortableCcgVersion": "1",
                            "PluginGUID": "{{GDMA0342-266A-4D1P-831J-20990E82944F}}",
                            "PluginInput": {{
                                "CredentialArn": "aws/directoryservice/contoso/gmsa"
                            }}
                        }}
                    }}
                }}"""

                contents = [credspec_contents]
                response = stub.AddNonDomainJoinedKerberosLease(
                    credentialsfetcher_pb2.CreateNonDomainJoinedKerberosLeaseRequest(
                        credspec_contents=contents,
                        username=username,
                        password=password,
                        domain=directory_name
                    )
                )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cdk/cdk-domainless-mode/test-scripts/create_non_domain_joined_kerberos_leases.py [25:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            credspec_contents = f"""{{
                                "CmsPlugins": ["ActiveDirectory"],
                                "DomainJoinConfig": {{
                                    "Sid": "S-1-5-21-2725122404-4129967127-2630707939",
                                    "MachineAccountName": "WebApp0{i}",
                                    "Guid": "e96e0e09-9305-462f-9e44-8a8179722897",
                                    "DnsTreeName": "{directory_name}",
                                    "DnsName": "{directory_name}",
                                    "NetBiosName": "{netbios_name}"
                                }},
                                "ActiveDirectoryConfig": {{
                                    "GroupManagedServiceAccounts": [
                                        {{"Name": "WebApp0{i}", "Scope": "{directory_name}"}},
                                        {{"Name": "WebApp0{i}", "Scope": "{netbios_name}"}}
                                    ],
                                    "HostAccountConfig": {{
                                        "PortableCcgVersion": "1",
                                        "PluginGUID": "{{GDMA0342-266A-4D1P-831J-20990E82944F}}",
                                        "PluginInput": {{
                                            "CredentialArn": "aws/directoryservice/contoso/gmsa"
                                        }}
                                    }}
                                }}
                            }}"""
            contents = [credspec_contents]
            response = stub.AddNonDomainJoinedKerberosLease(
                credentialsfetcher_pb2.CreateNonDomainJoinedKerberosLeaseRequest(
                    credspec_contents=contents,
                    username=username,
                    password=password,
                    domain=directory_name
                )
            )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



