corvy
Forum Replies Created
-
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugIs the fixes you made now in 2.6.2? ??
Just now also create a shoutout to your plugin on the https://www.jabber.no webpage:
https://www.jabber.no/registreringsskjema-er-apnet/?lang=en
- This reply was modified 4 years, 7 months ago by corvy.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugI found the permalink problem and fixed it, now it works as expected!
Thanks!
- This reply was modified 4 years, 7 months ago by corvy.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugOk, I will try that. I had some issues with permalinks before but I will try again.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugHello again @beherit, I have progressed quite a bit since yesterday. The accounts gets created and I also set up email sending from the server finally stopping the mails from getting caught in SPAM filters. But now I struggle with the activation emails and password reset emails. For instance I get this email link to press:
https://www.jabber.no/?code=78df23486199ce303df23651dd693169
But when I press it I get no confirmation or landing page. Is this expected?
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugJust created a few tables missing the MySQL database and also enabled SCRAM for passwords and now it seems to be working. Thanks!
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugYes I have, but there is something wrong with my database it seems. I think there was an error during one of the schema updates. This seems to be causing the troubles (I have not been adding users for months due to a spam attack).
2020-08-18 22:19:29.802644+02:00 [error] <0.457.0>@ejabberd_sql:check_error/2:1236 SQL query 'INSERT INTO users(username, password) VALUES ('proact6', '6b8a3278a4b4ac1d');' failed: "#HY000Field 'serverkey' doesn't have a default value"
Or could it be due to the fact I use plain passwords in the DB still? I should move to encrypted ones… if so then this will be my next step.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugThanks again ?? I now get message that the user ID is taken.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugThanks alot! ?? That worked better. Now the plugin checks for free usernames and discovers corrrectly if a JID is taken or free. When I try to register the registration fails again. Now I get a 400 Bad Request error.
https://pasteboard.co/JmVVBBY.png
Is this related to the same issue?
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugThank you for the response!
https://pasteboard.co/JmUj5iI.png
This is what I get. It seems the plugin does not work at all, or?
- This reply was modified 4 years, 7 months ago by corvy.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugThe API address in the plugin is currently: https://jabber.no:5285/api but I have also tried https://localhost:5285/api and also https://jabber.no:5443/api because in the default config there is api plugin with TLS on port 5443. None of them work.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debugMy config is as follows:
api_permissions: "rest api": who: - user: "[email protected]" what: - ban_account - change_password - check_account - check_password - get_presence - get_vcard - kick_user - private_get - private_set - register - registered_vhosts - send_message - unregister
My port listen is set up as follows:
- port: 5285 ip: "::" module: ejabberd_http request_handlers: api: mod_http_api
I can connect to the api with a web-browser but I cannot find why it fails in the logs.
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debug problems (log)ok, now I have tested some more. If I try to use the commandprompt way with wget I get the following:
# wget https://jabber.no:5285/rest/ –server-response –post-data ‘<message to=”[email protected]” from=”localhost/rest”><body>World</body></message>’
–2016-03-13 10:09:50– https://jabber.no:5285/rest/
Resolving jabber.no… 2a02:228:300:1::119, 80.239.54.119
Connecting to jabber.no|2a02:228:300:1::119|:5285… failed: Connection refused.
Connecting to jabber.no|80.239.54.119|:5285… connected.
HTTP request sent, awaiting response…
HTTP/1.1 406 Not Acceptable
Content-Type: text/html; charset=utf-8
Content-Length: 43
2016-03-13 10:09:50 ERROR 406: Not Acceptable.Then I have tried in the wordpress config to do a test on e-mail for a JID ([email protected]) under tools. When I click check I get the following in my log:
2016-03-13 10:12:46.300 [info] <0.1163.0>@ejabberd_listener:accept:333 (#Port<0.21156>) Accepted connection 80.239.54.119:50947 -> 80.239.54.119:5285
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:init:154 S: [{[<<“rest”>>],mod_rest}]
2016-03-13 10:12:46.301 [info] <0.5881.0>@ejabberd_http:init:158 started: {gen_tcp,#Port<0.21156>}
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process_header:281 (#Port<0.21156>) http query: ‘POST’ <<“/rest”>>
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:extract_path_query:395 client data: <<“check_account \”stian\” \”jabber.no\””>>
2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process:353 [<<“rest”>>] matches [<<“rest”>>]
2016-03-13 10:12:46.301 [debug] <0.5881.0>@mod_rest:process:55 Error when processing REST request:
Data: <<“check_account \”stian\” \”jabber.no\””>>
Error: {badmatch,false}I am at a loss to what I am doing wrong here. I understand that ejabberd is saying that it cannot match my query, but I cannot for the love of me understand what the issue is.
If you have any tips they are very much welcomed! I would relly love to use this plugin ?? Thanks!
Forum: Plugins
In reply to: [Ejabberd Account Tools] How to debug problems (log)ok, I will doublecheck again! ?? Thanks.
Forum: Fixing WordPress
In reply to: Hacked?So finding what exploit is actually triggered here is quite hard?
Great, thanks!