I have a samba server exporting homes. Usermanagement/authentication is done via ldap (openldap to be specific). Now I want those users to have a filesystem quota. As far as i understand the best way would be to implement them in the underlying filesystem, with the standard linux quota tools ("quota"). Now since all other user management is done in ldap, also the quota information should be in ldap.
The only way of automatic connection of quota info in ldap with the filesystem (that I have found) is via pam_setquota. But since the users won't log in as linux users, I guess this will be useless. So I could write a little script that generates the quota files from information it finds in ldap. This script would run regularly via cron. But this seems a little hackish to me (allthough I have seen this work well in practise). I was wondering if anyone has a better (or different :)) idea for this task.