authenticate mailbox based on owner

This commit is contained in:
Girish Ramakrishnan
2016-09-26 11:50:32 -07:00
parent 3e8cba08e3
commit 4a37747cfe
2 changed files with 23 additions and 14 deletions

View File

@@ -495,13 +495,5 @@ describe('Ldap', function () {
done(error);
});
});
it('allows with valid email', function (done) {
var client = ldap.createClient({ url: 'ldap://127.0.0.1:' + config.get('ldapPort') });
client.bind('cn=' + USER_0.email + ',ou=mailboxes,dc=cloudron', USER_0.password, function (error) {
done(error);
});
});
});
});