Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
ERROR:304 Authentication failed, check username and password
sp_NewPost Add Reply sp_NewTopic Add Topic
July 3, 2023
11:11 am
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Not using special characters in the password will do the trick, but you can use special characters in the API call as long as they are properly url encoded (or percentage encoded). For instance, if your password is 'gF&2H:', the '&' and ':' characters in the API call should be percentage encoded as follows:

https://myserver.com/http/request-server-status?username=admin&password=gF%262H%3A

Regards, Henk

July 2, 2023
11:28 am
Andre
Guest
Guests

Thank you Henk,

It worked when we tried a password without special characters.

Kind regards

July 2, 2023
10:54 am
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Andre,

Error 304 means that the user name does not exist or that the password is incorrect. There are other authentication reasons why the API might not be accessible, for instance when access to the server status info is blocked in the privileges settings, but those reasons generate other error codes.

If you are certain that your user name and password are correct then you should check if they contain special characters that require URL encoding. It is possible that a special character is not sent correctly to Diafaan SMS Server if it is not properly URL encoded.

Regards, Henk

June 30, 2023
12:15 pm
Andre
Guest
Guests

Hi There

I may have logged a topic in this regard already. I'll try and give as much information as possible.

We set up a Diafaan server as a Proof of Concept on a Windows 2022 server hosted on Oracle Cloud with a web connector running on port 443 with SSL and added firewall rules for inbound traffic.
We can access the web console from the internet and login with user names and passwords created by the admin user.
When trying to query the API using https://myserver.com/http/request-server-status?username=xxxxx&password=xxxxx the server returns ERROR:304 Authentication failed, check username and password.

The same error is received when trying to access the API locally.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 681

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1160

Posts: 3961

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1517