drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bridg...@apache.org
Subject drill-site git commit: edits to custom authenticator and config odbc on windows docs
Date Thu, 22 Jun 2017 20:47:42 GMT
Repository: drill-site
Updated Branches:
  refs/heads/asf-site 94b850971 -> 5754f07ef


edits to custom authenticator and config odbc on windows docs


Project: http://git-wip-us.apache.org/repos/asf/drill-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill-site/commit/5754f07e
Tree: http://git-wip-us.apache.org/repos/asf/drill-site/tree/5754f07e
Diff: http://git-wip-us.apache.org/repos/asf/drill-site/diff/5754f07e

Branch: refs/heads/asf-site
Commit: 5754f07ef4eaf3a9d5b590240ed45af3bdc97473
Parents: 94b8509
Author: Bridget Bevens <bbevens@maprtech.com>
Authored: Thu Jun 22 13:47:27 2017 -0700
Committer: Bridget Bevens <bbevens@maprtech.com>
Committed: Thu Jun 22 13:47:27 2017 -0700

----------------------------------------------------------------------
 docs/configuring-odbc-on-windows/index.html    | 10 +++++-----
 docs/creating-custom-authenticators/index.html | 17 ++++++++++-------
 feed.xml                                       |  4 ++--
 3 files changed, 17 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill-site/blob/5754f07e/docs/configuring-odbc-on-windows/index.html
----------------------------------------------------------------------
diff --git a/docs/configuring-odbc-on-windows/index.html b/docs/configuring-odbc-on-windows/index.html
index dbf9364..eadd5cc 100644
--- a/docs/configuring-odbc-on-windows/index.html
+++ b/docs/configuring-odbc-on-windows/index.html
@@ -1122,7 +1122,7 @@
 
     </div>
 
-     Jun 21, 2017
+     Jun 22, 2017
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1131,10 +1131,10 @@
         <p>To create an ODBC connection to Drill data sources on Windows, complete
the following steps:</p>
 
 <ul>
-<li><a href="/docs/configuring-odbc-on-windows/#create-a-data-source-name-(dsn)">Step
1: Create a Data Source Name (DSN)</a></li>
-<li><a href="/docs/configuring-odbc-on-windows/#select-an-authentication-option">Step
2: Select an Authentication Option</a><br></li>
-<li><a href="/docs/configuring-odbc-on-windows/#configure-the-connection-type">Step
3: Configure the Connection Type</a><br></li>
-<li><a href="/docs/configuring-odbc-on-windows/#configure-advanced-properties-(optional)">Step
4: Configure Advanced Properties (optional)</a><br></li>
+<li><a href="/docs/configuring-odbc-on-windows/#step-1:-create-a-data-source-name-(dsn)">Step
1: Create a Data Source Name (DSN)</a></li>
+<li><a href="/docs/configuring-odbc-on-windows/#step-2:-select-an-authentication-option">Step
2: Select an Authentication Option</a><br></li>
+<li><a href="/docs/configuring-odbc-on-windows/#step-3:-configure-the-connection-type">Step
3: Configure the Connection Type</a><br></li>
+<li><a href="/docs/configuring-odbc-on-windows/#step-4:-configure-advanced-properties-(optional)">Step
4: Configure Advanced Properties (optional)</a><br></li>
 <li><a href="/docs/configuring-odbc-on-windows/#additional-configuration-options">Additional
Configuration Options</a></li>
 </ul>
 

http://git-wip-us.apache.org/repos/asf/drill-site/blob/5754f07e/docs/creating-custom-authenticators/index.html
----------------------------------------------------------------------
diff --git a/docs/creating-custom-authenticators/index.html b/docs/creating-custom-authenticators/index.html
index 3351816..5d46386 100644
--- a/docs/creating-custom-authenticators/index.html
+++ b/docs/creating-custom-authenticators/index.html
@@ -1122,7 +1122,7 @@
 
     </div>
 
-     Mar 2, 2016
+     Jun 22, 2017
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1136,17 +1136,20 @@
 <li><p>Build the following Java file into a JAR file: </p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">
  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 = &quot;myCustomAuthenticatorType&quot;)
    public class MyCustomDrillUserAuthenticatorImpl implements UserAuthenticator {
 
     public static final String TEST_USER_1 = &quot;testUser1&quot;;
@@ -1173,9 +1176,9 @@
     @Override
     public void authenticate(String userName, String password) throws UserAuthenticationException
{
 
-      if (!(TEST_USER_1.equals(user) &amp;&amp; TEST_USER_1_PASSWORD.equals(password))
&amp;&amp;
-      !(TEST_USER_2.equals(user) &amp;&amp; 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) &amp;&amp; TEST_USER_1_PASSWORD.equals(password))
&amp;&amp;
+      !(TEST_USER_2.equals(userName) &amp;&amp; TEST_USER_2_PASSWORD.equals(password)))
{
+    throw new UserAuthenticationException(&quot;custom failure message if the admin wants
to show it to user&quot;);
       }
     }
 

http://git-wip-us.apache.org/repos/asf/drill-site/blob/5754f07e/feed.xml
----------------------------------------------------------------------
diff --git a/feed.xml b/feed.xml
index bd47da7..c65550a 100644
--- a/feed.xml
+++ b/feed.xml
@@ -6,8 +6,8 @@
 </description>
     <link>/</link>
     <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Wed, 21 Jun 2017 17:01:07 -0700</pubDate>
-    <lastBuildDate>Wed, 21 Jun 2017 17:01:07 -0700</lastBuildDate>
+    <pubDate>Thu, 22 Jun 2017 13:44:38 -0700</pubDate>
+    <lastBuildDate>Thu, 22 Jun 2017 13:44:38 -0700</lastBuildDate>
     <generator>Jekyll v2.5.2</generator>
     
       <item>


Mime
View raw message