Tobias Balle-Petersen
2008-Feb-15 15:16 UTC
[Dovecot] 1.0.10 - Getting user-quota from an Apple Open Directory?
Hello.... I'm running dovecot 1.0.10 with users in an LDAP database (Apples Open Directory). In Open Directory, a users mail-info is saved as XML-formated data in the field apple-user-mailattribute as seen below. I want to extract the value key "kUserDiskQuota". Nay ideas on how to accomplish this? <?xml version="1.0" encoding="UTF-8"?> <dict> <key>kAPOPRequired</key> <string>APOPNotRequired</string> <key>kAltMailStoreLoc</key> <string></string> <key>kAttributeVersion</key> <string>Apple Mail 1.0</string> <key>kAutoForwardValue</key> <string></string> <key>kIMAPLoginState</key> <string>IMAPAllowed</string> <key>kMailAccountLocation</key> <string>blah.example.com</string> <key>kMailAccountState</key> <string>Enabled</string> <key>kPOP3LoginState</key> <string>POP3Deny</string> <key>kUserDiskQuota</key> <string>500</string> </dict> Thanks, Tobias
Tobias Balle-Petersen
2008-Feb-19 10:38 UTC
[Dovecot] 1.0.10 - Getting user-quota from an Apple Open Directory?
Hello... Maybe I could have a script extract the quota-data from the LDAP-server and save it in the file maildirsize in the users homes? Any thoughts on this approach? Tobias Tobias Balle-Petersen wrote:> In Open Directory, a users mail-info is saved as XML-formated data in > the field apple-user-mailattribute as seen below. I want to extract the value key > "kUserDiskQuota".