主题: 请问:关于create_mail_user_OpenLDAP.py创建用户

系统:UBUNTU 9.04
MAIL:0.51

用create_mail_user_OpenLDAP.py创建用户,并在LDAP里导入成功,但是在iredadmin后右管理不了用户,域里可以看到用户数量,但一点数量就会500错误。
在iredadmin里创建的用户可以正常查看。不知是什么原因。

回复: 请问:关于create_mail_user_OpenLDAP.py创建用户

在apache的log里有什么错误信息?贴上来看看

回复: 请问:关于create_mail_user_OpenLDAP.py创建用户

root@iredmail:/var/log/apache2# tail error.log
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 29, in top-level template code, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     {% from "msgHandlers.html" import userMsgHandler with context %}, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/layout.html", line 82, in top-level template code, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     {% block main %}{% endblock main %}, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 104, in block "main", referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     <td>{% if entries.get('mailQuota', ['0'])[0] == '0' %}{{ _('Unlimited') }}{% else %}{{ entries.get('mailQuota', ['0'])[0] |filesizeformat }} {% endif %}</td>, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 52, in filesizeformat, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     return "%d Bytes" % (bytes, bytes != 1 and 's' or ''), referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9] TypeError: not all arguments converted during string formatting, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9] , referer: https://transluck.com/iredadmin/domains
root@iredmail:/var/log/apache2# tail error.log
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 29, in top-level template code, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     {% from "msgHandlers.html" import userMsgHandler with context %}, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/layout.html", line 82, in top-level template code, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     {% block main %}{% endblock main %}, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 104, in block "main", referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     <td>{% if entries.get('mailQuota', ['0'])[0] == '0' %}{{ _('Unlimited') }}{% else %}{{ entries.get('mailQuota', ['0'])[0] |filesizeformat }} {% endif %}</td>, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 52, in filesizeformat, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9]     return "%d Bytes" % (bytes, bytes != 1 and 's' or ''), referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9] TypeError: not all arguments converted during string formatting, referer: https://transluck.com/iredadmin/domains
[Thu Nov 26 22:43:16 2009] [error] [client 58.39.3.9] , referer: https://transluck.com/iredadmin/domains

回复: 请问:关于create_mail_user_OpenLDAP.py创建用户

Bug 一个。

请根据这里的修正方法进行修正:
http://www.iredmail.org/hotfix.html