Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
94a82722
Commit
94a82722
authored
Nov 20, 2016
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1310: attempt LDAP authentication only when enabled
parent
4db76f95
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
release-log.txt
release-log.txt
+3
-1
AtlasAuthenticationProvider.java
...pache/atlas/web/security/AtlasAuthenticationProvider.java
+9
-3
No files found.
release-log.txt
View file @
94a82722
...
...
@@ -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)
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-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-1299 The project org.apache.atlas:atlas-hbase-client-shaded - build error (shwethags)
ATLAS-1246 Upgrade versions of dependencies (shwethags)
...
...
webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java
View file @
94a82722
...
...
@@ -37,6 +37,7 @@ public class AtlasAuthenticationProvider extends
private
boolean
fileAuthenticationMethodEnabled
=
true
;
private
String
ldapType
=
"NONE"
;
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"
;
...
...
@@ -59,11 +60,16 @@ public class AtlasAuthenticationProvider extends
this
.
fileAuthenticationMethodEnabled
=
configuration
.
getBoolean
(
FILE_AUTH_METHOD
,
true
);
boolean
ldapAuthenticationEnabled
=
configuration
.
getBoolean
(
LDAP_AUTH_METHOD
,
false
);
if
(
ldapAuthenticationEnabled
)
{
this
.
ldapType
=
configuration
.
getString
(
LDAP_TYPE
,
"NONE"
);
}
else
{
this
.
ldapType
=
"NONE"
;
}
}
catch
(
Exception
e
)
{
LOG
.
error
(
"Error while getting atlas.login.method application properties"
,
e
);
LOG
.
error
(
"Error while getting atlas.login.method application properties"
,
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment