Glad to hear this.
Nice catch!
You're welcome and best regards,
Andrea
On 03/03/22 17:48, Vinay Kavala wrote:
Hi Andrea,
Thanks for that. However, the elastic extension jar from 2.1.9 syncope
installation does not have proper bean setter methods to pass in the
parameters.
So we have upgraded from 2.1.9 to 2.1.10 according to this document
https://cwiki.apache.org/confluence/display/SYNCOPE/Upgrade+from+2.1.9+to+2.1.10
and deployed both the syncope-console and syncope-core war files and
it worked!!
Thanks a lot Andrea!!!
Regards,
Vinay
------------------------------------------------------------------------
*From:* Andrea Patricelli <andreapatrice...@apache.org>
*Sent:* Thursday, March 3, 2022 4:50 AM
*To:* user@syncope.apache.org <user@syncope.apache.org>
*Subject:* Re: how and where to provide elastic search cluster
credentials to connect in the elasticsearchClientContext.xml
[CAUTION: EXTERNAL SENDER]
Hi Vinay,
Please try with this here [1]
<bean
class="org.apache.syncope.ext.elasticsearch.client.ElasticsearchClientFactoryBean">
<constructor-arg> <list> <ref bean="httpHost"/> </list>
</constructor-arg> <property name="username" value="myESUsername"/>
<property name="password" value="myESPassword"/> <property
name="apiKeyId" value="myApiKeyId"/> <property name="apiKeySecret"
value="myApiKeySecret"/> </bean>
and let us know.
Best regards,
Andrea
[1]
https://github.com/apache/syncope/blob/2_1_X/ext/elasticsearch/client-elasticsearch/src/main/resources/elasticsearchClientContext.xml
<https://github.com/apache/syncope/blob/2_1_X/ext/elasticsearch/client-elasticsearch/src/main/resources/elasticsearchClientContext.xml>
On 01/03/22 19:45, Vinay Kavala wrote:
Hi Team,
In the documentation
https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core
<https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core> it
is mentioned that we need to configure the
elasticSearchClientContext.xml to connect to the ES Cluster.
How do we pass on the username and password as credentials to the
ElasticsearchClientFactoryBean?
I have added the below in the xml file..
<bean id="httpHost" class="org.apache.http.HttpHost">
<constructor-arg
value="51cef73639d747b081088788c3ad3323.ip.es.odplabs.com"/>
<constructor-arg value="9243"/>
<constructor-arg value="https"/>
</bean>
How(and where) do I need to pass in the credentials to connect to the
ES Cluster?
Thanks,
Vinay
--
Andrea Patricelli
Tirasa - Open Source Excellence
http://www.tirasa.net/ <http://www.tirasa.net/>
Member at The Apache Software Foundation
Syncope
--
Andrea Patricelli
Tirasa - Open Source Excellence
http://www.tirasa.net/
PMC Member at The Apache Software Foundation
Syncope