-
Notifications
You must be signed in to change notification settings - Fork 18
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
Working configs for Nextcloud user@domain accounts? #13
Comments
I got the same problem with ejabberd and this auth script, it just quits with reason normal, no log-files created for the auth script.. (apparmor disabled) |
@rev138 did you read the text behind the @colarocker please check your syslog to ensure that apparmor is properly disabled, because this is tricky. |
thanks for your reply @sualko, i installed the aa-utils, used aa-status, which replied "apparmor module is not loaded" and also checked with "sudo service apparmor status" which replied "Loaded: loaded(/etc/init.d/apparmor) Active: inactive (dead)" so i believe it's really deactivated. /http-bind/ works, correct rights for the auth script are set, it runs if i start it manually from SSH and also starts to log then but when i use it out of ejabberd it doesn't log. login from nextcloud is just loading, sometimes after 2-3 minutes it will load the main page of nextcloud, but chat isn't working. (when i stop ejabberd-service while hanging on login, it immediately goes to main-page of nextcloud) :/ do you have experience with login-format? in nextcloud i don't use the username+domain combination for login, just the username, could it be related to that? i think i'm gonna try to change it later and test it because i'm out of ideas. |
@colarocker It's not clear from your post, if you checked your syslog and ejabberd log (with log level debug). With the |
@sualko i checked my syslog and didn't find any information about apparmor (using a pre-installed vserver with ubuntu 15.04, heard the first time about apparmor when trying to get xmpp-cloud-auth to work). im happy to say that i resolved the problem with the login-page. I added my email to the nextcloud user-page so i can login with username@domain, which works with ejabberd activated. i immediately get forwarded to the nextcloud mainpage. still the chat is not working. i looked through the ejabberd log and found one error and one info (they also appeared when the login didnt forward me to the mainpage): 2017-05-24 10:56:16.580 [error] <0.2796.0>@extauth➿130 extauth call '[<<"auth">>,<<"colarocker">>,<<"domain.de">>,<<"PASSWORD">>]' didn't receive response 2017-05-24 10:56:16.580 [info] <0.2794.0>@ejabberd_c2s:wait_for_feature_request:757 ({socket_state,ejabberd_http_bind,{http_bind,<0.2793.0>,{{0,0,0,0,0,0,0,1},37228}},ejabberd_http_bind}) Failed authentication for colarocker@domain.de$ a little bit later also this: 2017-05-24 10:56:46.592 [info] <0.2793.0>@ejabberd_http_bind:handle_info:519 Session timeout. Closing the HTTP bind session: <<"a3c18330346b89d0a209b3ba658ebc9d41a7444a">> also, there is no added information in the xmpp-cloud-auth logs ( verbose logging is activated ) |
ok, little update: i used my subdomain for the BOSH http-bind. this created a problem for the chat username (user@sub.domain.de). changed the domain to domain.de (chat username now user@domain.de), now i finally can login to the chat hurray. So in conclusion, you should use user@domain to login to your nextcloud, otherwise it won't work right. |
update #2; f*** my conclusion; now it's also working without user"@domain.de"; login to xmpp works now without it... chat's still not working properly, no communication possible atm. but i think i'm gonna resolve it sooner or later.. |
@sualko I did. There are two issues referenced Your comments there say it's obsolete This says to use a custom mod_auth_external.lua, which is also included in the repo. I am using this. I'm not trying to suggest this doesn't work, but I assume someone has a working config so I would appreciate being able to look at it to see where mine differs. |
Also, I am curious: When prosody is running, should it automatically start external_cloud.py? I don't see that running, ever. |
@rev138 At least on ejabberd, I believe that on Prosody, it is only launched on the first login attempt. |
There is a new version out there, which has the "-A" test option to verify the connection script->cloud. Also, the README has been updated to reflect some of my distress when trying to get it running. Maybe some of this helps. |
My logs suggest external_cloud.py is working, but there is a loss in translation. 2017-06-03 20:21:16,462 INFO: Start external auth script 0.2.0 for prosody with endpoint: https://example.com/nextcloud/index.php/apps/ojsxc/ajax/externalApi.php /var/log/prosody/extauth.log /prosody.log Nextcloud logs I am going to mess with Prosody log levels to see exactly what the [41 bytes] is. |
|
extauth.log was not appended after server restart and login attempt. I will try different combinations.
|
With e41e2a4 externalApi.php Nextcloud logged 091d1fc external_cloud.py does work on cli -A options with the original externalApi.php I am not seeing the [41 bytes] with legacy authentication disabled. |
Could you try 64f1e9b externalApi.php? (An old version sneaked in) I don't have a prosody installation handy, but |
legacy auth is required by another js xmpp client just to register new users. I do not need it to be enabled. |
@rev138 and @colarocker: Did you check the new instructions in the README and the new code? Does this explain things better? Or are there still open questions? |
So I am running into this problem too... specifically #13 (comment) I am running Debian Jessie, Prosody 0.9.7-2 and Nextcloud 12 |
@MarcelWaldvogel : The -A option allows me to auth successfully. I'm starting to think the problem is with prosody and not xmpp-cloud-auth. I configured it to run a simple bash script that echos a string to a file in /tmp, but that doesn't work. It seems like prosody isn't launching the script. |
This is a weird issue, as there seem to be multiple cases and causes. Let me open new tickets for each of you. |
Dear all,
Now Conversation can finally login. But jsxc cannot (auth fails, xcauth says "noauth")! Kind regards, Olivier |
@Aquariu: What version of JSXC are you using? They (in theory) should all both check whether a user See e.g., |
Thanks for taking the time to answer, I had (wrongly) assumed that the last stable JSXC version (3.2.1) would be recent enough to work with xcauth. I was wrong obviously, at least for my case with usernames like emails. So I just updated to 3.3.0 beta. and reverted my changes to xcauth.py.
Testing:
this only happens when checking the Timelimited token options on the JSXC admin page Also, I can use the I'll try to come back to the time-limited token issue later but that's not a priority at the moment. Thanks very much for your support! |
Indeed, JSXC originated in a world without at signs in usernames. So there are still some rough edges there. There is an Some of our |
Thanks for the update. In my case, emails as logins made my setup simpler as I already had a nice and tidy dovecot install and wanted to use that an auth backend for all my NC users (so that I don't have to create and manage them at more than one place). |
If you have an external authentication source, then the XMPP server might also authenticate against it. At least, that was the original setup for the first few years of JSXC existence before |
I'm using v3.2.0-beta3 with NC 12.0.0 and prosody. Following the README precisely, this does not work for me, nor do I get any useful error messages. It doesn't look like the auth script is starting.
Can someone with working config please provide their complete prosody.cfg.lua and nextcloud admin settings?
Thanks
The text was updated successfully, but these errors were encountered: