You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by br...@apache.org on 2017/06/22 20:42:57 UTC
drill git commit: edits to custom authenticator doc and windows odbc
config doc
Repository: drill
Updated Branches:
refs/heads/gh-pages 82686d6ed -> 9757823ab
edits to custom authenticator doc and windows odbc config doc
Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/9757823a
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/9757823a
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/9757823a
Branch: refs/heads/gh-pages
Commit: 9757823ab414c0c3105bf57e18b61b60acecc982
Parents: 82686d6
Author: Bridget Bevens <bb...@maprtech.com>
Authored: Thu Jun 22 13:42:13 2017 -0700
Committer: Bridget Bevens <bb...@maprtech.com>
Committed: Thu Jun 22 13:42:13 2017 -0700
----------------------------------------------------------------------
.../015-creating-custom-authenticators.md | 17 ++++++++++-------
.../030-configuring-odbc-on-windows.md | 10 +++++-----
2 files changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/drill/blob/9757823a/_docs/develop-custom-functions/adding-custom-functions-to-drill/015-creating-custom-authenticators.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/adding-custom-functions-to-drill/015-creating-custom-authenticators.md b/_docs/develop-custom-functions/adding-custom-functions-to-drill/015-creating-custom-authenticators.md
index 4da469b..0973c1a 100644
--- a/_docs/develop-custom-functions/adding-custom-functions-to-drill/015-creating-custom-authenticators.md
+++ b/_docs/develop-custom-functions/adding-custom-functions-to-drill/015-creating-custom-authenticators.md
@@ -1,6 +1,6 @@
---
title: "Creating Custom Authenticators"
-date: 2016-03-02 00:30:47 UTC
+date: 2017-06-22 20:42:14 UTC
parent: "Adding Custom Functions to Drill"
---
@@ -13,17 +13,20 @@ Complete the following steps to build and implement a custom authenticator:
MyCustomDrillUserAuthenticatorImpl.java
- package myorg.dept.drill.security;
+ package myorg.dept.drill.security;
import org.apache.drill.common.config.DrillConfig;
import org.apache.drill.exec.exception.DrillbitStartupException;
+ import org.apache.drill.exec.rpc.user.security.UserAuthenticator;
+ import org.apache.drill.exec.rpc.user.security.UserAuthenticationException;
+ import org.apache.drill.exec.rpc.user.security.UserAuthenticatorTemplate;
import java.io.IOException;
/*
- * Implement {@link org.apache.drill.exec.rpc.user.security.UserAuthenticator} for illustraing how to develop a custom authenticator and use it in Drill
+ * Implement {@link org.apache.drill.exec.rpc.user.security.UserAuthenticator} for illustrating how to develop a custom authenticator and use it in Drill
*/
- @UserAuthenticatorTemplate(type = “myCustomAuthenticatorType”)
+ @UserAuthenticatorTemplate(type = "myCustomAuthenticatorType")
public class MyCustomDrillUserAuthenticatorImpl implements UserAuthenticator {
public static final String TEST_USER_1 = "testUser1";
@@ -50,9 +53,9 @@ Complete the following steps to build and implement a custom authenticator:
@Override
public void authenticate(String userName, String password) throws UserAuthenticationException {
- if (!(TEST_USER_1.equals(user) && TEST_USER_1_PASSWORD.equals(password)) &&
- !(TEST_USER_2.equals(user) && TEST_USER_2_PASSWORD.equals(password))) {
- throw new UserAuthenticationException(“custom failure message if the admin wants to show it to user”);
+ if (!(TEST_USER_1.equals(userName) && TEST_USER_1_PASSWORD.equals(password)) &&
+ !(TEST_USER_2.equals(userName) && TEST_USER_2_PASSWORD.equals(password))) {
+ throw new UserAuthenticationException("custom failure message if the admin wants to show it to user");
}
}
http://git-wip-us.apache.org/repos/asf/drill/blob/9757823a/_docs/odbc-jdbc-interfaces/configuring-odbc/030-configuring-odbc-on-windows.md
----------------------------------------------------------------------
diff --git a/_docs/odbc-jdbc-interfaces/configuring-odbc/030-configuring-odbc-on-windows.md b/_docs/odbc-jdbc-interfaces/configuring-odbc/030-configuring-odbc-on-windows.md
index 4d1c26e..c63a6e1 100644
--- a/_docs/odbc-jdbc-interfaces/configuring-odbc/030-configuring-odbc-on-windows.md
+++ b/_docs/odbc-jdbc-interfaces/configuring-odbc/030-configuring-odbc-on-windows.md
@@ -1,14 +1,14 @@
---
title: "Configuring ODBC on Windows"
-date: 2017-06-21 23:58:59 UTC
+date: 2017-06-22 20:42:15 UTC
parent: "Configuring ODBC"
---
To create an ODBC connection to Drill data sources on Windows, complete the following steps:
- * [Step 1: Create a Data Source Name (DSN)]({{site.baseurl}}/docs/configuring-odbc-on-windows/#create-a-data-source-name-(dsn))
- * [Step 2: Select an Authentication Option]({{site.baseurl}}/docs/configuring-odbc-on-windows/#select-an-authentication-option)
- * [Step 3: Configure the Connection Type]({{site.baseurl}}/docs/configuring-odbc-on-windows/#configure-the-connection-type)
- * [Step 4: Configure Advanced Properties (optional)]({{site.baseurl}}/docs/configuring-odbc-on-windows/#configure-advanced-properties-(optional))
+ * [Step 1: Create a Data Source Name (DSN)]({{site.baseurl}}/docs/configuring-odbc-on-windows/#step-1:-create-a-data-source-name-(dsn))
+ * [Step 2: Select an Authentication Option]({{site.baseurl}}/docs/configuring-odbc-on-windows/#step-2:-select-an-authentication-option)
+ * [Step 3: Configure the Connection Type]({{site.baseurl}}/docs/configuring-odbc-on-windows/#step-3:-configure-the-connection-type)
+ * [Step 4: Configure Advanced Properties (optional)]({{site.baseurl}}/docs/configuring-odbc-on-windows/#step-4:-configure-advanced-properties-(optional))
* [Additional Configuration Options]({{site.baseurl}}/docs/configuring-odbc-on-windows/#additional-configuration-options)
## Step 1: Create a Data Source Name (DSN)