diff options
author | dirkm <dirkmoermans@gmail.com> | 2019-07-03 20:23:29 +0200 |
---|---|---|
committer | Ned McClain <nedmcclain@gmail.com> | 2019-07-03 20:23:29 +0200 |
commit | ee4388c038f5d0912e2e2700443853308b6e621d (patch) | |
tree | 6cad5748c8de565bc02ff579adc158f8664f76cd /server_modify_test.go | |
parent | Implement FilterSubstrings (#2) (diff) | |
download | ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.gz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.bz2 ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.lz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.xz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.zst ldap-ee4388c038f5d0912e2e2700443853308b6e621d.zip |
Diffstat (limited to 'server_modify_test.go')
-rw-r--r-- | server_modify_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server_modify_test.go b/server_modify_test.go index d45b810..4501119 100644 --- a/server_modify_test.go +++ b/server_modify_test.go @@ -179,9 +179,9 @@ func (h modifyTestHandler) Delete(boundDN, deleteDN string, conn net.Conn) (LDAP } func (h modifyTestHandler) Modify(boundDN string, req ModifyRequest, conn net.Conn) (LDAPResultCode, error) { // only succeed on expected contents of modify.ldif: - if req.dn == "cn=testy,dc=example,dc=com" && len(req.addAttributes) == 1 && - len(req.deleteAttributes) == 3 && len(req.replaceAttributes) == 2 && - req.deleteAttributes[2].attrType == "details" && len(req.deleteAttributes[2].attrVals) == 0 { + if req.Dn == "cn=testy,dc=example,dc=com" && len(req.AddAttributes) == 1 && + len(req.DeleteAttributes) == 3 && len(req.ReplaceAttributes) == 2 && + req.DeleteAttributes[2].AttrType == "details" && len(req.DeleteAttributes[2].AttrVals) == 0 { return LDAPResultSuccess, nil } return LDAPResultInsufficientAccessRights, nil |