mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
LDAP: send error on DIGEST-MD5 bind request
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1755 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
7005f6dacd
commit
b6789e75f2
@ -508,7 +508,13 @@ public class LdapConnection extends AbstractConnection {
|
||||
reqBer.parseSeq(null);
|
||||
ldapVersion = reqBer.parseInt();
|
||||
userName = reqBer.parseString(isLdapV3());
|
||||
password = reqBer.parseStringWithTag(Ber.ASN_CONTEXT, isLdapV3(), null);
|
||||
if (reqBer.peekByte() == (Ber.ASN_CONTEXT | Ber.ASN_CONSTRUCTOR | 3)) {
|
||||
reqBer.parseSeq(null);
|
||||
String mechanism = reqBer.parseString(isLdapV3());
|
||||
throw new IOException("Unsupported authentication mechanism: "+mechanism);
|
||||
} else {
|
||||
password = reqBer.parseStringWithTag(Ber.ASN_CONTEXT, isLdapV3(), null);
|
||||
}
|
||||
|
||||
if (userName.length() > 0 && password.length() > 0) {
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_BIND_USER", currentMessageId, userName));
|
||||
|
Loading…
Reference in New Issue
Block a user