!
Hubzilla Support ForumGood news for those looking to integrate #
HubZilla and #
Nextcloud without having to rely on an external service like LDAP.
After some coordination with the user_sql Nextcloud app the latest development version now supports salted whirlpool hashed passwords, which is what Hubzilla is using.
See:
https://github.com/nextcloud/user_sql/issues/65
(forget about the SHA512, my original mistake)
I have it working here, but it requires some extra steps:
1. Create a view in your database to combine the account and the channel tables.
SELECT `channel_address`, `channel_name`, `account_password`, `account_salt`, `account_email` FROM `account`, `channel` WHERE `channel_account_id` = `account_id`
as the SQL query should do for basic setups
2. Install Nextcloud and the user_sql app (until the next official release you will need the develop branch from github)
3. Configure user_sql to access the HubZilla database and choose the above parameters for password hash, salt etc. Channel address should be the user name and channel name the full name. The hashing algorithm needs to be "whirlpool" and you need to check the "prepend salt" checkbox.
4. Enjoy logging into your nextcloud with your Hubzilla channel name and password (email might also work, but could cause issue if you have multiple channels per account). You can link the CalDAV calendars and also the WebDAV storage via the external storage app in Nextcloud easily.
If you are feeling fancy you can install the JSXC XMPP client Nextcloud app and link an XMPP server like Prosody or Ejabberd to your Nextcloud and Hubzilla via the Xcloudauth software:
https://github.com/jsxc/xmpp-cloud-auth
I have not yet tested it, but I believe the auto login feature from the HubZilla XMPP plugin might work this way.
Todo: find a way to have user roles in HubZilla to link them with the groups in Nextcloud :)