Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Open
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
8 changes: 0 additions & 8 deletions resource_ldap_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,6 @@ func readLDAPObjectImpl(d *schema.ResourceData, meta interface{}, updateState bo
log.Printf("[DEBUG] ldap_object::read - skipping attribute %q of %q", attribute.Name, dn)
continue
}
if len(attribute.Values) == 1 {
// we don't treat the RDN as an ordinary attribute
a := fmt.Sprintf("%s=%s", attribute.Name, attribute.Values[0])
if strings.HasPrefix(dn, a) {
log.Printf("[DEBUG] ldap_object::read - skipping RDN %q of %q", a, dn)
continue
}
}
log.Printf("[DEBUG] ldap_object::read - adding attribute %q to %q (%d values)", attribute.Name, dn, len(attribute.Values))
// now add each value as an individual entry into the object, because
// we do not handle name => []values, and we have a set of maps each
Expand Down