From c6c8db5e9887005afd50dda7f0ceace8b62be27c Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 21 Nov 2022 15:18:42 +0100 Subject: [PATCH] view for hivemq migration --- .gitmodules | 2 +- VERSION | 2 +- hivemq-to-mosquitto-auth-view.sql | 5 +++++ parts/mosquitto-go-auth | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 hivemq-to-mosquitto-auth-view.sql diff --git a/.gitmodules b/.gitmodules index 15c7276..328f5a9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/eclipse/mosquitto.git [submodule "parts/mosquitto-go-auth"] path = parts/mosquitto-go-auth - url = https://github.com/iegomez/mosquitto-go-auth.git + url = git@github.com:wollud1969/mosquitto-go-auth.git diff --git a/VERSION b/VERSION index 69ca1e9..75d2329 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.15-1.9.1-03 +2.0.15-1.9.1-04 diff --git a/hivemq-to-mosquitto-auth-view.sql b/hivemq-to-mosquitto-auth-view.sql new file mode 100644 index 0000000..5bc61d7 --- /dev/null +++ b/hivemq-to-mosquitto-auth-view.sql @@ -0,0 +1,5 @@ +create or replace view hivemq_to_mosquitto_auth_v as + select username, + 'PBKDF2$' || lower(algorithm) || '$' || password_iterations || '$' || password_salt || '$' || "password" as pw + from users; + \ No newline at end of file diff --git a/parts/mosquitto-go-auth b/parts/mosquitto-go-auth index 9468bed..5085a8c 160000 --- a/parts/mosquitto-go-auth +++ b/parts/mosquitto-go-auth @@ -1 +1 @@ -Subproject commit 9468bedaf2c5e194b5ee8ade1fa37236782fb41a +Subproject commit 5085a8c66c6d76b8c3105017b544b291cff64c54