Skip to content

Commit

Permalink
disable special authentication modes. Support Simle Authentication mo…
Browse files Browse the repository at this point in the history
…de only
  • Loading branch information
gabibeyo committed Apr 11, 2019
1 parent b562265 commit d513615
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,7 @@ DDC enables querying Directory Servers in secured mode by just setting the setSe
By default, DDC ignores all standard certificates validations, in order to change this behaviour set the following flag: ignore.ssl.cert.chain.exception=true to **false**.

##### Authentication Mode
DDC enables setting a default authentication mode. The default mode is set to GSSAPI, in order to change this behaviour set the following flag: authentication.mechanism=GSSAPI to any of the following supported modes:
- CRAM-MD5
- DIGEST-MD5
- GSSAPI
- PLAIN
- NTLM
- GSS-SPNEGO
DDC supports Simple Authentication mode only

##### Connection Timeout
DDC enables setting a default timeout to DDC's queries. The default timeout value is set to 5000 seconds, in order to change this behaviour set the following flag connection.timeout=5000 to a different timeout value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ private LdapConnection getLdapConnection(Endpoint endpoint, DestinationType dest
((LdapNetworkConnection) connection).getConfig().setTimeout(timeout);
}
BindRequest bindRequest = new BindRequestImpl();
bindRequest.setSaslMechanism(DDCProperties.getInstance().getProperty("authentication.mechanism").toUpperCase());//* SupportedSaslMechanisms.PLAIN
bindRequest.setCredentials(password);
bindRequest.setSimple(true);
if (accountNameType == AccountNameType.DOMAIN_USERNAME)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
ignore.ssl.cert.chain.exception=false
connection.timeout=5000
# Supported values:CRAM-MD5,DIGEST-MD5,GSSAPI,PLAIN,NTLM,GSS-SPNEGO
authentication.mechanism=GSSAPI
connection.timeout=5000

0 comments on commit d513615

Please sign in to comment.