<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks for the proposal! Btv. since you
      already nail it down, would you mind to contribute directly and
      send a pull request for this change?<br>
      <br>
      Marek<br>
      <br>
      On 28.5.2014 21:36, Patrick V. Madden wrote:<br>
    </div>
    <blockquote
      cite="mid:1474709012.108287.1401305810058.JavaMail.zimbra@tomsawyer.com"
      type="cite">
      <div style="font-family: Arial; font-size: 12pt; color: #000000">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I recently added building Keycloak as a Jenkins job that
          runs on a Windows build machine. I noticed that each time a
          build is done, we get four Firewall popups requesting to grant
          access to something related to mongo embedded plugin. I did
          not see this on my MacBook Pro local build so its a Windows
          only issue. The problem is it creates a new application name
          each time it is run so simply adding the access restriction to
          Windows firewall once doesn't do the trick.</div>
        <div><br>
        </div>
        <div>I tracked it down to pom files that reference the
          embedmongo-maven-plugin needing to add a
          &lt;bindIp&gt;127.0.0.1&lt;/bindIp&gt; to the plugin
          configuration.</div>
        <div><br>
        </div>
        <div>There are four pom files that need to be modified:</div>
        <div>audit/mongo/pom.xml</div>
        <div>export-import/export-import-impl/pom.xml</div>
        <div>model/mongo/pom.xml</div>
        <div>testsuite/integration/pom.xml</div>
        <div><br>
        </div>
        <div>There is a very simple pattern. In each pom there is a
          properties section for keycloak.model.mongo.*</div>
        <div><br>
        </div>
        <div>I added a property for bindIp as follows:</div>
        <div><br>
        </div>
        <div>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">&lt;properties&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.host&gt;localhost&lt;/keycloak.model.mongo.host&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.port&gt;27018&lt;/keycloak.model.mongo.port&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.db&gt;keycloak&lt;/keycloak.model.mongo.db&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.clearOnStartup&gt;true&lt;/keycloak.model.mongo.clearOnStartup&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;<strong>&lt;keycloak.model.mongo.bindIp&gt;127.0.0.1&lt;/keycloak.model.mongo.bindIp&gt;</strong><br>
            &lt;/properties&gt;</p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">Then for
            surefire I added a system property variable as follows:<br>
            <br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">&lt;systemPropertyVariables&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.host&gt;${keycloak.model.mongo.host}&lt;/keycloak.model.mongo.host&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.port&gt;${keycloak.model.mongo.port}&lt;/keycloak.model.mongo.port&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.db&gt;${keycloak.model.mongo.db}&lt;/keycloak.model.mongo.db&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;keycloak.model.mongo.clearOnStartup&gt;${keycloak.model.mongo.clearOnStartup}&lt;/keycloak.model.mongo.clearOnStartup&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;<strong>&lt;keycloak.model.mongo.bindIp&gt;${keycloak.model.mongo.bindIp}&lt;/keycloak.model.mongo.bindIp&gt;</strong><br>
            &lt;/systemPropertyVariables&gt;</p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">And
            lastly for the embedmongo-maven-plugin modify the
            configration as follows:<br>
            <br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">&lt;configuration&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;port&gt;${keycloak.model.mongo.port}&lt;/port&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;logging&gt;file&lt;/logging&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;logFile&gt;${project.build.directory}/mongodb.log&lt;/logFile&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;<strong>&lt;bindIp&gt;${keycloak.model.mongo.bindIp}&lt;/bindIp&gt;</strong><br>
            &lt;/configuration&gt;</p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">For the
            audit file replace model with audit.</p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">I'm able
            to build on Windows now without any popups.</p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;"><br>
          </p>
          <p style="margin: 0px;" data-mce-style="margin: 0px;">This
            will be greatly appreciated if it can be done!</p>
        </div>
        <div><br>
        </div>
        <div><span name="x"></span>
          <div><span data-mce-style="font-family: Arial; font-size:
              small;" style="font-family: Arial; font-size: small;"
              size="2"><span data-mce-style="font-family: Arial;
                font-size: small;" style="font-family: Arial; font-size:
                small;" size="2"><span style="font-family: tahoma, 'new
                  york', times, serif; " data-mce-style="font-family:
                  tahoma, 'new york', times, serif;"><strong
                    style="background-color: #fdfdfd;"
                    data-mce-style="background-color: #fdfdfd;">Patrick
                    Madden</strong><span style="background-color:
                    #fdfdfd;" data-mce-style="background-color:
                    #fdfdfd;">&nbsp;</span><br style="background-color:
                    #fdfdfd;" data-mce-style="background-color:
                    #fdfdfd;">
                  <span style="background-color: #fdfdfd;"
                    data-mce-style="background-color: #fdfdfd;">Principal
                    Design Engineer</span><span style="background-color:
                    #fdfdfd;" data-mce-style="background-color:
                    #fdfdfd;">&nbsp;</span><br style="background-color:
                    #fdfdfd;" data-mce-style="background-color:
                    #fdfdfd;">
                  <strong style="background-color: #fdfdfd;"
                    data-mce-style="background-color: #fdfdfd;"><span
                      class="Object"
                      id="OBJ_PREFIX_DWT1942_com_zimbra_url"
                      style="color: #336699; cursor: pointer;"
                      data-mce-style="color: #336699; cursor: pointer;"><span
                        class="Object"
                        id="OBJ_PREFIX_DWT1946_com_zimbra_url"
                        style="cursor: pointer;" data-mce-style="cursor:
                        pointer;"><span class="Object"
                          id="OBJ_PREFIX_DWT2020_com_zimbra_url"
                          style="cursor: pointer;"
                          data-mce-style="cursor: pointer;"><span
                            class="Object"
                            id="OBJ_PREFIX_DWT2031_com_zimbra_url"
                            style="cursor: pointer;"
                            data-mce-style="cursor: pointer;"><span
                              class="Object"
                              id="OBJ_PREFIX_DWT65_com_zimbra_url"
                              style="cursor: pointer;"
                              data-mce-style="cursor: pointer;"><a
                                moz-do-not-send="true"
                                href="http://www.tomsawyer.com/"
                                target="_blank" style="color: #336699;
                                text-decoration: none; cursor: pointer;"
