From 5d028205bfe9b621a60ed3513b38a891cd8ddfdd Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 24 Mar 2017 11:35:26 +0100 Subject: [PATCH 1/2] KEYCLOAK-4659 Changes to adapters for product profile --- adapters/oidc/as7-eap6/as7-subsystem/pom.xml | 2 -- adapters/oidc/as7-eap6/pom.xml | 12 ++++++++++++ adapters/oidc/tomcat/tomcat-core/pom.xml | 2 -- adapters/saml/as7-eap6/pom.xml | 12 ++++++++++++ adapters/saml/as7-eap6/subsystem/pom.xml | 1 - .../as7-eap6-adapter/eap6-adapter-zip/pom.xml | 14 ++++++++++++++ distribution/adapters/js-adapter-zip/pom.xml | 14 ++++++++++++++ .../wildfly-adapter/wildfly-adapter-zip/pom.xml | 14 ++++++++++++++ .../as7-eap6-adapter/eap6-adapter-zip/pom.xml | 14 ++++++++++++++ .../wildfly-adapter/wildfly-adapter-zip/pom.xml | 14 ++++++++++++++ 10 files changed, 94 insertions(+), 5 deletions(-) diff --git a/adapters/oidc/as7-eap6/as7-subsystem/pom.xml b/adapters/oidc/as7-eap6/as7-subsystem/pom.xml index cb1e6a3320..b4f2825322 100755 --- a/adapters/oidc/as7-eap6/as7-subsystem/pom.xml +++ b/adapters/oidc/as7-eap6/as7-subsystem/pom.xml @@ -88,7 +88,6 @@ org.jboss.logging jboss-logging - 3.1.0.GA @@ -104,7 +103,6 @@ projects that depend on this project.--> org.jboss.msc jboss-msc - 1.0.2.GA diff --git a/adapters/oidc/as7-eap6/pom.xml b/adapters/oidc/as7-eap6/pom.xml index d4286ac249..5bb51bd5db 100755 --- a/adapters/oidc/as7-eap6/pom.xml +++ b/adapters/oidc/as7-eap6/pom.xml @@ -30,6 +30,18 @@ keycloak-as7-integration-pom pom + + + + org.jboss.as + jboss-as-parent + ${jboss.as.version} + pom + import + + + + as7-adapter-spi as7-adapter diff --git a/adapters/oidc/tomcat/tomcat-core/pom.xml b/adapters/oidc/tomcat/tomcat-core/pom.xml index 3e769ee32b..209e5b3075 100755 --- a/adapters/oidc/tomcat/tomcat-core/pom.xml +++ b/adapters/oidc/tomcat/tomcat-core/pom.xml @@ -29,8 +29,6 @@ keycloak-tomcat-core-adapter Keycloak Tomcat Core Integration - - 6.0.41 diff --git a/adapters/saml/as7-eap6/pom.xml b/adapters/saml/as7-eap6/pom.xml index 667dad5126..aca1189ba4 100755 --- a/adapters/saml/as7-eap6/pom.xml +++ b/adapters/saml/as7-eap6/pom.xml @@ -30,6 +30,18 @@ keycloak-saml-eap-integration-pom pom + + + + org.jboss.as + jboss-as-parent + ${jboss.as.version} + pom + import + + + + adapter subsystem diff --git a/adapters/saml/as7-eap6/subsystem/pom.xml b/adapters/saml/as7-eap6/subsystem/pom.xml index a3d76a6e8c..93aed3a74b 100755 --- a/adapters/saml/as7-eap6/subsystem/pom.xml +++ b/adapters/saml/as7-eap6/subsystem/pom.xml @@ -88,7 +88,6 @@ org.jboss.logging jboss-logging - 3.1.0.GA diff --git a/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml b/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml index bea6742330..a69a607934 100755 --- a/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml +++ b/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml @@ -93,4 +93,18 @@ + + + product + + + product + + + + ${product.name}-${product.filename.version}-eap6-adapter + + + + diff --git a/distribution/adapters/js-adapter-zip/pom.xml b/distribution/adapters/js-adapter-zip/pom.xml index be59aa644c..bb392f129f 100755 --- a/distribution/adapters/js-adapter-zip/pom.xml +++ b/distribution/adapters/js-adapter-zip/pom.xml @@ -85,4 +85,18 @@ + + + product + + + product + + + + ${product.name}-${product.filename.version}-js-adapter + + + + diff --git a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml index 2e0343166a..fe4006c681 100755 --- a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml +++ b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml @@ -90,4 +90,18 @@ + + + product + + + product + + + + ${product.name}-${product.filename.version}-eap7-adapter + + + + diff --git a/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml b/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml index 689ccdfd79..678667f546 100755 --- a/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml +++ b/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml @@ -93,4 +93,18 @@ + + + product + + + product + + + + ${product.name}-${product.filename.version}-saml-eap6-adapter + + + + diff --git a/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml b/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml index 76ecc40693..8badfef8a9 100755 --- a/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml +++ b/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml @@ -90,4 +90,18 @@ + + + product + + + product + + + + ${product.name}-${product.filename.version}-saml-eap7-adapter + + + + From 79683945374d92dc128bcc90a14e9ca1be332f95 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 24 Mar 2017 13:44:33 +0100 Subject: [PATCH 2/2] KEYCLOAK-4654 Disable unsupported LDAP vendors in product profile --- .../admin/resources/js/controllers/users.js | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js index 4b47ff82ea..8f426189f2 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js @@ -1012,13 +1012,20 @@ module.controller('LDAPUserStorageCtrl', function($scope, $location, Notificatio $scope.provider = instance; $scope.showSync = false; - $scope.ldapVendors = [ - { "id": "ad", "name": "Active Directory" }, - { "id": "rhds", "name": "Red Hat Directory Server" }, - { "id": "tivoli", "name": "Tivoli" }, - { "id": "edirectory", "name": "Novell eDirectory" }, - { "id": "other", "name": "Other" } - ]; + if (serverInfo.profileInfo.name == 'community') { + $scope.ldapVendors = [ + {"id": "ad", "name": "Active Directory"}, + {"id": "rhds", "name": "Red Hat Directory Server"}, + {"id": "tivoli", "name": "Tivoli"}, + {"id": "edirectory", "name": "Novell eDirectory"}, + {"id": "other", "name": "Other"} + ]; + } else { + $scope.ldapVendors = [ + {"id": "ad", "name": "Active Directory"}, + {"id": "rhds", "name": "Red Hat Directory Server"} + ]; + } $scope.authTypes = [ { "id": "none", "name": "none" },