[Ovmsdev] Server Authentication Confusion

Mark Webb-Johnson mark at webb-johnson.net
Fri Dec 30 09:09:23 HKT 2022


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:

AuthDrupal.pm (Authenticates against the Drupal user database, with Drupal’s multiple-iteration hashes)
AuthNone.pm (a stub to base your own off)

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).

Alternatively, you could use AuthDrupal and manually populate the users / ovms_owners table - but you would need to encode the passwords appropriately.

Regards, Mark.

> On 30 Dec 2022, at 8:30 AM, Douglas Urner <dlu at canishe.com> wrote:
> 
> 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 (https://docs.openvehicles.com/en/stable/server/index.html) we’re seeing these message after starting the server:
> 
> 2022-12-30 00:18:03.533595 +0000 info  OVMS::Server::AuthDrupal: - - - Periodic Drupal maintenance
> DBD::mysql::db do failed: Table 'openvehicles.users' doesn't exist at plugins/system/OVMS/Server/DbDBI.pm line 181.
> 
> 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?
> 
> Thanks, Doug
>> Douglas Urner (he/they) | dlu at canishe.com <mailto:dlu at canishe.com> | +1 360.769.5565
> 
> 
> 
> 
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20221230/183e238a/attachment.htm>


More information about the OvmsDev mailing list