mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-19 18:09:27 +08:00
新增:ldap用户OTP认证(同步ldap用户到本地【仅作为管理otp秘钥,支持ldap用户下发客户端证书】)
新增:支持用户批量发送邮件,批量删除
This commit is contained in:
@@ -114,6 +114,9 @@ func checkLocalUser(name, pwd, group string, ext map[string]interface{}) error {
|
||||
return fmt.Errorf("%s %s", name, "用户已过期")
|
||||
}
|
||||
}
|
||||
if v.Type == "ldap" {
|
||||
return fmt.Errorf("%s %s", name, "LDAP用户不能使用本地认证")
|
||||
}
|
||||
// 判断用户组信息
|
||||
if !utils.InArrStr(v.Groups, group) {
|
||||
return fmt.Errorf("%s %s", name, "用户组错误")
|
||||
|
Reference in New Issue
Block a user