<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/03/2009 07:55 AM, Evgeniy Arbatov wrote:
<blockquote
cite="mid:56c989d50907030555j7a7ef95fj99ed6c4763dae973@mail.gmail.com"
type="cite">I am looking for a way to store mailbox quotas and ACLs
for Cyrus IMAP in LDAP. Is there a ready made solution for this
purpose? If not, how can it be possibly done? Thank you!<br>
<br>
</blockquote>
Attached is a tar file with the tools we use for exactly this purpose.
The files are:<br>
<ul>
<li>cyrus_get_quota.pl: a perl script to generate an LDIF file
suitable for import into an LDAP directory with the current user quotas
from Cyrus. This is to bootstrap the directory. You must already have
the appropriate schema in place.</li>
<li>cyrus_ldap_quota.pl: a perl script to be run periodically from
cron to search the directory for modified quotas and push those into
cyrus.</li>
<li>cyrus-utils.conf: a configuration file for the above scripts.<br>
</li>
</ul>
The schema used is the Srivastava Draft described here: <br>
<a class="moz-txt-link-freetext" href="http://www.watersprings.org/pub/id/draft-srivastava-ldap-mail-00.txt">http://www.watersprings.org/pub/id/draft-srivastava-ldap-mail-00.txt</a><br>
You can download the schema here:<br>
<a class="moz-txt-link-freetext" href="http://www.netfrag.org/webnews/article.php?id=89&group=nfo.links.computing">http://www.netfrag.org/webnews/article.php?id=89&group=nfo.links.computing</a><br>
<br>
The code is well documented, but feel free to ask if you have any
questions.<br>
<br>
Best regards,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight llc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Ste. 2A         v. 414.272.4477
Milwaukee, Wisconsin 53202                 f. 414.290.0335
</pre>
</body>
</html>