Truenas Nextcloud user sync

aldar

Cadet
Joined
Jun 26, 2023
Messages
5
Is it possible to sync users and groups from Truenas to Nextcloud.
Creating and deleting users on both sides makes it hard to use for small business environments.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Using an LDAP server/service for both would be the "solution" for that. (or use LDAP to connect to AD from Nextcloud and connect TrueNAS to that same AD)

I doubt anyone would have constructed the code you're asking for specifically to sync TrueNAS user DB with Nextcloud. (but feel free to raise a feature request if you feel strongly enough about it)
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Using an LDAP server/service for both would be the "solution" for that. (or use LDAP to connect to AD from Nextcloud and connect TrueNAS to that same AD)

I doubt anyone would have constructed the code you're asking for specifically to sync TrueNAS user DB with Nextcloud. (but feel free to raise a feature request if you feel strongly enough about it)

I doubt it could be synced easily since we don't store plaintext passwords in our DB and Nextcloud's REST API expects to receive plaintext password. Probably easier to just create your own simple script that makes rest API calls to TrueNAS and nextcloud when adding or modifying users (or just use a directory service, since this is the sort of problem they are supposed to solve).
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Purchasing separate machine just for authentication would be overkill. But is it Ok to run LDAP on Truenas server as a VM?
You could, but it's already there under Directory Services, just turn it on...
 

aldar

Cadet
Joined
Jun 26, 2023
Messages
5
Under Directory Services we have only connection settings to existing LDAP server. I mean, if I don't have any LDAP. Is it ok to run something like Freeipa or Openldap on Truenas as a VM?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
OK, fair point.

I would suggest running it in a jail rather than a VM due to the lower drain on resources.

In a new jail, pkg install openldap26-server
 

aldar

Cadet
Joined
Jun 26, 2023
Messages
5
OK, fair point.

I would suggest running it in a jail rather than a VM due to the lower drain on resources.

In a new jail, pkg install openldap26-server
Thanks, I didn't know that there is option for manual jail.
Now I need to find LDAP that has GUI.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
pkg install phpldapadmin-php82

And then you would need to do the necessary config for the install of whichever webserver you put there to run it, of course.
 
Last edited:
Top