LDAPRoleBaseDN
This commit is contained in:
@@ -66,7 +66,7 @@ func New() *Client {
|
||||
BindDN: conf.GetConfig().LDAPBindDN,
|
||||
BindPass: conf.GetConfig().LDAPBindPW,
|
||||
BaseDN: conf.GetConfig().LDAPBaseDN,
|
||||
UserBaseDN: conf.GetConfig().LDAPRoleBaseDN,
|
||||
UserBaseDN: conf.GetConfig().LDAPUserBaseDN,
|
||||
RoleBaseDN: conf.GetConfig().LDAPRoleBaseDN,
|
||||
}
|
||||
return &Client{
|
||||
@@ -476,6 +476,7 @@ func (c *ldapConn) searchEntries(baseDN, query string, attrs []string) ([]map[st
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fmt.Println(res.Entries)
|
||||
|
||||
var entries []map[string][]string
|
||||
for _, v := range res.Entries {
|
||||
|
||||
Reference in New Issue
Block a user