Skip to content

Commit

Permalink
Add kerberos auth to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology authored and echeipesh committed Dec 13, 2017
1 parent f573fb2 commit 8d5347e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,23 @@ object AccumuloInstance {
val zookeeper = uri.getHost
val instance = uri.getPath.drop(1)
val (user, pass) = getUserInfo(uri)
val useKerberos = ClientConfiguration.loadDefault().getBoolean(ClientConfiguration.ClientProperty.INSTANCE_RPC_SASL_ENABLED.getKey,false)
val useKerberos = ClientConfiguration
.loadDefault()
.getBoolean(ClientConfiguration.ClientProperty.INSTANCE_RPC_SASL_ENABLED.getKey, false)

val (username:String,token:AuthenticationToken) = {
if(useKerberos){
if (useKerberos) {
val token = new KerberosToken()
(user.getOrElse(token.getPrincipal()),token)
}else{
(user.getOrElse("root"),new PasswordToken(pass.getOrElse("")))
(user.getOrElse(token.getPrincipal()), token)
} else {
(user.getOrElse("root"), new PasswordToken(pass.getOrElse("")))
}
}
AccumuloInstance(
instance, zookeeper,
username,
token)
token
)
}
}

Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ to your application's needs. `See here for the specifics. <guide/vectors.html#nu
Other New Features
******************

- `Kerberos authentication is available for properly configured Accumulo clusters <https://github.com/locationtech/geotrellis/pull/2510>`__
- `Polygonal Summaries for MultibandTiles <https://github.com/locationtech/geotrellis/pull/2374>`__
- `Filter GeoTiffRDDs by Geometry <https://github.com/locationtech/geotrellis/pull/2409>`__
- `Can create ValueReaders via URIs through LayerProvides classes <https://github.com/locationtech/geotrellis/pull/2286>`__
Expand Down

0 comments on commit 8d5347e

Please sign in to comment.