diff --git a/services/graph/pkg/identity/ldap_education_school.go b/services/graph/pkg/identity/ldap_education_school.go index 3f389a30a9..c87c4b6dd7 100644 --- a/services/graph/pkg/identity/ldap_education_school.go +++ b/services/graph/pkg/identity/ldap_education_school.go @@ -253,13 +253,7 @@ func (i *LDAP) updateSchoolProperties(ctx context.Context, dn string, currentSch } if err := i.conn.Modify(mr); err != nil { - var lerr *ldap.Error logger.Debug().Err(err).Msg("error updating school number") - if errors.As(err, &lerr) { - if lerr.ResultCode == ldap.LDAPResultEntryAlreadyExists { - err = errorcode.New(errorcode.NameAlreadyExists, lerr.Error()) - } - } return err }