<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi,<br>
      for people who like to manage cars and owners for a server V2
      without Drupal:<br>
      you find a bash script to manage the cars and owners directly in
      the database at<br>
       <a class="moz-txt-link-freetext" href="https://github.com/zbchristian/ovms-server-docker.git">https://github.com/zbchristian/ovms-server-docker.git</a>
      (scripts/manage-db.sh)<br>
      <br>
      The script expects to find the configuration at the relative path
      "server/conf/ovms_server.conf" and extracts the DB user, DB
      password, DB host from it.<br>
      <br>
      Per default, the script stores the owner passwords in the DB as a
      Bcrypt hash. But its easy to change this to cleartext or another
      hashing method (function _pw_hash). <br>
      <br>
      The script can initialize the DB as well (see Readme).<br>
      <br>
      The script is part of my docker-compose setup for a minimal server
      V2 (only API V2, no Drupal, no HTTP API). <br>
      <br>
      Hope this helps.<br>
      <br>
      Regards<br>
        Christian<br>
      <br>
      <br>
      Am 14.03.2025 um 00:48 schrieb Mark Webb-Johnson via OvmsDev:<br>
    </div>
    <blockquote type="cite"
      cite="mid:BB8337F7-7B06-4F1D-819A-C33E8A6F30DA@openvehicles.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Chris,
      <div><br>
      </div>
      <div>If you’d like to provide a simple contribution to the project
        it would be:</div>
      <div><br>
      </div>
      <div>
        <ul class="MailOutline">
          <li>AuthSimple.pm</li>
          <ul class="MailOutline">
            <li>Use the Config::IniFiles config file we already have,
              with a new section to store the userid, password, etc.</li>
          </ul>
        </ul>
      </div>
      <div><br>
      </div>
      <div>For users wanting to run their own server, but only having
        one user, that would be useful.</div>
      <div><br>
      </div>
      <div>Regards, Mark.<br id="lineBreakAtBeginningOfMessage">
        <div><br>
          <blockquote type="cite">
            <div>On 14 Mar 2025, at 12:38 AM, Chris van der Meijden via
              OvmsDev <a class="moz-txt-link-rfc2396E"
                href="mailto:ovmsdev@lists.openvehicles.com"><ovmsdev@lists.openvehicles.com></a>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div>
              <div>
                <div>OK, it was not that hard ...</div>
                <div><br>
                </div>
                <div>In the AuthNone.pm I changed the sub Authenticate
                  to</div>
                <div><br>
                </div>
                <div>sub Authenticate</div>
                <div> {</div>
                <div> my ($user,$password) = @_;</div>
                <div> if ($user eq "xxx" && $password eq "yyy")
                  {</div>
                <div> return '*';</div>
                <div> } else {</div>
                <div> return ''; </div>
                <div> }</div>
                <div> }</div>
                <div><br>
                </div>
                <div>and activated AuthNone in the ovms_sever.conf</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>Am Donnerstag, dem 13.03.2025 um 11:34 +0100
                  schrieb Chris van der Meijden via OvmsDev:</div>
                <blockquote type="cite"
style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
                  <div>I'm trying to connect our e-UP to EVCC using the
                    http api.</div>
                  <div><br>
                  </div>
                  <div>This fails, because I don't have a Drupal server
                    installed. I only found AuhDrupal and AuthNone as
                    modules for the the server.</div>
                  <div><br>
                  </div>
                  <div>I don't want to install a Drupal instance for
                    only one user, so I'm now trying to write a
                    AuthSimple module for only one user with the
                    username and password included in the code (I know,
                    unsecure), so that the authentication for that user
                    goes through and I get the variables I need for
                    EVCC.</div>
                  <div><br>
                  </div>
                  <div>Before I reinvent the wheel, does a code snippet
                    perhaps exists, that does the trick?</div>
                  <div><br>
                  </div>
                  <div>Regards</div>
                  <div><br>
                  </div>
                  <div>Chris</div>
                  <div><span></span></div>
                  <div>_______________________________________________<br>
                  </div>
                  <div>OvmsDev mailing list<br>
                  </div>
                  <div><a href="mailto:OvmsDev@lists.openvehicles.com"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">OvmsDev@lists.openvehicles.com</a><br>
                  </div>
                  <div><a
href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
                  </div>
                </blockquote>
                <div><br>
                </div>
                <div><span></span></div>
              </div>
              _______________________________________________<br>
              OvmsDev mailing list<br>
              <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
                href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a><br>
              <a class="moz-txt-link-freetext"
href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext"
      href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext"
      href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>