jsxc / xmpp-cloud-auth

:key: Authentication hub for Nextcloud+JSXC→Prosody, ejabberd, saslauthd, Postfix
https://www.jsxc.org
MIT License
60 stars 18 forks source link

Groups buddies not shown, ejabberdctl returned non-zero exit status 1 #38

Closed wargreen closed 5 years ago

wargreen commented 6 years ago

Hi, When logging in nextcloud with an user, the group's buddies isn't shown in the roster. In the xcauth.log i get :

017-12-10 19:23:26,729 DEBUG: Receive operation auth
2017-12-10 19:23:26,730 DEBUG: Token is too short: 10 != 23 (maybe not a token?)
2017-12-10 19:23:26,732 DEBUG: Resetting dropped connection: cloud.lebib.org
2017-12-10 19:23:30,653 DEBUG: https://cloud.lebib.org:443 "POST /apps/ojsxc/ajax/externalApi.php HTTP/1.1" 200 43
2017-12-10 19:23:30,654 INFO: SUCCESS: Cloud says password for test2@localhost is valid
2017-12-10 19:23:31,188 DEBUG: https://cloud.lebib.org:443 "POST /apps/ojsxc/ajax/externalApi.php HTTP/1.1" 200 173
2017-12-10 19:23:31,190 DEBUG: roster_thread for {u'test': {u'name': u'test', u'groups': [u'test']}, u'test3': {u'name': u'test3', u'groups': [u'test']}, u'test2': {u'name': u'test2', u'groups': [u'test']}}
2017-12-10 19:23:31,190 DEBUG: /usr/sbin/ejabberdctl['srg_create', 'test', 'localhost', 'test', 'test', 'test']
2017-12-10 19:23:31,631 WARNING: ejabberdctl /usr/sbin/ejabberdctl['srg_create', 'test', 'localhost', 'test', 'test', 'test'] failed with Command '['/usr/sbin/ejabberdctl', 'srg_create', 'test', 'localhost', 'test', 'test', 'test']' returned non-zero exit status 1
2017-12-10 19:23:31,632 DEBUG: /usr/sbin/ejabberdctl['srg_get_members', 'test', 'localhost']
2017-12-10 19:23:32,038 WARNING: ejabberdctl /usr/sbin/ejabberdctl['srg_get_members', 'test', 'localhost'] failed with Command '['/usr/sbin/ejabberdctl', 'srg_get_members', 'test', 'localhost']' returned non-zero exit status 1
2017-12-10 19:23:39,015 DEBUG: Receive operation isuser
2017-12-10 19:23:39,018 DEBUG: Resetting dropped connection: cloud.lebib.org
2017-12-10 19:23:39,154 DEBUG: https://cloud.lebib.org:443 "POST /apps/ojsxc/ajax/externalApi.php HTTP/1.1" 200 43
2017-12-10 19:23:39,155 INFO: Cloud says user test2@localhost exists

Nothing in ejabberd.log, even with loglevel: 5.

wargreen commented 6 years ago

Sorry for the log format, the lines break don't seem work inside the code block...

wargreen commented 6 years ago

Adding mod_admin_extra: {} solve this. ejabberd 16.09-4, Debian 4.9.51-1

MarcelWaldvogel commented 6 years ago

Sorry for the delay over the break. Is this solved and can be closed?

If not, could you please run:

/usr/sbin/ejabberdctl 'srg_create' 'test' 'localhost' 'test' 'test' 'test'

and report the output?

MarcelWaldvogel commented 5 years ago

Closing due to inactivity.