Quota from LDAP?

Your question

How to add an attribute for disk quota on LDAP in Version 16.x

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

Let me look up how LDAP quota configuration works in Stalwart.

Stalwart does not read disk quota attributes from LDAP. The documentation is explicit on this point:

“Quota values are held exclusively on the Account and Tenant objects; the server does not read disk-quota attributes from external directories. Even when authentication is delegated to LDAP or SQL, quotas must be configured through the Account object (or the Tenant object for tenant-wide caps) from the WebUI or the JMAP API.”

There is no attrQuota or equivalent LDAP attribute mapping available – the LDAP attribute list deliberately omits per-account disk quota. Quotas must be set directly on each Account object (via the WebUI under Management > Directory > Accounts, or via the JMAP API) using the maxDiskQuota key in the account’s quotas map.

Relevant docs:

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong. If you found it useful, mention @helpbot in any reply to ask follow-up questions and the bot will respond again.

in 15.x it was possible to dedicate an LDAP Attribute for this

You’re right that this was possible in 0.15. In the current version, that behavior was removed – quotas are no longer read from LDAP attributes at all, regardless of what was previously configured. The docs are explicit that quota values are held exclusively on the Account and Tenant objects, and must be set through the WebUI or JMAP API.

If you have many accounts to migrate, the JMAP API would be the practical path for bulk-setting maxDiskQuota on each Account object, rather than configuring them one by one in the WebUI.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong. If you found it useful, mention @helpbot in any reply to ask follow-up questions and the bot will respond again.

ok no problem, i can live with that

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong. If you found it useful, mention @helpbot in any reply to ask follow-up questions and the bot will respond again.