def push_kerberos_configs(self, cluster): manager = self.pu.get_manager(cluster) kdc_host = kerberos.get_kdc_host(cluster, manager) security_realm = kerberos.get_realm_name(cluster) username = "******" % (kerberos.get_admin_principal(cluster), kerberos.get_realm_name(cluster)) password = kerberos.get_server_password(cluster) api = self.get_api_client(cluster) cm = api.get_cloudera_manager() cm.update_config({'SECURITY_REALM': security_realm, 'KDC_HOST': kdc_host}) self.import_admin_credentials(cm, username, password) self.configure_for_kerberos(cluster) self.deploy_configs(cluster)
def _serialize_mit_kdc_kerberos_env(cluster): return { 'kerberos-env': { "realm": kerberos.get_realm_name(cluster), "kdc_type": "mit-kdc", "kdc_host": kerberos.get_kdc_host(cluster, get_kdc_server(cluster)), "admin_server_host": kerberos.get_kdc_host(cluster, get_kdc_server(cluster)), 'encryption_types': 'aes256-cts-hmac-sha1-96', 'ldap_url': '', 'container_dn': '', } }