aboutsummaryrefslogtreecommitdiff
path: root/write.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-11-13 12:55:32 +0100
committerAlex Auvolat <alex@adnab.me>2020-11-13 12:55:32 +0100
commite4b5c67be0594575ef1f2ea729012ea5ad030a6a (patch)
treee7231e793b052800702efa379d0c30a0ed8f1d95 /write.go
parent4367e4a232938b03fb371ae2ee854458a5802fda (diff)
downloadbottin-e4b5c67be0594575ef1f2ea729012ea5ad030a6a.tar.gz
bottin-e4b5c67be0594575ef1f2ea729012ea5ad030a6a.zip
Style changes
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
}