Stratio / Spark-MongoDB

Spark library for easy MongoDB access
http://www.stratio.com
Apache License 2.0
307 stars 96 forks source link

Enable Kerberos based authentication for mongo #150

Closed singhularity closed 8 years ago

singhularity commented 8 years ago

This should allow authenticating to Mongo via GSSAPI settings. It expects the username, any environment variable you need to set as a map. You can also pass any additional mechanism settings you need on the credential as a map.

Example:

GSSAPICredentials -> List("principal", Map(("java.security.auth.login.config", "/path/to/file/on_executor"), Map(("REALM", "xyz")))