When set in Workgroup Manager, disk quotas are not enforced for users whose accounts are in the local NetInfo database of the server, even though the "homedirectoryquota" attribute appears in the user records.
The simplest workaround is to configure the server to be an Open Directory Master and to export the local NetInfo accounts into the LDAP database. To accomplish this, do the following:
- Open Server Admin, and go to the Open Directory service.
- Click the Settings button, and then the General tab.
- If the "Role:" pop-up menu is set to "Standalone Server," select "Open Directory Master" from the list, and you'll be prompted to enter a server administrator's name and password, the Kerberos realm name, and the LDAP search base.
- Open Workgroup Manager, and go to the NetInfo database.
- Select the users you wish to import into the LDAP database.
- From the Server menu, choose Export.
- Navigate to the LDAP database in Workgroup Manager.
- From the Server menu, choose Import.
- Locate the export file created in step 6, then click the Import button.
- You'll have to reset the imported user passwords at this point.
If you have to use a Standalone server, or need to store user accounts in the NetInfo domain on an Open Directory Master, you can use /usr/sbin/edquota instead of Workgroup Manager to set and enforce disk quotas. For more information on edquota, you can launch /Applications/Utilities/Terminal and type
man edquota at the prompt.