kd2org / karadav

Lightweight NextCloud compatible WebDAV server
https://fossil.kd2.org/karadav/
GNU Affero General Public License v3.0
155 stars 14 forks source link

Configure per user quota and link to LDAP groups? #4

Closed poVoq closed 2 years ago

poVoq commented 2 years ago

I can only see a way to configure the default storage quota, how can I configure that per user easily? Edit: ah I guess it's behind the "manage users" option on the web-interface?

Also a nice addition would be to link some different default quotas to LDAP groups.

Thanks!

bohwaz commented 2 years ago

I can only see a way to configure the default storage quota, how can I configure that per user easily? Edit: ah I guess it's behind the "manage users" option on the web-interface?

Yes :)

image

You also just change it in the database directly, using sqlite3 CLI:

sqlite3 data/db.sqlite "UPDATE users SET quota = 300*1024*1024 WHERE login = 'demo';"

(that's setting the quota to 300 MB for user demo).

Also a nice addition would be to link some different default quotas to LDAP groups.

I'm not very familiar with LDAP so I don't know how to do that, but PRs are welcome.