Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@

Kopano b.v.
ownCloud GmbH
OpenCloud GmbH
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# Please keep the list sorted.

Felix Bartels <[email protected]>
Ralf Haferkamp <[email protected]>
Ralf Haferkamp <[email protected]> <[email protected]>
Simon Eisenmann <[email protected]> <[email protected]>
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/libregraph/idm

go 1.23.0

toolchain go1.23.6
go 1.24.0

require (
github.com/Songmu/prompter v0.5.1
Expand All @@ -25,7 +23,7 @@ require (
github.com/spf13/cobra v1.10.1
github.com/trustelem/zxcvbn v1.0.1
go.etcd.io/bbolt v1.4.3
golang.org/x/text v0.28.0
golang.org/x/text v0.29.0
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand All @@ -157,8 +157,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
Expand Down
20 changes: 10 additions & 10 deletions pkg/ldapentry/ldapentry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestApplyModifyDelete(t *testing.T) {
}
values := e.GetAttributeValues("displayName")
if len(values) != 0 {
t.Errorf("Deleting all values from Attribute failed")
t.Error("Deleting all values from Attribute failed")
}

mr.Changes = []ldap.Change{}
Expand All @@ -84,7 +84,7 @@ func TestApplyModifyDelete(t *testing.T) {
}
values = e.GetAttributeValues("multivalue")
if len(values) != 1 || values[0] != "value2" {
t.Errorf("Deleting a non-RDN Values from RDN Attribute failed")
t.Error("Deleting a non-RDN Values from RDN Attribute failed")
}
}

Expand All @@ -95,22 +95,22 @@ func TestApplyModifyAddValue(t *testing.T) {
mr.Add("mail", []string{"other@example"})
e, err := ApplyModify(userEntry, mr)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
vals := e.GetAttributeValues("mail")
if len(vals) != 2 {
t.Errorf("Add attribute value failed")
t.Error("Add attribute value failed")
}

mr.Changes = []ldap.Change{}
mr.Add("newAttribute", []string{"value"})
e, err = ApplyModify(userEntry, mr)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
val := e.GetAttributeValue("newAttribute")
if val != "value" {
t.Errorf("Add attribute value failed")
t.Error("Add attribute value failed")
}
}

Expand All @@ -121,11 +121,11 @@ func TestApplyModifyReplace(t *testing.T) {
mr.Replace("mail", []string{"other@example"})
e, err := ApplyModify(userEntry, mr)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
vals := e.GetAttributeValues("mail")
if len(vals) != 1 || vals[0] != "other@example" {
t.Errorf("Replace attribute value failed")
t.Error("Replace attribute value failed")
}
}

Expand All @@ -148,11 +148,11 @@ func TestApplyModifyReplaceRDN(t *testing.T) {
mr.Replace("uid", []string{"user", "otheruser"})
e, err := ApplyModify(userEntry, mr)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
vals := e.GetAttributeValues("uid")
if len(vals) != 2 {
t.Errorf("Unexpected number of values after replace")
t.Error("Unexpected number of values after replace")
}

for _, v := range []string{"user", "otheruser"} {
Expand Down
Loading