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