<font size=2 face="sans-serif">Yes, you are right. I will update that.</font>
<br>
<br><font size=2 face="sans-serif">best</font>
<br>
<br><font size=2 face="sans-serif">Carsten</font>
<br>
<hr>
<font size="3" face="Calibri,sans-serif">
 Carsten Saathoff - KISTERS AG - Stau 75 - 26122 Oldenburg - Germany<br>Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers<br>Phone: +49 441 93602 -257 | Fax: +49 441 93602 -222 | E-Mail: Carsten.Saathoff@kisters.de | WWW: http://www.kisters.de
</span>
<hr>
<font size="2" face="Calibri,sans-serif">
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. <br>This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
</font><br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Marek Posolda &lt;mposolda@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">stian@redhat.com, Carsten
Saathoff &lt;Carsten.Saathoff@kisters.de&gt;, </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">keycloak-dev &lt;keycloak-dev@lists.jboss.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09/10/2015 06:10</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [keycloak-dev]
Mongo Replica Sets</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">keycloak-dev-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Just one minor thing, it looks to me that when you introduce
&quot;uri&quot; in the configuration, the operationalInfo won't be filled.
This operationInfo is used for admins for debugging server status and can
be shown for example from admin console. Could you improve PR to ensure
it is filled?<br>
<br>
Thanks,<br>
Marek<br>
<br>
On 08/10/15 19:15, Stian Thorgersen wrote:</font>
<br><font size=3>Sorry, I scanned it to a bit to quick. </font>
<br>
<br><font size=3>Your patch looks good, create a PR and we'll merge it.</font>
<br>
<br><font size=3>On 8 October 2015 at 12:24, Carsten Saathoff &lt;</font><a href=mailto:Carsten.Saathoff@kisters.de target=_blank><font size=3 color=blue><u>Carsten.Saathoff@kisters.de</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=2 face="sans-serif">I am not asking for support, I am proposing
a change to the mongodb connection provider to support mongo replica sets.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
best</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Carsten</font><font size=3> <br>
</font>
<hr><font size=3 face="Calibri">Carsten Saathoff - KISTERS AG - Stau 75
- 26122 Oldenburg - Germany<br>
Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters
| Aufsichtsratsvorsitzender: Dr. Thomas Klevers<br>
Phone: </font><a href="tel:%2B49%20441%2093602%20-257" target=_blank><font size=3 color=blue face="Calibri"><u>+49
441 93602 -257</u></font></a><font size=3 face="Calibri"> | Fax: </font><a href="tel:%2B49%20441%2093602%20-222" target=_blank><font size=3 color=blue face="Calibri"><u>+49
441 93602 -222</u></font></a><font size=3 face="Calibri"> | E-Mail: </font><a href=mailto:Carsten.Saathoff@kisters.de target=_blank><font size=3 color=blue face="Calibri"><u>Carsten.Saathoff@kisters.de</u></font></a><font size=3 face="Calibri">
| WWW: </font><a href=http://www.kisters.de/ target=_blank><font size=3 color=blue face="Calibri"><u>http://www.kisters.de</u></font></a><font size=3 face="Calibri">
</font>
<hr><font size=2 face="Calibri">Diese E-Mail enthält vertrauliche und/oder
rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. <br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorised
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden. </font><font size=3 face="Calibri"><br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Stian
Thorgersen &lt;</font><a href=mailto:sthorger@redhat.com target=_blank><font size=1 color=blue face="sans-serif"><u>sthorger@redhat.com</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3 face="Calibri">
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Carsten
Saathoff &lt;</font><a href=mailto:Carsten.Saathoff@kisters.de target=_blank><font size=1 color=blue face="sans-serif"><u>Carsten.Saathoff@kisters.de</u></font></a><font size=1 face="sans-serif">&gt;,
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">keycloak-dev
&lt;</font><a href="mailto:keycloak-dev@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>keycloak-dev@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3 face="Calibri">
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">08/10/2015
12:00</font><font size=3 face="Calibri"> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[keycloak-dev] Mongo Replica Sets</font><font size=3 face="Calibri"> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href="mailto:keycloak-dev-bounces@lists.jboss.org" target=_blank></a><a href="mailto:keycloak-dev-bounces@lists.jboss.org"><font size=1 color=blue face="sans-serif"><u>keycloak-dev-bounces@lists.jboss.org</u></font></a><font size=3 face="Calibri">
<br>
</font>
<hr noshade>
<br><font size=3 face="Calibri"><br>
<br>
<br>
Please use user mailing list for support <br>
<br>
On 8 October 2015 at 10:42, Carsten Saathoff &lt;</font><a href=mailto:Carsten.Saathoff@kisters.de target=_blank><font size=3 color=blue face="Calibri"><u>Carsten.Saathoff@kisters.de</u></font></a><font size=3 face="Calibri">&gt;
wrote: </font><font size=2 face="sans-serif"><br>
Hi all,</font><font size=3 face="Calibri"> </font><font size=2 face="sans-serif"><br>
<br>
we are currently setting up a production system that uses keycloak as the
Identity Provider. We use mongodb as the database for keycloak (since this
is our main database), but require keycloak to also handle mongodb replica
sets appropriately. Currently, when the primary changes in a mongo replica
set, keycloak stops working, since it only connects to a single instance.</font><font size=3 face="Calibri">
</font><font size=2 face="sans-serif"><br>
<br>
I have a version of keycloak that uses a mongodb:// uri[1] to specify the
mongo connection parameters in the keycloak configuration file. Since mongodb://
uris are a standard way of obtaining a mongo client, this naturally supports
replica sets. The patch is only a couple of lines and seems to work. The
only issue I have is that the MongoDB update seems to be broken in master
currently. But this is also the case when I build keycloak without my patch,
so I assume this to be an unrelated issue.</font><font size=3 face="Calibri">
</font><font size=2 face="sans-serif"><br>
<br>
The commit is available in my keycloak fork:</font><font size=3 face="Calibri">
</font><font size=3 color=blue face="Calibri"><u><br>
<br>
</u></font><a href=https://github.com/kodemaniak/keycloak/commit/6741dffe38c9c8d9fd8ca1e92cb15762666a607a target=_blank><font size=2 color=blue face="sans-serif"><u>https://github.com/kodemaniak/keycloak/commit/6741dffe38c9c8d9fd8ca1e92cb15762666a607a</u></font></a><font size=3 face="Calibri">
</font><font size=2 face="sans-serif"><br>
<br>
Only the setup of the operational attributes is still missing for the configuration
via uri, but it can easily be added.</font><font size=3 face="Calibri">
</font><font size=2 face="sans-serif"><br>
<br>
I would like to get this somehow into an official release, since I think
that supporting replica sets is crucial in order to use keycloak with mongo
in a production setup. Personally I think that specifying mongo connection
parameters via mongodb:// uris is the most convenient way and it's standardized.
So it could even be the only way of specifying the connection details IMHO.</font><font size=3 face="Calibri">
</font><font size=2 face="sans-serif"><br>
<br>
Since in the contribution section it's encouraged to first discuss such
ideas on this mailing list prior to sending a pull request, I am sending
this mail to receive any feedback.</font><font size=3 face="Calibri"> </font><font size=2 face="sans-serif"><br>
<br>
best</font><font size=3 face="Calibri"> </font><font size=2 face="sans-serif"><br>
<br>
Carsten</font><font size=3 face="Calibri"> </font><font size=2 face="sans-serif"><br>
<br>
[1] </font><a href="http://docs.mongodb.org/manual/reference/connection-string/" target=_blank><font size=2 color=blue face="sans-serif"><u>http://docs.mongodb.org/manual/reference/connection-string/</u></font></a><font size=3 face="Calibri">
<br>
<br>
</font>
<hr><font size=3 face="Calibri">Carsten Saathoff - KISTERS AG - Stau 75
- 26122 Oldenburg - Germany<br>
Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters
| Aufsichtsratsvorsitzender: Dr. Thomas Klevers<br>
Phone: </font><a href="tel:%2B49%20441%2093602%20-257" target=_blank><font size=3 color=blue face="Calibri"><u>+49
441 93602 -257</u></font></a><font size=3 face="Calibri"> | Fax: </font><a href="tel:%2B49%20441%2093602%20-222" target=_blank><font size=3 color=blue face="Calibri"><u>+49
441 93602 -222</u></font></a><font size=3 face="Calibri"> | E-Mail: </font><a href=mailto:Carsten.Saathoff@kisters.de target=_blank></a><a href=mailto:Carsten.Saathoff@kisters.de><font size=3 color=blue face="Calibri"><u>Carsten.Saathoff@kisters.de</u></font></a><font size=3 face="Calibri">
| WWW: </font><a href=http://www.kisters.de/ target=_blank><font size=3 color=blue face="Calibri"><u>http://www.kisters.de</u></font></a><font size=3 face="Calibri">
</font>
<hr><font size=2 face="Calibri">Diese E-Mail enthält vertrauliche und/oder
rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. <br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorised
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden. </font><font size=3 face="Calibri"><br>
_______________________________________________<br>
keycloak-dev mailing list</font><font size=3 color=blue face="Calibri"><u><br>
</u></font><a href="mailto:keycloak-dev@lists.jboss.org" target=_blank><font size=3 color=blue face="Calibri"><u>keycloak-dev@lists.jboss.org</u></font></a><font size=3 color=blue face="Calibri"><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target=_blank><font size=3 color=blue face="Calibri"><u>https://lists.jboss.org/mailman/listinfo/keycloak-dev</u></font></a><font size=3 face="Calibri">
</font><font size=2 face="Calibri"><br>
_______________________________________________<br>
keycloak-dev mailing list</font><font size=2 color=blue face="Calibri"><u><br>
</u></font><a href="mailto:keycloak-dev@lists.jboss.org" target=_blank><font size=2 color=blue face="Calibri"><u>keycloak-dev@lists.jboss.org</u></font></a><font size=3 color=blue face="Calibri"><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target=_blank><font size=2 color=blue face="Calibri"><u>https://lists.jboss.org/mailman/listinfo/keycloak-dev</u></font></a><font size=3 face="Calibri">
</font>
<br>
<br><font size=3><br>
</font>
<br><tt><font size=3>_______________________________________________<br>
keycloak-dev mailing list<br>
</font></tt><a href="mailto:keycloak-dev@lists.jboss.org"><tt><font size=3 color=blue><u>keycloak-dev@lists.jboss.org</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"><tt><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/keycloak-dev</u></font></tt></a>
<br><tt><font size=2>_______________________________________________<br>
keycloak-dev mailing list<br>
keycloak-dev@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/keycloak-dev</font></tt></a>
<br>