故障描述:安装Extmail 1.5后,进入extman添加用户时出现:新用户 添加失败, 原因: 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});
阅读(3120) | 评论(0) | 转发(0) |