You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @iyongfei. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.
Question Report
LDAP Result Code 65 "Object Class Violation": attribute 'uniqueMember' not allowed
/ AddUserToGroup 添加用户到分组
func (x GroupService) AddUserToGroup(dn, udn string) error {
//判断dn是否以ou开头
if dn[:3] == "ou=" {
return errors.New("不能添加用户到OU组织单元")
}
newmr := ldap.NewModifyRequest(dn, nil)
newmr.Add("uniqueMember", []string{udn})
// 获取 LDAP 连接
conn, err := common.GetLDAPConn()
defer common.PutLADPConn(conn)
if err != nil {
return err
}
return conn.Modify(newmr)
}
请在提交问题之前回答这些问题,谢谢。 | Please answer these questions before submitting them. Thank you.
你使用了哪个版本? | Which version did you use?
项目推荐的版本,
OPENLDAP="1.5.0"
PHPLDAPADMIN="0.9.0"
预期行为 | Expected behavior
实际行为 | Actual behavior
原因分析(如果可以) | Cause analysis (if possible)
问题重现步骤 | Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: