diff --git a/modules/core/distribution/identity_config_change.xml b/modules/core/distribution/identity_config_change.xml
new file mode 100644
index 00000000..2b56094e
--- /dev/null
+++ b/modules/core/distribution/identity_config_change.xml
@@ -0,0 +1,32 @@
+
+
+
+ //s:Server/s:OAuth/s:OAuthScopeValidator
+
+
+
+ //s:Server/s:OAuth/s:OAuthCallbackHandlers
+ ]]>
+
+
+
+ //s:Server/s:OAuth/s:SupportedGrantTypes/s:SupportedGrantType[s:GrantTypeName='iwa:ntlm']/s:GrantTypeName
+
+ org.wso2.carbon.identity.oauth.common.NTLMAuthenticationValidator]]>
+
+
+ //s:Server/s:OAuth/s:SupportedGrantTypes/s:SupportedGrantType[s:GrantTypeName='iwa:ntlm']/s:GrantTypeName
+
+ org.wso2.carbon.identity.oauth.common.NTLMAuthenticationValidator]]>
+
+
+ //s:Server/s:OAuth/s:SupportedGrantTypes/s:SupportedGrantType[s:GrantTypeName='iwa:ntlm']
+
+
+ urn:ietf:params:oauth:grant-type:jwt-bearer
+ org.wso2.carbon.identity.oauth2.grant.jwt.JWTBearerGrantHandler
+ org.wso2.carbon.identity.oauth2.grant.jwt.JWTGrantValidator
+ ]]>
+
+
\ No newline at end of file
diff --git a/modules/core/distribution/pom.xml b/modules/core/distribution/pom.xml
index 4e8d95c3..ced1d3c1 100644
--- a/modules/core/distribution/pom.xml
+++ b/modules/core/distribution/pom.xml
@@ -90,6 +90,83 @@
+
+ com.google.code.maven-replacer-plugin
+ replacer
+ 1.5.2
+
+
+
+ replace-for-identity
+ prepare-package
+
+ replace
+
+
+ ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/identity.xml
+
+
+ /Server/JDBCPersistenceManager/DataSource/Name
+ (jdbc/WSO2CarbonDB)
+ jdbc/WSO2AM_DB
+
+
+ /Server/OAuth/SupportedGrantTypes/SupportedGrantType
+ (org.wso2.carbon.identity.oauth2.token.handlers.grant.AuthorizationCodeGrantHandler)
+ org.wso2.carbon.apimgt.keymgt.handlers.ExtendedAuthorizationCodeGrantHandler
+
+
+ /Server/OAuth/SupportedGrantTypes/SupportedGrantType
+ (org.wso2.carbon.identity.oauth2.token.handlers.grant.PasswordGrantHandler)
+ org.wso2.carbon.apimgt.keymgt.handlers.ExtendedPasswordGrantHandler
+
+
+ /Server/OAuth/SupportedGrantTypes/SupportedGrantType
+ (org.wso2.carbon.identity.oauth2.token.handlers.grant.ClientCredentialsGrantHandler)
+ org.wso2.carbon.apimgt.keymgt.handlers.ExtendedClientCredentialsGrantHandler
+
+
+ /Server/OAuth/SupportedGrantTypes/SupportedGrantType
+ (org.wso2.carbon.identity.oauth2.token.handlers.grant.saml.SAML2BearerGrantHandler)
+ org.wso2.carbon.apimgt.keymgt.handlers.ExtendedSAML2BearerGrantHandler
+
+
+ /Server/OAuth/SupportedGrantTypes/SupportedGrantType
+ (org.wso2.carbon.identity.oauth2.token.handlers.grant.iwa.ntlm.NTLMAuthenticationGrantHandler)
+ org.wso2.carbon.identity.oauth2.token.handlers.grant.iwa.ntlm.NTLMAuthenticationGrantHandlerWithHandshake
+
+
+ /Server/OAuth/OAuthCallbackHandlers
+ (org.wso2.carbon.identity.oauth.callback.DefaultCallbackHandler)
+ org.wso2.carbon.apimgt.keymgt.util.APIManagerOAuthCallbackHandler
+
+
+
+
+
+
+
+
+
+ replace-for-thrift
+ prepare-package
+
+ replace
+
+
+ ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/thrift-authentication.xml
+
+
+ /Server/JDBCPersistenceManager/DataSource/Name
+ (jdbc/WSO2CarbonDB)
+ jdbc/WSO2AM_DB
+
+
+
+
+
+
+
com.google.code.maven-config-processor-plugin
@@ -130,6 +207,43 @@
+
+ add-scope-validator
+ prepare-package
+
+ process
+
+
+ false
+
+
+ ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/identity.xml
+
+ identity_config_change.xml
+
+
+
+ http://wso2.org/projects/carbon/carbon.xml
+
+
+
+
+ init-claim-manager
+ prepare-package
+
+ process
+
+
+ false
+
+
+ ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/user-mgt.xml
+
+ user_mgt_config_change.xml
+
+
+
+
@@ -444,6 +558,7 @@
+
org.apache.maven.plugins
maven-deploy-plugin
@@ -451,52 +566,6 @@
true
-
- com.google.code.maven-replacer-plugin
- replacer
- 1.5.2
-
-
-
- replace-for-api-manager
- prepare-package
-
- replace
-
-
-
- ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/api-manager.xml
-
-
-
- /APIManager/GatewayType
- Synapse
- None
-
-
-
-
-
- replace-for-api-store
- prepare-package
-
- replace
-
-
-
- ${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/api-store/site/conf/site.json
-
-
-
- (/store)
- /api-store
-
-
-
-
-
-
-
diff --git a/modules/core/distribution/src/assembly/bin.xml b/modules/core/distribution/src/assembly/bin.xml
index 233f1d0c..f6e54c1a 100644
--- a/modules/core/distribution/src/assembly/bin.xml
+++ b/modules/core/distribution/src/assembly/bin.xml
@@ -74,6 +74,7 @@
**/lib/encoder*
**/plugins/jaxb*
**/security/authenticators.xml
+ **/user-mgt.xml
**/plugins/org.wso2.carbon.localentry.ui*
**/plugins/org.wso2.carbon.mediation.security.ui*
@@ -224,6 +225,7 @@
**/log4j.properties
**/nhttp.properties
**/passthru-http.properties
+ **/user-mgt.xml
@@ -594,6 +596,8 @@
**/msg-mgt.properties
**/entitlement.properties
**/EndpointConfig.properties
+ **/identity.xml
+ **/thrift-authentication.xml
@@ -850,24 +854,12 @@
true
644
-
-
- ${pom.artifactId}-${pom.version}/repository/conf/identity
-
- 644
-
${pom.artifactId}-${pom.version}/repository/conf/identity
644
-
-
- ${pom.artifactId}-${pom.version}/repository/conf/identity
- true
- 644
-