Skip to content

RANGER-5879: Adding the docker based OpenLDAP for UserSync - #1376

Draft
krishnamuttevi wants to merge 1 commit into
apache:masterfrom
krishnamuttevi:ldapdocker
Draft

krishnamuttevi wants to merge 1 commit into
apache:masterfrom
krishnamuttevi:ldapdocker

Conversation

@krishnamuttevi

Copy link
Copy Markdown
Contributor

UserSync LDAP and delta-sync behavior (including server-type-specific filters) is hard to validate without a real directory. Unit tests mock LDAP but do not cover end-to-end sync into Ranger Admin.

Solution

Dev-support

Add .yml with local-ldap (and optional phpLDAPadmin) on the rangernw network.
Add .ldif with a minimal DIT (ldapuser1, group engineering) suited to inetOrgPerson / groupOfNames and group search.
Add .sh to seed LDAP and, when requested, point UserSync at local-ldap, optionally enable Admin LDAP auth, and restart ranger-usersync / ranger.
Document the flow: bring up Ranger core plus LDAP compose file, then run the connect script (LDAP remains opt-in so default dev workflows stay on Unix sync).
Functional tests (planned / in progress)

Extend functional-tests/run-tests.sh with optional container ldap and suite ldapusersync.
Add functional-tests/ldapusersync/ for assertions against Admin REST and UserSync logs (synced user/group, LDAP source, delta filter lines for ldap server type).
Gate LDAP suites on env (e.g. ENABLE_LDAP_SYNC=true / SELECTED_CONTAINERS=ldap) so CI and local runs without LDAP are unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants