aboutsummaryrefslogtreecommitdiff
path: root/write.go
diff options
context:
space:
mode:
Diffstat (limited to 'write.go')
-rw-r--r--write.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/write.go b/write.go
index b04cd2c..3f0033f 100644
--- a/write.go
+++ b/write.go
@@ -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
}