diff options
Diffstat (limited to 'write.go')
-rw-r--r-- | write.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -134,7 +134,7 @@ func (server *Server) handleAddInternal(state *State, r *message.AddRequest) (in entry[dnSplit[0].Type] = []string{dnSplit[0].Value} // Add our item in the DB - err = server.addElements(dn, entry) + err = server.putAttributes(dn, entry) if err != nil { return ldap.LDAPResultOperationsError, err } @@ -239,7 +239,7 @@ func (server *Server) handleDeleteInternal(state *State, r *message.DelRequest) } } - err = server.addElements(group, Entry{ + err = server.putAttributes(group, Entry{ ATTR_MEMBER: newMembers, }) if err != nil { @@ -455,7 +455,7 @@ func (server *Server) handleModifyInternal(state *State, r *message.ModifyReques entry[ATTR_MODIFYTIMESTAMP] = []string{genTimestamp()} // Save the edited values - err = server.addElements(dn, entry) + err = server.putAttributes(dn, entry) if err != nil { return ldap.LDAPResultOperationsError, err } |