data-mce-href="http://www.tomsawyer.com/" data-mce-style="color:
                                #336699; text-decoration: none; cursor:
                                pointer;">Tom Sawyer Software</a></span></span></span></span></span></strong><br
                    style="background-color: #fdfdfd;"
                    data-mce-style="background-color: #fdfdfd;">
                </span></span></span></div>
          <div style="background-color: #fdfdfd;"
            data-mce-style="background-color: #fdfdfd;"><span
              style="font-family: tahoma, 'new york', times, serif;"
              data-mce-style="font-family: tahoma, 'new york', times,
              serif;">1997 El Dorado Avenue</span></div>
          <div><span style="font-family: tahoma, 'new york', times,
              serif; font-size: small;" size="2"
              data-mce-style="font-family: tahoma, 'new york', times,
              serif; font-size: small;"><span style="font-size: small;"
                size="2" data-mce-style="font-size: small;"></span></span></div>
          <div style="background-color: #fdfdfd;"
            data-mce-style="background-color: #fdfdfd;"><span
              style="font-family: tahoma, 'new york', times, serif;"
              data-mce-style="font-family: tahoma, 'new york', times,
              serif;">Berkeley, CA 94707</span></div>
          <div><span data-mce-style="font-family: Arial; font-size:
              small;" style="font-family: Arial; font-size: small;"
              size="2"><span data-mce-style="font-family: Arial;
                font-size: small;" style="font-family: Arial; font-size:
                small;" size="2"><span style="font-family: tahoma, 'new
                  york', times, serif; " data-mce-style="font-family:
                  tahoma, 'new york', times, serif;"></span></span></span></div>
          <div style="background-color: #fdfdfd;"
            data-mce-style="background-color: #fdfdfd;"><br>
          </div>
          <div style="background-color: #fdfdfd;"
            data-mce-style="background-color: #fdfdfd;">E-mail: <span
              style="color: rgb(51, 102, 153);" data-mce-style="color:
              #336699;"><a moz-do-not-send="true"
                data-mce-href="mailto:pmadden@tomsawyer.com"
                href="mailto:pmadden@tomsawyer.com" target="_blank"><span
                  style="color: rgb(51, 102, 153);"
                  data-mce-style="color: #336699;">pmadden@<span
                    class="Object"
                    id="OBJ_PREFIX_DWT1945_com_zimbra_email"
                    style="color: #336699; cursor: pointer;"
                    data-mce-style="color: #336699; cursor: pointer;"><span
                      class="Object"
                      id="OBJ_PREFIX_DWT1947_com_zimbra_email"
                      style="cursor: pointer;" data-mce-style="cursor:
                      pointer;"><span class="Object"
                        id="OBJ_PREFIX_DWT2021_com_zimbra_email"
                        style="cursor: pointer;" data-mce-style="cursor:
                        pointer;"><span class="Object"
                          id="OBJ_PREFIX_DWT2032_com_zimbra_email"
                          style="cursor: pointer;"
                          data-mce-style="cursor: pointer;"><span
                            class="Object"
                            id="OBJ_PREFIX_DWT66_com_zimbra_email"
                            style="cursor: pointer;"
                            data-mce-style="cursor: pointer;">tomsawyer.com</span></span></span></span></span></span></a></span>&nbsp;</div>
          <div style="background-color: #fdfdfd;"
            data-mce-style="background-color: #fdfdfd;"><br>
          </div>
          <div><span data-mce-style="font-family: Arial; font-size:
              small;" style="font-family: Arial; font-size: small;"
              size="2"><span style="font-family: tahoma, 'new york',
                times, serif; " data-mce-style="font-family: tahoma,
                'new york', times, serif;"><br>
              </span></span></div>
          <span name="x"></span><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>