Skip to content

Login problems #15

Closed
Closed
@ManuelLevi

Description

@ManuelLevi

Hi,
I'm having some problems logging in. To be as specific as I can be at the moment:

  • I've created a user, with the same password, for test purposes;
  • I've created the group api, and added the user to it;
  • I've activated XPC;
  • I've added both the user and the group in the remoteuserparam; I've also tried to leave it empty to give acess to everyone;
  • I'm accessing through the https url.

Example code (WIKI_URL, username and password are hardcoded a few lines before and have been double checked):

import dokuwiki

v = dokuwiki.DokuWiki(WIKI_URL, username, password).xmlrpc_version()
print(v)

The output is:

Traceback (most recent call last):
  File "/Users/manuellevi/PycharmProjects/deleteme/get_wiki_stats.py", line 5, in <module>
    wiki = dokuwiki.DokuWiki(WIKI_URL, username, password).xmlrpc_version()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dokuwiki.py", line 169, in __init__
    raise DokuWikiError('invalid login or password!')
dokuwiki.DokuWikiError: invalid login or password!

Having checked the URL, username and password, could I be missing something?
I'm wondering if I misread something in the docs.

EDIT: running this with python3 get_wiki_version.py.

Thanks,
ML

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions