code: function(olcAccesses) {
        var i, isArray, match, olcAccess;
        isArray = Array.isArray(olcAccesses);
        if (!isArray) {
          olcAccesses = [olcAccesses];
        }
        olcAccesses = (function() {
          var j, len, results;
          results = [];
          for (i = j = 0, len = olcAccesses.length; j < len; i = ++j) {
            olcAccess = olcAccesses[i];
            match = /^\{(\d+)\}to\s+(.*?)(\s*by\s+|$)(.*)$/.exec(olcAccess);
            if (!match) {
              throw Error('Invalid olcAccess entry');
            }
            results.push({
              index: parseInt(match[1], 10),
              to: match[2],
              by: match[4].split(/\s+by\s+/)
            });
          }
          return results;
        })();
        if (isArray) {
          return olcAccesses;
        } else {
          return olcAccesses[0];
        }
      }
docs: ``` ldap.acl .parse [ '{0}to attrs=userPassword,userPKCS12 by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage by dn.exact="cn=nssproxy,ou=users,dc=adaltas,dc=com" read by self write by anonymous auth by * none' ] .should.eql [ index: 0 to: 'attrs=userPassword,userPKCS12' by: [ 'dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage' 'dn.exact="cn=nssproxy,ou=users,dc=adaltas,dc=com" read' 'self write' 'anonymous auth' '* none' ] ] ```