Skip to content

Commit

Permalink
Added object dump functionality without the ACL details
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 30, 2021
1 parent 822840a commit 852287f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/engine/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ func (o *Object) init() {
}
}

func (o *Object) String(ao *Objects) string {
func (o *Object) StringNoACL() string {
var result string
result += "OBJECT " + o.DN() + "\n"
for attr, values := range o.AttributeValueMap() {
Expand All @@ -757,6 +757,11 @@ func (o *Object) String(ao *Objects) string {
an.Children()
}
}
return result
}

func (o *Object) String(ao *Objects) string {
result := o.StringNoACL()

sd, err := o.SecurityDescriptor()
if err == nil {
Expand Down

0 comments on commit 852287f

Please sign in to comment.