猝然临之而不惊,无故加之而不怒。
分类:
2012-03-24 16:59:09
如果进入extmail全局地址本后,全局地址本信息为乱码,需要修改extmail源代码并增加webmail.cf配置文件参数,方法如下:
vi /usr/local/www/extmail/libs/Ext/App/GlobalAbook.pm
修改:
sub _init_obj {
......
if ($type eq 'ldap') {
$obj = Ext::GlobalAbook->new(
type => 'ldap',
base => $sysconfig->{SYS_G_ABOOK_LDAP_BASE},
rootdn => $sysconfig->{SYS_G_ABOOK_LDAP_ROOTDN},
rootpw => $sysconfig->{SYS_G_ABOOK_LDAP_ROOTPW},
filter => $sysconfig->{SYS_G_ABOOK_LDAP_FILTER},
host => $sysconfig->{SYS_G_ABOOK_LDAP_HOST},
convert => 1, # XXX this must exist for LDAP v3
bind => 1,
);
......
}
其中
convert => 1, # XXX this must exist for LDAP v3
改为
#convert => 1, # XXX this must exist for LDAP v3
接着加两行,内容如下:
convert => $sysconfig->{SYS_G_ABOOK_LDAP_CONVERT},
charset => $sysconfig->{SYS_G_ABOOK_LDAP_CHARSET},
存盘退出
vi /usr/local/www/extmail/webmail.cf
加上:
SYS_G_ABOOK_LDAP_CONVERT = 0
SYS_G_ABOOK_LDAP_CHARSET = utf-8
存盘退出