增加添加部门接口

This commit is contained in:
laodaming
2023-11-16 14:07:53 +08:00
parent 0ae230ddba
commit def6990eba
11 changed files with 332 additions and 20 deletions

View File

@@ -8,18 +8,16 @@ import (
)
type Ldap struct {
baseDN string
rootDN string
peopleGroupOu string
conn *ldap.Conn
baseDN string
rootDN string
conn *ldap.Conn
}
func NewLdap(conn *ldap.Conn, baseDN, rootDN, peopleGroupOu string) *Ldap {
func NewLdap(conn *ldap.Conn, baseDN, rootDN string) *Ldap {
return &Ldap{
baseDN: baseDN,
rootDN: rootDN,
peopleGroupOu: peopleGroupOu,
conn: conn,
baseDN: baseDN,
rootDN: rootDN,
conn: conn,
}
}