Extmail添加用户时出错 [ 网站地图 ]

发表于:2010-6-30 浏览:239 作者: 来源:互联网

关键字:Extmail,添加用户,错误

描述:故障描述:安装Extmail 1.5后,进入extman添加用户时出现:新用户 test@wzihc.com 添加失败, 原因: cn: value #0 invalid per syntax由于安装时使用了

故障描述:安装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});

站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号