当前位置: 主页 > 服务器技术 > Mail服务器 > Extmail添加用户时出错

Extmail添加用户时出错

时间:2010-6-30来源:互联网 点击:
故障描述:安装Extmail 1.5后,进入extman添加用户时出现:新用户 test@wzihc.com 添加失败, 原因: cn: value #0 invalid per syntax
由于安装时使用了LDAP,添加用户时没有输入通用名导致的

解决方法:修改 /var/www/extsuite/extman/libs/Ext/Mgr/LDAP.pm


    my $attr = [
        mail => $opt{mail},
        #cn => $opt{cn},  #注释掉这行
        virtualDomain => $opt{domain},
        uidNumber => $opt{uidnumber} || ’1000’,
        gidNumber => $opt{gidnumber} || ’1000’,
        uid => $opt{uid},
        objectClass => [’top’, ’uidObject’, ’extmailUser’],
        netdiskQuota => $opt{netdiskquota},
        active => $opt{active} ? 1 : 0,
        mailQuota => $opt{quota},
        userPassword => $self->encrypt($ctype, $opt{passwd}),
        ];
    push @$attr, (cn=>$opt{cn}) if($opt{cn}); #添加这行
    push @$attr, (clearPassword => $opt{passwd}) if $self->{opt}->{’ldif_attr_clearpw’};
    push @$attr, (mailHost => $opt{mailhost}) if ($opt{mailhost});
站长资讯网
. TAG: Extmail 添加用户 错误
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言