Example #1
0
kdb5_util_path = "kdb5_util"

kdamin_pid_path = "/var/run/kadmind.pid"
krb5kdc_pid_path = "/var/run/krb5kdc.pid"

smoke_test_principal = None
smoke_test_keytab_file = None

# If a test keytab file is available, simply use it


if config is not None:
    command_params = get_property_value(config, "commandParams")
    if command_params is not None:
        keytab_details = get_unstructured_data(command_params, "keytab")

    configurations = get_property_value(config, "configurations")
    if configurations is not None:
        cluster_env = get_property_value(configurations, "cluster-env")

        if cluster_env is not None:
            smoke_test_principal = get_property_value(cluster_env, "smokeuser")
            smoke_test_keytab_file = get_property_value(cluster_env, "smokeuser_keytab")

            default_group = get_property_value(cluster_env, "user_group")

            if default_group is None:
                default_group = get_property_value(cluster_env, "user-group")

    cluster_host_info = get_property_value(config, "clusterHostInfo")
Example #2
0
        # ##############################################################################################
        kdcdefaults_kdc_ports = '88'
        kdcdefaults_kdc_tcp_ports = '88'

        kadm5_acl_template = None

        kadm5_acl_data = get_property_value(configurations, 'kadm5-acl')

        if kadm5_acl_data is not None:
            kadm5_acl_template = get_property_value(kadm5_acl_data, 'content',
                                                    kadm5_acl_template)
            kadm5_acl_dir = get_property_value(kadm5_acl_data, 'conf_dir',
                                               kadm5_acl_dir)
            kadm5_acl_file = get_property_value(kadm5_acl_data, 'conf_file',
                                                kadm5_acl_file)
            kadm5_acl_path = kadm5_acl_dir + '/' + kadm5_acl_file

    # ################################################################################################
    # Get commandParams
    # ################################################################################################
    command_params = get_property_value(config, 'commandParams')
    if command_params is not None:
        keytab_details = get_unstructured_data(command_params, 'keytab')

        if manage_identities:
            smoke_test_principal = get_property_value(command_params,
                                                      'principal_name',
                                                      smoke_test_principal)
            smoke_test_keytab_file = get_property_value(
                command_params, 'keytab_file', smoke_test_keytab_file)