Commit 94a82722 by Madhan Neethiraj

ATLAS-1310: attempt LDAP authentication only when enabled

parent 4db76f95
...@@ -9,8 +9,10 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al ...@@ -9,8 +9,10 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai) ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES: ALL CHANGES:
ATLAS-1310 attempt LDAP authentication only when enabled (mneethiraj)
ATLAS-1309 updated HBase model with addition of column-family and column entity-defs (mneethiraj)
ATLAS-916 Return System Attributes in get entity definition (svimal2106) ATLAS-916 Return System Attributes in get entity definition (svimal2106)
ATLAS-1242 update TypesResource API implementation to use new v2 TypesREST API ATLAS-1242 update TypesResource API implementation to use new v2 TypesREST API (sarath.kum4r@gmail.com via mneethiraj)
ATLAS-1306 bootstrap type-load ignores model file contents if a type in the file already exists ATLAS-1306 bootstrap type-load ignores model file contents if a type in the file already exists
ATLAS-1299 The project org.apache.atlas:atlas-hbase-client-shaded - build error (shwethags) ATLAS-1299 The project org.apache.atlas:atlas-hbase-client-shaded - build error (shwethags)
ATLAS-1246 Upgrade versions of dependencies (shwethags) ATLAS-1246 Upgrade versions of dependencies (shwethags)
......
...@@ -37,6 +37,7 @@ public class AtlasAuthenticationProvider extends ...@@ -37,6 +37,7 @@ public class AtlasAuthenticationProvider extends
private boolean fileAuthenticationMethodEnabled = true; private boolean fileAuthenticationMethodEnabled = true;
private String ldapType = "NONE"; private String ldapType = "NONE";
public static final String FILE_AUTH_METHOD = "atlas.authentication.method.file"; public static final String FILE_AUTH_METHOD = "atlas.authentication.method.file";
public static final String LDAP_AUTH_METHOD = "atlas.authentication.method.ldap";
public static final String LDAP_TYPE = "atlas.authentication.method.ldap.type"; public static final String LDAP_TYPE = "atlas.authentication.method.ldap.type";
...@@ -59,11 +60,16 @@ public class AtlasAuthenticationProvider extends ...@@ -59,11 +60,16 @@ public class AtlasAuthenticationProvider extends
this.fileAuthenticationMethodEnabled = configuration.getBoolean( this.fileAuthenticationMethodEnabled = configuration.getBoolean(
FILE_AUTH_METHOD, true); FILE_AUTH_METHOD, true);
this.ldapType = configuration.getString(LDAP_TYPE, "NONE");
boolean ldapAuthenticationEnabled = configuration.getBoolean(LDAP_AUTH_METHOD, false);
if (ldapAuthenticationEnabled) {
this.ldapType = configuration.getString(LDAP_TYPE, "NONE");
} else {
this.ldapType = "NONE";
}
} catch (Exception e) { } catch (Exception e) {
LOG.error( LOG.error("Error while getting atlas.login.method application properties", e);
"Error while getting atlas.login.method application properties",
e);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment