Skip to content

Commit

Permalink
Appending defaultIdAttribute into default configs (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlampsi committed Mar 1, 2021
1 parent 53a42af commit d46d759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func DefaultUsersConfigs() *UsersConfigs {
const defaultIdAttribute = "sAMAccountName"
return &UsersConfigs{
IdAttribute: defaultIdAttribute,
Attributes: []string{"givenName", "sn", "mail"},
Attributes: []string{defaultIdAttribute, "givenName", "sn", "mail"},
FilterById: fmt.Sprintf("(&(objectClass=person)(%s=%%v))", defaultIdAttribute),
FilterByDn: "(&(objectClass=person)(distinguishedName=%v))",
FilterGroupsByDn: "(&(objectClass=group)(member=%v))",
Expand All @@ -75,7 +75,7 @@ func DefaultGroupsConfigs() *GroupsConfigs {
const defaultIdAttribute = "sAMAccountName"
return &GroupsConfigs{
IdAttribute: defaultIdAttribute,
Attributes: []string{"cn", "description"},
Attributes: []string{defaultIdAttribute, "cn", "description"},
FilterById: fmt.Sprintf("(&(objectClass=group)(%s=%%v))", defaultIdAttribute),
FilterByDn: "(&(objectClass=group)(distinguishedName=%v))",
FilterMembersByDn: "(&(objectCategory=person)(memberOf=%v))",
Expand Down

0 comments on commit d46d759

Please sign in to comment.