Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

externalapi.php, xcauth.py, ejabberd #10579

Closed
SparkyNZL opened this issue Aug 8, 2018 · 4 comments
Closed

externalapi.php, xcauth.py, ejabberd #10579

SparkyNZL opened this issue Aug 8, 2018 · 4 comments

Comments

@SparkyNZL
Copy link

SparkyNZL commented Aug 8, 2018

Steps to reproduce

  1. install xcauth
    2.test xcauth with the following
  2. 404 error externalapi.php

./xcauth.py --config-file /etc/xcauth.conf --auth-test admin nextcloud password
2018-08-08 19:59:01,591 DEBUG: Start external auth script 1.2.0- for ejabberd with endpoint: https://nextcloud.borty.co.nz/apps/ojsxc/ajax/externalApi.php
2018-08-08 19:59:01,592 DEBUG: Opening database connections
2018-08-08 19:59:01,593 DEBUG: Not a token (len: 6 != 23)
2018-08-08 19:59:01,601 INFO: Starting new HTTPS connection (1): nextcloud
2018-08-08 19:59:01,634 DEBUG: "POST /apps/ojsxc/ajax/externalApi.php HTTP/1.1" 404 317
2018-08-08 19:59:01,636 INFO: UNREACHABLE: Cache says password for admin@nextcloud is False

Expected behaviour

Tell us what should happen
This should post to the URI above and get a TRUE back if the password is correct. but this is not the case as i know the password i am using is correct. Im trying to problem solve the issue im having with the external xmpp server (ejabberd) and xcauth

Actual behaviour

Tell us what happens instead
fails

Server configuration

Operating system:
Ubuntu 16.04 LTS
Web server:
Apache
Database:
Mysql
PHP version:
7.0.30ubuntu
Nextcloud version: (see Nextcloud admin page)
13.05
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install

Where did you install Nextcloud from:
Github

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

No errors have been found.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #6784 (Php error?), #8265 (php/mcrypt has been deprecated), #8740 (PHP errors (libpng)), #8721 ([BUG] Invalid PHP Settings Being Displayed), and #2577 (PHP 7.1 support).

@rullzer
Copy link
Member

rullzer commented Aug 8, 2018

Please submit this issue to the related app.

@rullzer rullzer closed this as completed Aug 8, 2018
@SparkyNZL
Copy link
Author

SparkyNZL commented Aug 8, 2018 via email

@kesselb
Copy link
Contributor

kesselb commented Aug 8, 2018

POST /apps/ojsxc/ajax/externalApi.php

You may ask the people at https://github.com/nextcloud/jsxc.nextcloud. Endpoint u posted is not a part of nextcloud server (this repository)

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

No branches or pull requests

4 participants