Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

[Bug] Bad authentication error #15

Open
gpopesc opened this issue Apr 7, 2021 · 2 comments
Open

[Bug] Bad authentication error #15

gpopesc opened this issue Apr 7, 2021 · 2 comments
Labels

Comments

@gpopesc
Copy link

gpopesc commented Apr 7, 2021

Describe the bug
bad authentication error

To Reproduce
Steps to reproduce the behavior:

After last Synology update 6.2.4 I had to reinstall your script.
I respect all your steps but I get Authentication failed.

I edit your script with my credentials and my IP and when I run it in command line, I get "badauth"

Additional context
I used your script before with version 6.2.1-6.2.3 and I hadn't any problem

@gpopesc gpopesc added the bug label Apr 7, 2021
@joshuaavalon joshuaavalon changed the title [Bug] <Title> [Bug] Bad authentication error Apr 8, 2021
@OnePunchMan007
Copy link

OnePunchMan007 commented Apr 9, 2021

I have got the same problem.
Since the update the /sbin/cloudflareddns.sh have been delete and /etc.defaults/ddns_provider.conf have been restore to default value. So i follow also all the step butt for me the last instruction is not working :

cat >> /etc.defaults/ddns_provider.conf << 'EOF'
[Cloudflare]
        modulepath=/sbin/cloudflareddns.sh
        queryurl=https://www.cloudflare.com
        website=https://www.cloudflare.com
E*

so i try to understand cat and i rewrite enterly the ddns_provider file with this command

cat <<EOF > /etc.defaults/ddns_provider.conf

# Input:
#    1. DynDNS style request:
#       modulepath = DynDNS
#       queryurl = [Update URL]?[Query Parameters]
#
#    2. Self-defined module:
#       modulepath = /sbin/xxxddns
#       queryurl = DDNS_Provider_Name
#
#       Our service will assign parameters in the following order when calling module:
#           ($1=username, $2=password, $3=hostname, $4=ip)
#
# Output:
#    When you write your own module, you can use the following words to tell user what happen by print it.
#    You can use your own message, but there is no multiple-language support.
#
#       good -  Update successfully.
#       nochg - Update successfully but the IP address have not changed.
#       nohost - The hostname specified does not exist in this user account.
#       abuse - The hostname specified is blocked for update abuse.
#       notfqdn - The hostname specified is not a fully-qualified domain name.
#       badauth - Authenticate failed.
#       911 - There is a problem or scheduled maintenance on provider side
#       badagent - The user agent sent bad request(like HTTP method/parameters is not permitted)
#       badresolv - Failed to connect to  because failed to resolve provider add ress.
#       badconn - Failed to connect to provider because connection timeout.
#
[TWNIC]
        modulepath=TWNIC
        queryurl=rs.twnic.net.tw
        website=http://www.twnic.net.tw
        hidden=true
[Variomedia]
        modulepath=/usr/syno/bin/ddns/variomedia.php
        queryurl=https://dyndns.variomedia.de
[CloudNS]
        modulepath=/usr/syno/bin/ddns/cloudns.php
        queryurl=https://www.cloudns.net/
[Google]
        modulepath=/usr/syno/bin/ddns/google.php
        queryurl=https://domains.google.com/
[DNSEXIT]
        modulepath=/usr/syno/bin/ddns/dnsexit.php
        queryurl=http://www.dnsexit.com/
[Joker.com]
        modulepath=DynDNS
        queryurl=https://svc.joker.com/nic/update?username=__USERNAME__&password=__PASSWORD__&myip=__MYIP__&hostname=__HOSTNAME__
[OVH]
        modulepath=DynDNS
        queryurl=https://www.ovh.com/nic/update?system=dyndns&hostname=__HOSTNAME__&myip=__MYIP__
[DYNDNS.org]
        modulepath=DynDNS
        queryurl=https://members.dyndns.org/nic/update?hostname=__HOSTNAME__&myip=__MYIP__&system=dyndns&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG
[TwoDNS.de]
        modulepath=DynDNS
        queryurl=https://update.twodns.de/update.php?hostname=__HOSTNAME__&myip=__MYIP__
[NoIP.com]
        modulepath=DynDNS
        queryurl=https://dynupdate.no-ip.com/nic/update?hostname=__HOSTNAME__&myip=__MYIP__
[able.or.kr]
        modulepath=DynDNS
        queryurl=able.or.kr/ddns/src/update.php?hostname=__HOSTNAME__&myip=__MYIP__&ddnsuser=__USERNAME__&pwd=__PASSWORD__
[3322.org]
        modulepath=DynDNS
        queryurl=www.3322.org/dyndns/update?hostname=__HOSTNAME__&system=dyndns
[selfHOST.de]
        modulepath=DynDNS
        queryurl=https://carol.selfhost.de/nic/update?hostname=__HOSTNAME__&myip=__MYIP__
[Dynamic DO!.jp]
        modulepath=Ddojp
        queryurl=free.ddo.jp/dnsupdate.php?dn=__HOSTNAME__&pw=__PASSWORD__&ip=__MYIP__
[ChangeIP.com]
        modulepath=/usr/syno/bin/ddns/changeip.php
        queryurl=www.changeip.com
[DNSPod.com]
        modulepath=/usr/syno/bin/ddns/dnspod_com.php
        queryurl=https://api.dnspod.com/
[DNSPod.cn]
        modulepath=/usr/syno/bin/ddns/dnspod_cn.php
        queryurl=https://dnsapi.cn/
[Zoneedit.com]
        modulepath=Zoneedit
        queryurl=https://dynamic.zoneedit.com/auth/dynamic.html?host=__HOSTNAME__&dnsto=__MYIP__
[Freedns.org]
        modulepath=Freedns
        queryurl=https://freedns.afraid.org/dynamic/update.php?user=__FreednsSHA1__&host=__HOSTNAME__&address=__MYIP__
[DNS-O-Matic]
        modulepath=/usr/syno/bin/ddns/dns_o_matic.php
        queryurl=https://updates.dnsomatic.com/nic/update
[RU-CENTER]
        modulepath=/usr/syno/bin/ddns/ru_center.php
        queryurl=https://api.nic.ru/dyndns/update
        website=http://dns-master.ru/dynamic_dns/
[STRATO]
        modulepath=DynDNS
        queryurl=https://dyndns.strato.com/nic/update?hostname=__HOSTNAME__&myip=__MYIP__
[Oray.com]
        modulepath=DynDNS
        queryurl=ddns.oray.com/ph/update?hostname=__HOSTNAME__&myip=__MYIP__
[Synology]
        modulepath=Synology
        queryurl=ddns.synology.com
        register_module=synology
        website=https://account.synology.com
[Cloudflare]
        modulepath=/sbin/cloudflareddns.sh
        queryurl=https://www.cloudflare.com
        website=https://www.cloudflare.com
EOF

and i had the last part :

[Cloudflare]
modulepath=/sbin/cloudflareddns.sh
queryurl=https://www.cloudflare.com
website=https://www.cloudflare.com

so now it's working

@SteVeNRK
Copy link

SteVeNRK commented Aug 9, 2021

You cannot use this API for domains with a .cf, .ga, .gq, .ml, or .tk TLD (top-level domain). To configure the DNS settings for this domain, use the Cloudflare Dashboard

how to fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants