diff options
author | Alex Auvolat <alex@adnab.me> | 2020-11-13 12:55:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-11-13 12:55:32 +0100 |
commit | e4b5c67be0594575ef1f2ea729012ea5ad030a6a (patch) | |
tree | e7231e793b052800702efa379d0c30a0ed8f1d95 /write.go | |
parent | 4367e4a232938b03fb371ae2ee854458a5802fda (diff) | |
download | bottin-e4b5c67be0594575ef1f2ea729012ea5ad030a6a.tar.gz bottin-e4b5c67be0594575ef1f2ea729012ea5ad030a6a.zip |
Style changes
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 } |