<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">You will require an authentication plugin for the server to authenticate connections with (and select the plugin you want in ovms_server.conf). Two are provided as examples:<div><br></div><div><ul class="MailOutline"><li>AuthDrupal.pm (Authenticates against the Drupal user database, with Drupal’s multiple-iteration hashes)</li><li>AuthNone.pm (a stub to base your own off)</li></ul></div><div><br></div><div>The simplest approach would be to copy AuthNone to AuthBasic (or some such name) and implement the Authenticate() function to return the user permission (or empty string if authentication fails).</div><div><br></div><div>Alternatively, you could use AuthDrupal and manually populate the users / ovms_owners table - but you would need to encode the passwords appropriately.</div><div><br></div><div>Regards, Mark.<br><div><br><blockquote type="cite"><div>On 30 Dec 2022, at 8:30 AM, Douglas Urner <dlu@canishe.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">We’re trying to set up an OVMS server and I’m puzzled by the authentication process. After (making an attempt at) following the server setup instructions (<a href="https://docs.openvehicles.com/en/stable/server/index.html">https://docs.openvehicles.com/en/stable/server/index.html</a>) we’re seeing these message after starting the server:<div><br></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">2022-12-30 00:18:03.533595 +0000 info OVMS::Server::AuthDrupal: - - - Periodic Drupal maintenance</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">DBD::mysql::db do failed: Table 'openvehicles.users' doesn't exist at plugins/system/OVMS/Server/DbDBI.pm line 181.</span></div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">After a bit more poking, it appears that the only functional authentication module wants to talk to a Drupal site (presumably to populate the users table). Do we need to set up a Drupal instance, or is it possible manually populate the openvehicles.users table?</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">Thanks, Doug</span></div><div>
<meta charset="UTF-8"><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">—<br>Douglas Urner (he/they) | <a href="mailto:dlu@canishe.com">dlu@canishe.com</a> | +1 360.769.5565<br><br><br><br><br></div></div></div>
</div>
<br></div>_______________________________________________<br>OvmsDev mailing list<br>OvmsDev@lists.openvehicles.com<br>http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br></div></blockquote></div><br></div></body></html>