From ee4388c038f5d0912e2e2700443853308b6e621d Mon Sep 17 00:00:00 2001 From: dirkm Date: Wed, 3 Jul 2019 20:23:29 +0200 Subject: make serve function public (#4) * make serve function public * make Dn public * make attrs public --- server_modify_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server_modify_test.go') 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 -- cgit v1.2.3