This commit is contained in:
laodaming
2023-11-22 10:12:46 +08:00
parent 040016d88f
commit 53a99c36b1
17 changed files with 55 additions and 68 deletions

View File

@@ -12,14 +12,16 @@ type Ldap struct {
rootDN string
conn *ldap.Conn
peopleGroupDN string
jwtSecret string
}
func NewLdap(conn *ldap.Conn, baseDN, rootDN, peopleGroupDN string) *Ldap {
func NewLdap(conn *ldap.Conn, baseDN, rootDN, peopleGroupDN, jwtSecret string) *Ldap {
return &Ldap{
baseDN: baseDN,
rootDN: rootDN,
conn: conn,
peopleGroupDN: peopleGroupDN,
jwtSecret: jwtSecret,
}
}