Obfuscating LDAP Bind Password for Zeppelin

Migrate the Zeppelin LDAP bind password from plain-text configuration to the Hadoop Credential Store (JCEKS) to comply with security best practices.

Scope

  • Zeppelin integrated with LDAP authentication
  • Ambari-managed Zeppelin
  • Hadoop Credential Provider (JCEKS)
  • Applies to clusters with LDAP-enabled Zeppelin UI

Prerequisites

  • Ambari LDAP must already be configured and obfuscated

    • Refer: ODP-5149 | Obfuscating LDAP password in Ambari
  • LDAP authentication validated for Ambari

  • Hadoop CLI available on Zeppelin host

  • Zeppelin service stopped/restarted as required

Step 1: Configure LDAP for Zeppelin (Baseline Setup)

Update the following configuration in Ambari UI:

Zeppelin → Configs → Advanced zeppelin-shiro-ini

Bash
Copy

Restart Zeppelin and validate LDAP login using an LDAP user.

Zeppelin user dashboard

Zeppelin user dashboard

All LDAP users can log in to Zeppelin UI.

Since you added the password in plain text, you need to obfuscate this using Hadoop credentials.

Step 2: Obfuscate Zeppelin LDAP Bind Password

Step 2.1: Move Plain-text Password to JCEKS

Run the following commands on the Zeppelin host:

Bash
Copy

Step 2.2: Reference JCEKS in Zeppelin Configuration

2.2.1 Set Credential Provider Path

Ambari → Zeppelin → Configs → Advanced zeppelin-env

Add at the end:

Bash
Copy

2.2.2 Update zeppelin-shiro-ini

Replace the plain-text password with the credential alias:

Bash
Copy

Step 3: Restart & Validation

Bash
Copy

(or restart Zeppelin service via Ambari UI)

Validation Steps

  • Log in to Zeppelin UI using LDAP users
  • Ensure no authentication errors in:
Bash
Copy
  • Confirm no plain-text password exists in shiro.ini

The screenshot below is a reference to the users available to Zeppelin.

Outcome

  • LDAP bind password removed from plain-text configuration
  • Password securely stored in Hadoop Credential Store (JCEKS)
  • Zeppelin authentication continues to function as expected
  • Compliant with MSTP security hardening standards
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated