allow login via email cn to access mailbox

This commit is contained in:
Girish Ramakrishnan
2016-09-26 12:03:37 -07:00
parent 4a37747cfe
commit 7d7de9e900
2 changed files with 14 additions and 0 deletions

View File

@@ -495,5 +495,13 @@ 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.username + '@' + config.fqdn() + ',ou=mailboxes,dc=cloudron', USER_0.password, function (error) {
done(error);
});
});
});
});